From 9bd9de93e1c9e7aa960881e5b578064f9bae16d5 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Tue, 16 Mar 2021 09:45:49 +0100 Subject: Add config to dwmblocks --- pkgs/larbs/dwmblocks/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/larbs/dwmblocks/default.nix b/pkgs/larbs/dwmblocks/default.nix index 560ed14..3277cc0 100644 --- a/pkgs/larbs/dwmblocks/default.nix +++ b/pkgs/larbs/dwmblocks/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchgit, libX11, patches ? [] }: +{ stdenv, fetchgit, libX11, config_h ? null, patches ? [] }: with stdenv.lib; @@ -15,6 +15,10 @@ stdenv.mkDerivation rec { buildInputs = [ libX11 ]; + prePatch = '' + ${stdenv.lib.optionalString (config_h) "cp ${config_h} config.h"} + ''; + installPhase = '' make install PREFIX=$out ''; -- cgit 1.4.1