From 75f706aca1739202e6e1d05d269f7838f8462d21 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Tue, 16 Mar 2021 09:49:38 +0100 Subject: Fix boolean --- pkgs/larbs/dwmblocks/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/larbs/dwmblocks/default.nix b/pkgs/larbs/dwmblocks/default.nix index 3277cc0..2718b6d 100644 --- a/pkgs/larbs/dwmblocks/default.nix +++ b/pkgs/larbs/dwmblocks/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchgit, libX11, config_h ? null, patches ? [] }: +{ stdenv, lib, fetchgit, libX11, config_h ? null, patches ? [] }: with stdenv.lib; @@ -16,7 +16,7 @@ stdenv.mkDerivation rec { buildInputs = [ libX11 ]; prePatch = '' - ${stdenv.lib.optionalString (config_h) "cp ${config_h} config.h"} + ${lib.optionalString (config_h != null) "cp ${config_h} config.h"} ''; installPhase = '' -- cgit 1.4.1