overlays/jetbrains: init
This commit is contained in:
parent
4e49291a40
commit
3b73bd8f14
2 changed files with 23 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ builtins.map (path: import path) [
|
|||
./cascadia-code.nix
|
||||
./ccache.nix
|
||||
./eww.nix
|
||||
./jetbrains.nix
|
||||
./material-icons.nix
|
||||
./steam.nix
|
||||
./utillinux.nix
|
||||
|
|
|
|||
22
overlays/jetbrains.nix
Normal file
22
overlays/jetbrains.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue