mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
34 lines
875 B
Nix
34 lines
875 B
Nix
{ stdenv, fetchurl, pkgconfig, writeText, libX11, ncurses, libXext, libXft, fontconfig
|
|
, conf ? null, patches ? []}:
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "st-0.6";
|
|
|
|
src = fetchurl {
|
|
url = "http://dl.suckless.org/st/${name}.tar.gz";
|
|
sha256 = "0avsfc1qp8zvshsfjwwrkvk411jlqy58z225bsdhjkl1qc40qcc5";
|
|
};
|
|
|
|
inherit patches;
|
|
|
|
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 = stdenv.lib.licenses.mit;
|
|
maintainers = with maintainers; [viric];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|