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

32 lines
840 B
Nix
Raw Normal View History

{stdenv, fetchgit, xproto, libX11, enableXft, libXft, customConfig ? null }:
2015-06-19 20:58:50 +03:00
with stdenv.lib;
stdenv.mkDerivation rec {
name = "tabbed-20160425";
2015-06-19 20:58:50 +03:00
src = fetchgit {
url = http://git.suckless.org/tabbed;
rev = "bc236142fa72d2f9d6b5c790d3f3a9a9168a7164";
sha256 = "1fiv57g3jnlhnb6zrzl3n6lnpn2s9s0sd7bcv7r1nb3grwy7icri";
};
postPatch = stdenv.lib.optionalString (customConfig != null) ''
cp ${builtins.toFile "config.h" customConfig} ./config.h
'';
buildInputs = [ xproto libX11 libXft ];
preInstall = ''
export makeFlags="PREFIX=$out"
'';
2015-06-19 20:58:50 +03: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;
};
}