Files
2026-02-06 00:25:41 +01:00

46 lines
870 B
Nix

{
lib,
stdenv,
fetchgit,
xorgproto,
libx11,
libxft,
customConfig ? null,
patches ? [ ],
}:
stdenv.mkDerivation (finalAttrs: {
pname = "tabbed";
version = "0.9";
src = fetchgit {
url = "https://git.suckless.org/tabbed";
rev = finalAttrs.version;
hash = "sha256-IpFbkyNNzMtESjpQNFOUdE6Tl+ezJN85T71Cm7bqljo=";
};
inherit patches;
postPatch = lib.optionalString (customConfig != null) ''
cp ${builtins.toFile "config.h" customConfig} ./config.h
'';
buildInputs = [
xorgproto
libx11
libxft
];
makeFlags = [ "CC:=$(CC)" ];
installFlags = [ "PREFIX=$(out)" ];
meta = {
homepage = "https://tools.suckless.org/tabbed";
description = "Simple generic tabbed fronted to xembed aware applications";
license = lib.licenses.mit;
maintainers = [ ];
platforms = lib.platforms.linux;
};
})