depot/packages/websites/stop-using-nix-env/project.nix
Max 876a2eba98 packages/stop-using-nix-env: Mention implicit package pinning
Co-authored-by: Fernando Ayats <ayatsfer@gmail.com>
2022-08-10 20:44:58 +02:00

19 lines
498 B
Nix

{ pkgs, ... }:
{
packages.stop-using-nix-env = let
site = with pkgs; stdenvNoCC.mkDerivation rec {
pname = "stop-using-nix-env";
version = "1.2.0";
src = ./src;
buildCommand = ''
install -Dm644 $src/* -t $out/share/www/${pname}
substituteInPlace $out/share/www/${pname}/index.html \
--replace '<!-- VERSION -->' 'Version ${version} |'
'';
passthru = {
webroot = "${site}/share/www/${pname}";
};
};
in site;
}