summary refs log tree commit diff
path: root/pkgs/development/interpreters/dhall/default.nix
blob: 8e1df36e4127742311b28879410ae0d1727f61f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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/
      '';
    };
  };
})