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:
parent
4697c980aa
commit
6a70e4e663
18
pkgs/development/interpreters/dhall/default.nix
Normal file
18
pkgs/development/interpreters/dhall/default.nix
Normal 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/
|
||||
'';
|
||||
};
|
||||
};
|
||||
})
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user