mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 12:42:24 +00:00
Add idrisPackages to all-packages.nix
This commit is contained in:
parent
34e8eea942
commit
5898c20604
18
pkgs/development/idris-modules/default.nix
Normal file
18
pkgs/development/idris-modules/default.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ pkgs, idris, overrides ? (self: super: {}) }: let
|
||||
inherit (pkgs.lib) callPackageWith fix' extends;
|
||||
|
||||
/* Taken from haskell-modules/default.nix, should probably abstract this away */
|
||||
callPackageWithScope = scope: drv: args: (callPackageWith scope drv args) // {
|
||||
overrideScope = f: callPackageWithScope (mkScope (fix' (extends f scope.__unfix__))) drv args;
|
||||
};
|
||||
|
||||
mkScope = scope : pkgs // pkgs.xorg // pkgs.gnome // scope;
|
||||
|
||||
idrisPackages = self: let
|
||||
defaultScope = mkScope self;
|
||||
|
||||
callPackage = callPackageWithScope defaultScope;
|
||||
in {
|
||||
withPackages = packages: callPackage ./with-packages-wrapper.nix { inherit packages idris; };
|
||||
};
|
||||
in fix' (extends overrides idrisPackages)
|
|
@ -4121,6 +4121,8 @@ let
|
|||
|
||||
icedtea_web = icedtea8_web;
|
||||
|
||||
idrisPackages = callPackage ../development/idris-modules { inherit (haskellPackages) idris; };
|
||||
|
||||
ikarus = callPackage ../development/compilers/ikarus { };
|
||||
|
||||
intercal = callPackage ../development/compilers/intercal { };
|
||||
|
|
Loading…
Reference in a new issue