jetbrains: replace overrideDerivation with overrideAttr

This fixes error-checking of function arguments (
https://nixos.org/manual/nixpkgs/stable/#sec-pkg-overrideDerivation),
notably checking the license (https://github.com/NixOS/nixpkgs/issues/107250)

Changed files
+8 -8
pkgs
applications
editors
jetbrains
+8 -8
pkgs/applications/editors/jetbrains/default.nix
···
# Sorted alphabetically
buildClion = { name, version, src, license, description, wmClass, ... }:
-
lib.overrideDerivation (mkJetBrainsProduct {
inherit name version src wmClass jdk;
product = "CLion";
meta = with lib; {
···
maintainers = with maintainers; [ edwtjo mic92 ];
platforms = platforms.linux;
};
-
}) (attrs: {
postFixup = (attrs.postFixup or "") + optionalString (stdenv.isLinux) ''
(
cd $out/clion-${version}
···
});
buildGoland = { name, version, src, license, description, wmClass, ... }:
-
lib.overrideDerivation (mkJetBrainsProduct {
inherit name version src wmClass jdk;
product = "Goland";
meta = with lib; {
···
maintainers = [ maintainers.miltador ];
platforms = platforms.linux;
};
-
}) (attrs: {
postFixup = (attrs.postFixup or "") + ''
interp="$(cat $NIX_CC/nix-support/dynamic-linker)"
patchelf --set-interpreter $interp $out/goland*/plugins/go/lib/dlv/linux/dlv
···
};
buildRider = { name, version, src, license, description, wmClass, ... }:
-
lib.overrideDerivation (mkJetBrainsProduct {
inherit name version src wmClass jdk;
product = "Rider";
meta = with lib; {
···
maintainers = [ maintainers.miltador ];
platforms = platforms.linux;
};
-
}) (attrs: {
patchPhase = lib.optionalString (!stdenv.isDarwin) (attrs.patchPhase + ''
rm -rf lib/ReSharperHost/linux-x64/dotnet
mkdir -p lib/ReSharperHost/linux-x64/dotnet/
···
});
buildWebStorm = { name, version, src, license, description, wmClass, ... }:
-
lib.overrideDerivation (mkJetBrainsProduct {
inherit name version src wmClass jdk;
product = "WebStorm";
meta = with lib; {
···
maintainers = with maintainers; [ abaldeau ];
platforms = platforms.linux;
};
-
}) (attrs: {
patchPhase = (attrs.patchPhase or "") + optionalString (stdenv.isLinux) ''
# Webstorm tries to use bundled jre if available.
# Lets prevent this for the moment
···
# Sorted alphabetically
buildClion = { name, version, src, license, description, wmClass, ... }:
+
(mkJetBrainsProduct {
inherit name version src wmClass jdk;
product = "CLion";
meta = with lib; {
···
maintainers = with maintainers; [ edwtjo mic92 ];
platforms = platforms.linux;
};
+
}).overrideAttrs (attrs: {
postFixup = (attrs.postFixup or "") + optionalString (stdenv.isLinux) ''
(
cd $out/clion-${version}
···
});
buildGoland = { name, version, src, license, description, wmClass, ... }:
+
(mkJetBrainsProduct {
inherit name version src wmClass jdk;
product = "Goland";
meta = with lib; {
···
maintainers = [ maintainers.miltador ];
platforms = platforms.linux;
};
+
}).overrideAttrs (attrs: {
postFixup = (attrs.postFixup or "") + ''
interp="$(cat $NIX_CC/nix-support/dynamic-linker)"
patchelf --set-interpreter $interp $out/goland*/plugins/go/lib/dlv/linux/dlv
···
};
buildRider = { name, version, src, license, description, wmClass, ... }:
+
(mkJetBrainsProduct {
inherit name version src wmClass jdk;
product = "Rider";
meta = with lib; {
···
maintainers = [ maintainers.miltador ];
platforms = platforms.linux;
};
+
}).overrideAttrs (attrs: {
patchPhase = lib.optionalString (!stdenv.isDarwin) (attrs.patchPhase + ''
rm -rf lib/ReSharperHost/linux-x64/dotnet
mkdir -p lib/ReSharperHost/linux-x64/dotnet/
···
});
buildWebStorm = { name, version, src, license, description, wmClass, ... }:
+
(mkJetBrainsProduct {
inherit name version src wmClass jdk;
product = "WebStorm";
meta = with lib; {
···
maintainers = with maintainers; [ abaldeau ];
platforms = platforms.linux;
};
+
}).overrideAttrs (attrs: {
patchPhase = (attrs.patchPhase or "") + optionalString (stdenv.isLinux) ''
# Webstorm tries to use bundled jre if available.
# Lets prevent this for the moment