1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-21 13:44:50 +00:00
nixpkgs/pkgs/development/interpreters/dhall/default.nix
Profpatsch 6a70e4e663 dhall: passthru dhall prelude
Makes it possible to reference `dhall.prelude`, the same version that comes with
the dhall exetutable’s source code.
2018-02-26 15:21:46 +01:00

19 lines
427 B
Nix

{ 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/
'';
};
};
})