1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00
nixpkgs/pkgs/applications/window-managers/tabbed/default.nix
2021-01-16 17:58:11 +07:00

34 lines
838 B
Nix

{lib, stdenv, fetchgit, xorgproto, libX11, libXft, customConfig ? null, patches ? [] }:
with lib;
stdenv.mkDerivation {
name = "tabbed-20180310";
src = fetchgit {
url = "https://git.suckless.org/tabbed";
rev = "b5f9ec647aae2d9a1d3bd586eb7523a4e0a329a3";
sha256 = "0frj2yjaf0mfjwgyfappksfir52mx2xxd3cdg5533m5d88vbmxss";
};
inherit patches;
postPatch = lib.optionalString (customConfig != null) ''
cp ${builtins.toFile "config.h" customConfig} ./config.h
'';
buildInputs = [ xorgproto libX11 libXft ];
makeFlags = [
"PREFIX=$(out)"
];
meta = {
homepage = "https://tools.suckless.org/tabbed";
description = "Simple generic tabbed fronted to xembed aware applications";
license = licenses.mit;
maintainers = with maintainers; [ vrthra ];
platforms = platforms.linux;
};
}