about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-04-20 21:20:29 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-04-20 21:20:29 +0200
commita143ac8d65d52c3ccb7901fc75b0d53ce0cd196b (patch)
tree5dc0fcae5208af3aa6eb8b876874e0de25531d45
parent3159eade65dc0bd8e30849b2db6fff15948a8459 (diff)
downloadpnpkgs-a143ac8d65d52c3ccb7901fc75b0d53ce0cd196b.tar.gz
pnpkgs-a143ac8d65d52c3ccb7901fc75b0d53ce0cd196b.zip
Add conf for st
-rw-r--r--pkgs/larbs/st/default.nix9
1 files 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