2022-08-06 17:15:29 +03:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
packages.stop-using-nix-env = let
|
|
|
|
site = with pkgs; stdenvNoCC.mkDerivation rec {
|
2022-08-06 22:32:34 +03:00
|
|
|
pname = "stop-using-nix-env";
|
2022-08-10 21:44:58 +03:00
|
|
|
version = "1.2.0";
|
2022-08-06 17:15:29 +03:00
|
|
|
src = ./src;
|
|
|
|
buildCommand = ''
|
2022-08-06 22:32:34 +03:00
|
|
|
install -Dm644 $src/* -t $out/share/www/${pname}
|
|
|
|
substituteInPlace $out/share/www/${pname}/index.html \
|
2022-08-06 22:29:54 +03:00
|
|
|
--replace '<!-- VERSION -->' 'Version ${version} |'
|
2022-08-06 17:15:29 +03:00
|
|
|
'';
|
|
|
|
passthru = {
|
2022-08-06 22:32:34 +03:00
|
|
|
webroot = "${site}/share/www/${pname}";
|
2022-08-06 17:15:29 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in site;
|
|
|
|
}
|