Skip to content

Commit

Permalink
dhall: passthru dhall prelude
Browse files Browse the repository at this point in the history
Makes it possible to reference `dhall.prelude`, the same version that comes with
the dhall exetutable’s source code.
  • Loading branch information
Profpatsch committed Feb 26, 2018
1 parent 4697c98 commit 6a70e4e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions pkgs/development/interpreters/dhall/default.nix
@@ -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/
'';
};
};
})
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Expand Up @@ -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;

Expand Down

0 comments on commit 6a70e4e

Please sign in to comment.