about summary refs log tree commit diff
path: root/pkgs/tools/misc/xtitle/default.nix
blob: e3454538bf84ecad903e0866b6fa84bc9fdf929d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ 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;
  };
}