diff options
author | Ben Sima <ben@bsima.me> | 2019-02-24 12:36:27 -0800 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2019-02-24 12:36:27 -0800 |
commit | aee2750000526b0cdd658aadaf7d7500ff881ed3 (patch) | |
tree | 74e1b088b21b9fe3160e2f573a996c7a532bb6a6 | |
parent | d7a4001972fc659a25b20e95408fe939c5faced9 (diff) |
Extract entrypoint to param
-rw-r--r-- | pack/ibb.nix | 5 |
1 files changed, 4 insertions, 1 deletions
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 |