From d94d7c77147269308ef5fec24d6ae78a26f02ea2 Mon Sep 17 00:00:00 2001 From: pmenke Date: Tue, 20 Apr 2021 20:07:33 +0200 Subject: [PATCH] jetbrains.clion: use lib.optionals instead of lib.optional --- pkgs/applications/editors/jetbrains/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/jetbrains/default.nix b/pkgs/applications/editors/jetbrains/default.nix index 63482762e7e8..1da4a24b3eae 100644 --- a/pkgs/applications/editors/jetbrains/default.nix +++ b/pkgs/applications/editors/jetbrains/default.nix @@ -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