2021-10-14 00:43:12 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libxcb, xcbutil, xcbutilwm, git }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-10-14 00:43:12 +00:00
|
|
|
pname = "xtitle";
|
|
|
|
version = "0.4.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "baskerville";
|
|
|
|
repo = "xtitle";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-SVfM2vCCacgchXj0c0sPk3VR6DUI4R0ofFnxJSY4oDg=";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i "s|/usr/local|$out|" Makefile
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
buildInputs = [ libxcb git xcbutil xcbutilwm ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Outputs X window titles";
|
|
|
|
homepage = "https://github.com/baskerville/xtitle";
|
|
|
|
maintainers = with maintainers; [ meisternu ];
|
|
|
|
license = "Custom";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|