1
0
Fork 0
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:
Valentin Gagarin 2024-02-07 00:55:59 +01:00 committed by GitHub
parent 2720a4121e
commit 1f6a1219ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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