Merge pull request #127996 from cideM/fix-vscode

vscode: fix source name

authored by Sandro and committed by GitHub dc2ceb46 f813c673

+6 -2
+5 -2
pkgs/applications/editors/vscode/generic.nix
··· 10 10 # Attributes inherit from specific versions 11 11 , version, src, meta, sourceRoot 12 12 , executableName, longName, shortName, pname, updateScript 13 + # sourceExecutableName is the name of the binary in the source archive, over 14 + # which we have no control 15 + , sourceExecutableName ? executableName 13 16 }: 14 17 15 18 let ··· 77 80 '' + (if system == "x86_64-darwin" then '' 78 81 mkdir -p "$out/Applications/${longName}.app" $out/bin 79 82 cp -r ./* "$out/Applications/${longName}.app" 80 - ln -s "$out/Applications/${longName}.app/Contents/Resources/app/bin/${executableName}" $out/bin/${executableName} 83 + ln -s "$out/Applications/${longName}.app/Contents/Resources/app/bin/${sourceExecutableName}" $out/bin/${executableName} 81 84 '' else '' 82 85 mkdir -p $out/lib/vscode $out/bin 83 86 cp -r ./* $out/lib/vscode 84 87 85 - ln -s $out/lib/vscode/bin/${executableName} $out/bin 88 + ln -s $out/lib/vscode/bin/${sourceExecutableName} $out/bin/${executableName} 86 89 87 90 mkdir -p $out/share/applications 88 91 ln -s $desktopItem/share/applications/${executableName}.desktop $out/share/applications/${executableName}.desktop
+1
pkgs/applications/editors/vscode/vscode.nix
··· 25 25 version = "1.57.1"; 26 26 pname = "vscode"; 27 27 28 + sourceExecutableName = "code"; 28 29 executableName = "code" + lib.optionalString isInsiders "-insiders"; 29 30 longName = "Visual Studio Code" + lib.optionalString isInsiders " - Insiders"; 30 31 shortName = "Code" + lib.optionalString isInsiders " - Insiders";