1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00

dhall: passthru dhall prelude

Makes it possible to reference `dhall.prelude`, the same version that comes with
the dhall exetutable’s source code.
This commit is contained in:
Profpatsch 2018-02-25 18:03:52 +01:00
parent 4697c980aa
commit 6a70e4e663
2 changed files with 19 additions and 1 deletions

View file

@ -0,0 +1,18 @@
{ haskell, haskellPackages, stdenvNoCC }:
let
static = haskell.lib.justStaticExecutables haskellPackages.dhall;
in static.overrideAttrs (old: {
passthru = old.passthru or {} // {
prelude = stdenvNoCC.mkDerivation {
name = "dhall-prelude";
inherit (old) src;
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
mkdir $out
cp -r Prelude/* $out/
'';
};
};
})

View file

@ -6823,7 +6823,7 @@ with pkgs;
clooj = callPackage ../development/interpreters/clojure/clooj.nix { };
dhall = haskell.lib.justStaticExecutables haskellPackages.dhall;
dhall = callPackage ../development/interpreters/dhall { };
dhall-nix = haskell.lib.justStaticExecutables haskellPackages.dhall-nix;