2017-07-13 02:11:47 +02:00
|
|
|
{ stdenv, fetchFromGitHub, libX11 }:
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2020-02-27 17:38:53 +01:00
|
|
|
version = "2019-05-09";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "xcwd";
|
2017-07-13 02:11:47 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "schischi";
|
|
|
|
repo = "xcwd";
|
2020-02-27 17:38:53 +01:00
|
|
|
rev = "99738e1176acf3f39c2e709236c3fd87b806f2ed";
|
|
|
|
sha256 = "1wvhj5x8ysi1q73f9cw1f6znvp2zivd8pp6z1p3znw732h4zlv6v";
|
2017-07-13 02:11:47 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libX11 ];
|
|
|
|
|
2019-10-27 14:03:25 +01:00
|
|
|
makeFlags = [ "prefix=$(out)" ];
|
2017-07-13 02:11:47 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/schischi/xcwd";
|
2017-07-13 02:11:47 +02:00
|
|
|
maintainers = [ maintainers.grburst ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|