From a143ac8d65d52c3ccb7901fc75b0d53ce0cd196b Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Tue, 20 Apr 2021 21:20:29 +0200 Subject: Add conf for st --- pkgs/larbs/st/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/larbs/st/default.nix b/pkgs/larbs/st/default.nix index 92621e9..10528f7 100644 --- a/pkgs/larbs/st/default.nix +++ b/pkgs/larbs/st/default.nix @@ -1,6 +1,7 @@ -{ stdenv, fetchgit, pkgconfig, writeText, libX11, ncurses, libXft, harfbuzzFull }: +{ stdenv, lib, fetchgit, pkgconfig, writeText, libX11, ncurses, libXft, harfbuzzFull, +conf ? null }: -with stdenv.lib; +with lib; stdenv.mkDerivation rec { name = "st"; @@ -16,7 +17,9 @@ stdenv.mkDerivation rec { patchPhase = '' sed -i 's/alpha = 0.8/alpha = 0.95/' config.h - ''; + '' + optionalString (conf != null) '' + cp ${conf} config.h + ''; installPhase = '' sed -i '/man/d' Makefile -- cgit 1.4.1