summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/X11/xcwd
diff options
context:
space:
mode:
authorGRBurst <JuliusE89@gmail.com>2017-07-13 02:11:47 +0200
committerJörg Thalheim <joerg@thalheim.io>2017-07-13 13:56:22 +0100
commit63ee6d6e2902a982b77875301b568f4e8b6633fa (patch)
treec54779a57365c40ed17d211465fd618bf02849fb /pkgs/tools/X11/xcwd
parentfe768392e20ea3bc1d23beb6a68e910c568b03ac (diff)
xcwd: init at 2016-09-30
fixes #27345
Diffstat (limited to 'pkgs/tools/X11/xcwd')
-rw-r--r--pkgs/tools/X11/xcwd/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/X11/xcwd/default.nix b/pkgs/tools/X11/xcwd/default.nix
new file mode 100644
index 000000000000..1d42f791fb5c
--- /dev/null
+++ b/pkgs/tools/X11/xcwd/default.nix
@@ -0,0 +1,31 @@
+{ stdenv, fetchFromGitHub, libX11 }:
+
+stdenv.mkDerivation rec {
+ version = "2016-09-30";
+ name = "xcwd-${version}";
+
+ src = fetchFromGitHub {
+ owner = "schischi";
+ repo = "xcwd";
+ rev = "3f0728b932904985b703b33bd5c936ea96cf15a0";
+ sha256 = "0lwfz6qg7fkiq86skp51vpav33yik22ps4dvr48asv3570skhlf9";
+ };
+
+ 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;
+ };
+}