1
0
Fork 1
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:
Shea Levy 2015-11-27 08:19:50 -05:00
parent 34e8eea942
commit 5898c20604
2 changed files with 20 additions and 0 deletions

View 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)

View file

@ -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 { };