2017-07-13 00:11:47 +00:00
|
|
|
{ stdenv, fetchFromGitHub, libX11 }:
|
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2017-07-13 00:11:47 +00:00
|
|
|
version = "2016-09-30";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "xcwd";
|
2017-07-13 00:11:47 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "schischi";
|
|
|
|
repo = "xcwd";
|
|
|
|
rev = "3f0728b932904985b703b33bd5c936ea96cf15a0";
|
|
|
|
sha256 = "0lwfz6qg7fkiq86skp51vpav33yik22ps4dvr48asv3570skhlf9";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libX11 ];
|
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
makeFlags = [ "prefix=$(out)" ];
|
2017-07-13 00:11:47 +00: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
|
|
|
|
'';
|
|
|
|
homepage = https://github.com/schischi/xcwd;
|
|
|
|
maintainers = [ maintainers.grburst ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|