about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/X11/xcwd/default.nix
blob: fa4ec15b8160620e4f35b8e5ee4551fb83fb75ac (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
28
29
30
31
{ lib, stdenv, fetchFromGitHub, libX11 }:

stdenv.mkDerivation {
  version = "2019-05-09";
  pname = "xcwd";

  src = fetchFromGitHub {
    owner   = "schischi";
    repo    = "xcwd";
    rev     = "99738e1176acf3f39c2e709236c3fd87b806f2ed";
    sha256  = "1wvhj5x8ysi1q73f9cw1f6znvp2zivd8pp6z1p3znw732h4zlv6v";
  };

  buildInputs = [ libX11 ];

  makeFlags = [ "prefix=$(out)" ];

  installPhase = ''
    install -D xcwd "$out/bin/xcwd"
  '';

  meta = with lib; {
    description = ''
      A simple tool which print the current working directory of the currently focused window
    '';
    homepage = "https://github.com/schischi/xcwd";
    maintainers = [ maintainers.grburst ];
    license = licenses.bsd3;
    platforms = platforms.linux;
  };
}