Fixes
This commit is contained in:
parent
d4e38781ce
commit
c299ead75c
1 changed files with 12 additions and 9 deletions
|
|
@ -54,15 +54,18 @@ in
|
||||||
# Wrap codium so user-installed extension native addons (.node files from
|
# Wrap codium so user-installed extension native addons (.node files from
|
||||||
# npm) can find libstdc++.so.6 — those binaries have empty RPATHs and
|
# npm) can find libstdc++.so.6 — those binaries have empty RPATHs and
|
||||||
# Electron's patched interpreter won't pick up nix-ld's stubs.
|
# Electron's patched interpreter won't pick up nix-ld's stubs.
|
||||||
package = pkgs.symlinkJoin {
|
# The `// { pname; version }` forwards those attrs so programs.vscode's
|
||||||
name = "vscodium";
|
# module (which reads cfg.package.pname) can still identify the variant.
|
||||||
paths = [ pkgs.vscodium ];
|
package =
|
||||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
let base = pkgs.symlinkJoin {
|
||||||
postBuild = ''
|
name = "vscodium";
|
||||||
wrapProgram $out/bin/codium \
|
paths = [ pkgs.vscodium ];
|
||||||
--prefix LD_LIBRARY_PATH : "${pkgs.lib.makeLibraryPath [ pkgs.stdenv.cc.cc.lib ]}"
|
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||||
'';
|
postBuild = ''
|
||||||
};
|
wrapProgram $out/bin/codium \
|
||||||
|
--prefix LD_LIBRARY_PATH : "${pkgs.lib.makeLibraryPath [ pkgs.stdenv.cc.cc.lib ]}"
|
||||||
|
'';
|
||||||
|
}; in base // { inherit (pkgs.vscodium) pname version; };
|
||||||
mutableExtensionsDir = true;
|
mutableExtensionsDir = true;
|
||||||
profiles.default.userSettings = {
|
profiles.default.userSettings = {
|
||||||
"window.menuBarVisibility" = "compact";
|
"window.menuBarVisibility" = "compact";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue