Self changes depending on location!
parent
1324b96475
commit
1e645458dd
|
@ -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";
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue