40 lines
558 B
Nix
40 lines
558 B
Nix
{
|
|
gnumake,
|
|
rsync,
|
|
stdenv,
|
|
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
|
|
'';
|
|
|
|
installCheckPhase = ''
|
|
runHook preInstallCheck
|
|
|
|
test -f $out/share/uninsane-dot-org/atom.xml
|
|
|
|
runHook postInstallCheck
|
|
'';
|
|
|
|
doInstallCheck = true;
|
|
|
|
installFlags = [ "PREFIX=$(out)/share/uninsane-dot-org" ];
|
|
}
|