depot/third_party/nixpkgs/pkgs/tools/misc/xtitle/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

28 lines
682 B
Nix

{ lib, stdenv, fetchFromGitHub, libxcb, xcbutil, xcbutilwm, git }:
stdenv.mkDerivation rec {
pname = "xtitle";
version = "0.4.4";
src = fetchFromGitHub {
owner = "baskerville";
repo = "xtitle";
rev = version;
hash = "sha256-SVfM2vCCacgchXj0c0sPk3VR6DUI4R0ofFnxJSY4oDg=";
};
postPatch = ''
sed -i "s|/usr/local|$out|" Makefile
'';
buildInputs = [ libxcb git xcbutil xcbutilwm ];
meta = with lib; {
description = "Outputs X window titles";
homepage = "https://github.com/baskerville/xtitle";
maintainers = with maintainers; [ meisternu ];
license = "Custom";
platforms = platforms.linux;
mainProgram = "xtitle";
};
}