-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
23 lines (19 loc) · 811 Bytes
/
Copy pathdefault.nix
File metadata and controls
23 lines (19 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ pkgs ? import ./nixpkgs {}
, purescript ? pkgs.haskellPackages.purescript_0_10_5
}:
let
inherit (pkgs) stdenv;
inherit (stdenv.lib) fix' extends;
purescriptPackages = self:
let
mkDerivation = import ./builder.nix { inherit stdenv purescript; };
callPackageWithScope = scope: drv: args: (stdenv.lib.callPackageWith scope drv args) // {
overrideScope = f: callPackageWithScope (mkScope (fix' (extends f scope.__unfix__))) drv args;
};
mkScope = scope: pkgs // pkgs.xorg // pkgs.gnome2 // scope;
defaultScope = mkScope self;
callPackage = drv: args: callPackageWithScope defaultScope drv args;
in import ./purescript-packages.nix { inherit pkgs callPackage; } self // {
inherit mkDerivation callPackage;
};
in fix' purescriptPackages