diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-04-20 21:20:29 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-04-20 21:20:29 +0200 |
commit | a143ac8d65d52c3ccb7901fc75b0d53ce0cd196b (patch) | |
tree | 5dc0fcae5208af3aa6eb8b876874e0de25531d45 /pkgs/larbs/st | |
parent | 3159eade65dc0bd8e30849b2db6fff15948a8459 (diff) | |
download | pnpkgs-a143ac8d65d52c3ccb7901fc75b0d53ce0cd196b.tar.gz pnpkgs-a143ac8d65d52c3ccb7901fc75b0d53ce0cd196b.zip |
Add conf for st
Diffstat (limited to 'pkgs/larbs/st')
-rw-r--r-- | pkgs/larbs/st/default.nix | 9 |
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 |