depot/third_party/nixpkgs/pkgs/development/compilers/factor-lang/scope.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

16 lines
501 B
Nix

{ lib, pkgs
, overrides ? (self: super: {})}:
let
inside = (self:
let callPackage = pkgs.newScope self;
in rec {
interpreter = callPackage ./factor98.nix { inherit (pkgs) stdenv; };
# Convenience access for using the returned attribute the same way as the
# interpreter derivation. Takes a list of runtime libraries as its only
# argument.
inherit (self.interpreter) withLibs;
});
extensible-self = lib.makeExtensible (lib.extends overrides inside);
in extensible-self