mirror of
https://github.com/NixOS/nix.dev.git
synced 2024-10-18 00:06:26 -04:00
actually fix mutable shortlinks (#904)
now tested with: nix build && nix-shell -p netlify-cli --run "cd result; netlify dev"
This commit is contained in:
parent
2720a4121e
commit
1f6a1219ae
|
@ -46,7 +46,7 @@ let
|
|||
sed '/^#/d;/^$/d;s#^\(.*\) \(.*\) #/manual/nix/${version}\1 /manual/nix/${version}\2 #g' ${src version}/doc/manual/_redirects >> $out/_redirects
|
||||
'';
|
||||
shortlink = release: version: ''
|
||||
echo /nix/manual/${release} /nix/manual/${version} 302 >> $out/_redirects
|
||||
echo /manual/nix/${release} /manual/nix/${version}/ 302 >> $out/_redirects
|
||||
'';
|
||||
versions = with pkgs.lib; lists.unique (attrsets.attrValues releases);
|
||||
in
|
||||
|
|
Loading…
Reference in a new issue