a024c30a8a
this shouldn't create any rebuilds
42 lines
756 B
Nix
42 lines
756 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
libxcb,
|
|
libxcb-util,
|
|
libxcb-wm,
|
|
git,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "xtitle";
|
|
version = "0.4.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "baskerville";
|
|
repo = "xtitle";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-SVfM2vCCacgchXj0c0sPk3VR6DUI4R0ofFnxJSY4oDg=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i "s|/usr/local|$out|" Makefile
|
|
'';
|
|
|
|
buildInputs = [
|
|
libxcb
|
|
git
|
|
libxcb-util
|
|
libxcb-wm
|
|
];
|
|
|
|
meta = {
|
|
description = "Outputs X window titles";
|
|
homepage = "https://github.com/baskerville/xtitle";
|
|
maintainers = with lib.maintainers; [ meisternu ];
|
|
license = lib.licenses.unlicense;
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "xtitle";
|
|
};
|
|
})
|