Adds nix package and overlay
This commit is contained in:
parent
af68cb30d8
commit
14ae098c18
1 changed files with 17 additions and 0 deletions
17
flake.nix
17
flake.nix
|
@ -27,5 +27,22 @@
|
||||||
'
|
'
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
packages.${system}.default = pkgs.stdenv.mkDerivation {
|
||||||
|
name = "ctrlz.es";
|
||||||
|
src = ./.;
|
||||||
|
buildInputs = with pkgs; [hugo];
|
||||||
|
|
||||||
|
unpackPhase = false;
|
||||||
|
|
||||||
|
buildPhase = "hugo";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/var/lib/ctrlz.es
|
||||||
|
cp -r public/* $out/var/lib/ctrlz.es/
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
overlays.default = final: prev: {ctrlz = self.packages.${system}.default;};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue