depot/third_party/nixpkgs/pkgs/tools/X11/xcwd/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

31 lines
755 B
Nix

{ 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 stdenv.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;
};
}