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 { }; 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; dhall-nix = haskell.lib.justStaticExecutables haskellPackages.dhall-nix;