1
1
Fork 0

Self changes depending on location!

main
Bill Ewanick 2023-09-21 13:46:44 -04:00
parent 1324b96475
commit 1e645458dd
1 changed files with 5 additions and 2 deletions

View File

@ -35,13 +35,16 @@
packages.default = pkgs.stdenv.mkDerivation {
name = "site";
src = self;
src = ./.;
buildPhase = ''
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo $(pwd)
echo $(ls)
${ghc'}/bin/ghc \
-O2 \
-static \
-o site \
./site.hs
site.hs
'';
installPhase = "mkdir -p $out/bin; install -t $out/bin site";
};