2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libX11 }:
|
2017-07-13 02:11:47 +02:00
|
|
|
|
2022-10-23 09:31:40 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.0";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "xcwd";
|
2017-07-13 02:11:47 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "schischi";
|
|
|
|
repo = "xcwd";
|
2022-10-23 09:31:40 +02:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-M6/1H6hI50Cvx40RTKzZXoUui0FGZfwe1IwdaxMJIQo=";
|
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"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-07-13 02:11:47 +02:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|