Thank you for your response. I really appreciate it.
-
No I had not tried it but it seems like something that would create an environment? How do you incorporate this nix-shell
env script into, say installation?
-
I tried this script and ran nix-shell
{ pkgs ? import <nixpkgs> {} }:
(pkgs.buildFHSUserEnv {
name = "jetbrains-toolbox";
targetPkgs = pkgs: (with pkgs;
[ udev
alsaLib
fuse
libcef
zlib
]) ++ (with pkgs.xorg;
[
libX11
libxcb
xcbutilkeysyms
libXrandr
]);
multiPkgs = pkgs: (with pkgs;
[ udev
alsaLib
]);
runScript = "/path/to/jetbrains-toolbox/appimage";
}).env
But the output is still not helpful
these derivations will be built:
/nix/store/v3zr6m2yxjn1a9jips24lwpr50q6ywv0-jetbrains-toolbox-usr-target.drv
/nix/store/q9i2fk0fmgng3c932128afbxrvy3r9bx-jetbrains-toolbox-fhs.drv
/nix/store/46sxd26nfk4vmrai4zxqfv6p1mzay5nd-jetbrains-toolbox-init.drv
building '/nix/store/v3zr6m2yxjn1a9jips24lwpr50q6ywv0-jetbrains-toolbox-usr-target.drv'...
collision between `/nix/store/5hvxigc4xr8lir3kyfy6lcmlhvbs9y7i-glibc-multi-2.31-74/lib/locale/locale-archive' and `/nix/store/23xygjg9rwqa6jbcrrmlv3xz6qlg5kcj-glibc-locales-2.31-74/lib/locale/locale-archive'
collision between `/nix/store/g490crrmig6ffbjk5qxd5siavypng6ld-gcc-9.3.0-lib/lib64/libgcc_s.so.1' and `/nix/store/5hvxigc4xr8lir3kyfy6lcmlhvbs9y7i-glibc-multi-2.31-74/lib64/libgcc_s.so.1'
collision between `/nix/store/g490crrmig6ffbjk5qxd5siavypng6ld-gcc-9.3.0-lib/lib64/libgcc_s.so' and `/nix/store/5hvxigc4xr8lir3kyfy6lcmlhvbs9y7i-glibc-multi-2.31-74/lib64/libgcc_s.so'
collision between `/nix/store/g490crrmig6ffbjk5qxd5siavypng6ld-gcc-9.3.0-lib/lib/libgcc_s.so.1' and `/nix/store/5hvxigc4xr8lir3kyfy6lcmlhvbs9y7i-glibc-multi-2.31-74/lib/libgcc_s.so.1'
collision between `/nix/store/g490crrmig6ffbjk5qxd5siavypng6ld-gcc-9.3.0-lib/lib/libgcc_s.so' and `/nix/store/5hvxigc4xr8lir3kyfy6lcmlhvbs9y7i-glibc-multi-2.31-74/lib/libgcc_s.so'
Use of uninitialized value in string eq at /nix/store/xd7n3la4g3zn7xmm4mfdjfzgm18s84dn-builder.pl line 133.
collision between `/nix/store/4mmqm21fdr7514067snjsaii7jn82pap-shadow-4.8.1/etc/pam.d' and `/nix/store/dib72bxvjk4kpbhnjjc4lajdjwad078v-jetbrains-toolbox-chrootenv-etc/etc/pam.d'
Use of uninitialized value in string eq at /nix/store/xd7n3la4g3zn7xmm4mfdjfzgm18s84dn-builder.pl line 133.
collision between `/nix/store/4mmqm21fdr7514067snjsaii7jn82pap-shadow-4.8.1/etc/login.defs' and `/nix/store/dib72bxvjk4kpbhnjjc4lajdjwad078v-jetbrains-toolbox-chrootenv-etc/etc/login.defs'
Use of uninitialized value in string eq at /nix/store/xd7n3la4g3zn7xmm4mfdjfzgm18s84dn-builder.pl line 133.
created 5472 symlinks in user environment
building '/nix/store/q9i2fk0fmgng3c932128afbxrvy3r9bx-jetbrains-toolbox-fhs.drv'...
building '/nix/store/46sxd26nfk4vmrai4zxqfv6p1mzay5nd-jetbrains-toolbox-init.drv'...
fusermount: /nix/store/v6l2sacryfr88yqq0pq7sia8wfgm9q31-wrapper.c:203: main: Assertion `!(st.st_mode & S_ISUID) || (st.st_uid == geteuid())' failed.
Cannot mount AppImage, please check your FUSE setup.
You might still be able to extract the contents of this AppImage
if you run it with the --appimage-extract option.
See https://github.com/AppImage/AppImageKit/wiki/FUSE
for more information
open dir error: No such file or directory
Edit:
All I find is something like this NixOS setuid wrapper prevent running sudo in user namespace · Issue #42117 · NixOS/nixpkgs · GitHub