nixpkgs/pkgs/applications/window-managers/tabbed/default.nix

34 lines
907 B
Nix
Raw Normal View History

{stdenv, fetchgit, xproto, libX11, enableXft, libXft, customConfig ? null }:
2015-06-19 19:58:50 +02:00
with stdenv.lib;
stdenv.mkDerivation rec {
2015-06-19 19:58:50 +02:00
name = "tabbed-20150509";
src = fetchgit {
url = http://git.suckless.org/tabbed;
rev = "55dc32b27b73c121cab18009bf087e95ef3d9c18";
sha256 = "0c5ayf1lrb1xiz5h8dfd4mh05kas42zzi5m5ylrvl67sfz3z4wg1";
};
2015-06-19 19:58:50 +02:00
patches = optional enableXft ./xft.patch;
postPatch = stdenv.lib.optionalString (customConfig != null) ''
cp ${builtins.toFile "config.h" customConfig} ./config.h
'';
2015-06-19 19:58:50 +02:00
buildInputs = [ xproto libX11 ] ++ optional enableXft libXft;
preInstall = ''
export makeFlags="PREFIX=$out"
'';
2015-06-19 19:58:50 +02:00
meta = {
homepage = http://tools.suckless.org/tabbed;
description = "Simple generic tabbed fronted to xembed aware applications";
license = licenses.mit;
maintainers = with maintainers; [ viric vrthra ];
platforms = platforms.linux;
};
}