2021-11-07 14:50:48 +01:00
|
|
|
{ lib, stdenv, fetchgit, xorgproto, libX11, libXft, customConfig ? null, patches ? [ ] }:
|
2015-06-19 19:58:50 +02:00
|
|
|
|
2022-11-12 17:38:15 +01:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-11-08 09:47:34 +01:00
|
|
|
pname = "tabbed";
|
2022-11-12 17:38:15 +01:00
|
|
|
version = "0.7";
|
2015-06-19 19:58:50 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "https://git.suckless.org/tabbed";
|
2022-11-12 17:38:15 +01:00
|
|
|
rev = finalAttrs.version;
|
|
|
|
hash = "sha256-Y1MgPwqMUoa2Rr4HmqjtPaQegUmQJWYkcbyFcJHAOBI=";
|
2012-03-25 22:10:25 +02:00
|
|
|
};
|
|
|
|
|
2016-06-29 21:28:13 +02:00
|
|
|
inherit patches;
|
|
|
|
|
2021-01-15 14:21:58 +01:00
|
|
|
postPatch = lib.optionalString (customConfig != null) ''
|
2016-06-29 21:20:16 +02:00
|
|
|
cp ${builtins.toFile "config.h" customConfig} ./config.h
|
|
|
|
'';
|
|
|
|
|
2018-12-31 04:40:47 +01:00
|
|
|
buildInputs = [ xorgproto libX11 libXft ];
|
2012-03-25 22:10:25 +02:00
|
|
|
|
2022-01-16 21:53:36 +01:00
|
|
|
makeFlags = [ "CC:=$(CC)" ];
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2015-06-19 19:58:50 +02:00
|
|
|
|
2021-11-08 09:47:34 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://tools.suckless.org/tabbed";
|
2012-03-25 22:10:25 +02:00
|
|
|
description = "Simple generic tabbed fronted to xembed aware applications";
|
2015-05-28 19:20:29 +02:00
|
|
|
license = licenses.mit;
|
2018-07-22 21:50:19 +02:00
|
|
|
maintainers = with maintainers; [ vrthra ];
|
2015-11-17 21:29:29 +01:00
|
|
|
platforms = platforms.linux;
|
2012-03-25 22:10:25 +02:00
|
|
|
};
|
2022-11-12 17:38:15 +01:00
|
|
|
})
|