on master help sign in
Merge pull request #723 from obsidiansystems/ob-run-copy-hs-file

Copy ob-run.hs file to local directory

commitdf6cb1e4f3856be8674803a7491044695aca9a4e authorElliot Cameron <3noch@users.noreply.github.com> dateThu 7 May 2020, 14:09 (6 years ago) parent8954990fc60da5
1 file changed+2−1
default.nix+2−1
default.nix+2−1
@@ -342,8 +342,9 @@ in rec {
342342 in nixpkgs.runCommand "ob-run" {
343343 buildInputs = [ (profiled.ghc.ghcWithPackages (p: [ p.backend p.frontend])) ];
344344 } ''
345+ cp ${exeSource} $PWD/ob-run.hs
345346 mkdir -p $out/bin/
346− ghc -x hs -prof -fno-prof-auto -threaded ${exeSource} -o $out/bin/ob-run
347+ ghc -x hs -prof -fno-prof-auto -threaded ob-run.hs -o $out/bin/ob-run
347348 '';
348349
349350 linuxExeConfigurable = linuxExe;