From aee2750000526b0cdd658aadaf7d7500ff881ed3 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sun, 24 Feb 2019 12:36:27 -0800 Subject: Extract entrypoint to param --- pack/ibb.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pack') diff --git a/pack/ibb.nix b/pack/ibb.nix index 4224974..bd72310 100644 --- a/pack/ibb.nix +++ b/pack/ibb.nix @@ -10,6 +10,7 @@ let shakespeare text ]); + entrypoint = "Ibb"; in stdenv.mkDerivation rec { name = "ibb"; @@ -20,7 +21,9 @@ stdenv.mkDerivation rec { ]; strictDeps = true; buildPhase = '' - ${ghc}/bin/ghc -iapex -ilore -main-is Ibb --make apex/Ibb.hs -o bild/${name} + ${ghc}/bin/ghc -iapex -ilore \ + -main-is ${entrypoint} --make apex/${entrypoint}.hs \ + -o bild/${name} ''; installPhase = '' mkdir -p $out/bin -- cgit v1.2.3