jetbrains.clion: use lib.optionals instead of lib.optional

This commit is contained in:
pmenke 2021-04-20 20:07:33 +02:00
parent a7a29f5ba0
commit d94d7c7714
No known key found for this signature in database
GPG Key ID: EB7F2D4CCBE23B69

View File

@ -28,10 +28,10 @@ let
platforms = platforms.linux;
};
}).overrideAttrs (attrs: {
nativeBuildInputs = (attrs.nativeBuildInputs or []) ++ optional (stdenv.isLinux) [
nativeBuildInputs = (attrs.nativeBuildInputs or []) ++ optionals (stdenv.isLinux) [
autoPatchelfHook
];
buildInputs = (attrs.buildInputs or []) ++ optional (stdenv.isLinux) [
buildInputs = (attrs.buildInputs or []) ++ optionals (stdenv.isLinux) [
python3
stdenv.cc.cc
libdbusmenu