overlays/jetbrains: init

This commit is contained in:
Cilly Leang 2026-02-16 16:00:25 +11:00
parent 4e49291a40
commit 3b73bd8f14
Signed by: cilly
GPG key ID: 6500251E087653C9
2 changed files with 23 additions and 0 deletions

View file

@ -3,6 +3,7 @@ builtins.map (path: import path) [
./cascadia-code.nix ./cascadia-code.nix
./ccache.nix ./ccache.nix
./eww.nix ./eww.nix
./jetbrains.nix
./material-icons.nix ./material-icons.nix
./steam.nix ./steam.nix
./utillinux.nix ./utillinux.nix

22
overlays/jetbrains.nix Normal file
View file

@ -0,0 +1,22 @@
# https://github.com/NixOS/nixpkgs/issues/375254
self: super: {
jetbrains = super.jetbrains // {
gateway = let
unwrapped = super.jetbrains.gateway;
in super.buildFHSEnv {
name = "gateway";
inherit (unwrapped) version;
runScript = super.writeScript "gateway-wrapper" ''
unset JETBRAINS_CLIENT_JDK
exec ${unwrapped}/bin/gateway "$@"
'';
meta = unwrapped.meta;
passthru = {
inherit unwrapped;
};
};
};
}