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 { packages.default = pkgs.stdenv.mkDerivation {
name = "site"; name = "site";
src = self; src = ./.;
buildPhase = '' buildPhase = ''
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo $(pwd)
echo $(ls)
${ghc'}/bin/ghc \ ${ghc'}/bin/ghc \
-O2 \ -O2 \
-static \ -static \
-o site \ -o site \
./site.hs site.hs
''; '';
installPhase = "mkdir -p $out/bin; install -t $out/bin site"; installPhase = "mkdir -p $out/bin; install -t $out/bin site";
}; };