packages/stop-using-nix-env: name -> pname
This commit is contained in:
parent
9976784890
commit
e5c1bc297b
1 changed files with 4 additions and 4 deletions
|
@ -3,16 +3,16 @@
|
|||
{
|
||||
packages.stop-using-nix-env = let
|
||||
site = with pkgs; stdenvNoCC.mkDerivation rec {
|
||||
name = "stop-using-nix-env";
|
||||
pname = "stop-using-nix-env";
|
||||
version = "1.1.1";
|
||||
src = ./src;
|
||||
buildCommand = ''
|
||||
install -Dm644 $src/* -t $out/share/www/${name}
|
||||
substituteInPlace $out/share/www/${name}/index.html \
|
||||
install -Dm644 $src/* -t $out/share/www/${pname}
|
||||
substituteInPlace $out/share/www/${pname}/index.html \
|
||||
--replace '<!-- VERSION -->' 'Version ${version} |'
|
||||
'';
|
||||
passthru = {
|
||||
webroot = "${site}/share/www/${name}";
|
||||
webroot = "${site}/share/www/${pname}";
|
||||
};
|
||||
};
|
||||
in site;
|
||||
|
|
Loading…
Reference in a new issue