2
0
Fork 0
genodepkgs/packages/dhall/genode.nix

22 lines
610 B
Nix
Raw Normal View History

2020-01-17 01:24:34 +01:00
# SPDX-License-Identifier: CC0-1.0
2019-09-27 12:38:35 +02:00
{ stdenv, fetchgit, dhallApps, prelude }:
2019-08-18 18:42:13 +02:00
stdenv.mkDerivation {
name = "dhall-genode";
src = fetchgit {
url = "https://git.sr.ht/~ehmry/dhall-genode";
rev = "8d489b24fad71df04e0facae561bac17a25cb2a5";
sha256 = "0ngp1ipypf72z7nxsx1xxc051yx3gw7556nfgwsplpxa2y9msp0q";
};
DHALL_PRELUDE = prelude + "/package.dhall";
buildCommand = ''
export XDG_CACHE_HOME=$TMPDIR
cp -r $src $out
chmod +w -R $out
echo $DHALL_PRELUDE > $out/Prelude.dhall
find $out -type f -exec \
${dhallApps.dhall.program} freeze --all --inplace {} \;
'';
2019-10-13 15:35:32 +02:00
}