20 lines
366 B
Nix
20 lines
366 B
Nix
{ stdenv
|
|
, gnumake
|
|
, rsync
|
|
, zola
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "uninsane-dot-org";
|
|
src = ./.;
|
|
buildInputs = [ rsync zola ];
|
|
nativeBuildInputs = [ gnumake ];
|
|
preInstall = ''
|
|
mkdir -p $out/share/uninsane-dot-org
|
|
'';
|
|
postInstall = ''
|
|
rm $out/share/uninsane-dot-org/404.html
|
|
'';
|
|
installFlags = [ "PREFIX=$(out)/share/uninsane-dot-org" ];
|
|
}
|