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