2022-08-06 17:15:29 +03:00
|
|
|
{
|
2023-01-08 20:07:20 +02:00
|
|
|
perSystem = { pkgs, ... }: {
|
|
|
|
packages.stop-using-nix-env = let
|
|
|
|
site = with pkgs; stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "stop-using-nix-env";
|
2024-07-20 23:20:22 +03:00
|
|
|
version = "1.2.1";
|
2023-01-08 20:07:20 +02:00
|
|
|
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}";
|
|
|
|
};
|
2022-08-06 17:15:29 +03:00
|
|
|
};
|
2023-01-08 20:07:20 +02:00
|
|
|
in site;
|
|
|
|
};
|
2022-08-06 17:15:29 +03:00
|
|
|
}
|