nixpkgs/pkgs/applications/misc/st/default.nix
William A. Kennington III 635599c611 st: Add builtInput for pkgconfig
During the build process st fails to find pkg-config. This does not throw a fatal error but it should be included during build time.
2014-03-11 12:11:19 -05:00

31 lines
830 B
Nix

{ stdenv, fetchurl, pkgconfig, writeText, libX11, ncurses, libXext, libXft, fontconfig
, conf? null}:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "st-0.4.1";
src = fetchurl {
url = "http://dl.suckless.org/st/${name}.tar.gz";
sha256 = "0cdzwbm5fxrwz8ryxkh90d3vwx54wjyywgj28ymsb5fdv3396bzf";
};
configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
buildInputs = [ pkgconfig libX11 ncurses libXext libXft fontconfig ];
NIX_LDFLAGS = "-lfontconfig";
installPhase = ''
TERMINFO=$out/share/terminfo make install PREFIX=$out
'';
meta = {
homepage = http://st.suckless.org/;
license = "MIT";
maintainers = with maintainers; [viric];
platforms = with platforms; linux;
};
}