mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
32 lines
720 B
Nix
32 lines
720 B
Nix
{ lib, stdenv, fetchFromGitHub, libX11 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.0";
|
|
pname = "xcwd";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "schischi";
|
|
repo = "xcwd";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-M6/1H6hI50Cvx40RTKzZXoUui0FGZfwe1IwdaxMJIQo=";
|
|
};
|
|
|
|
buildInputs = [ libX11 ];
|
|
|
|
makeFlags = [ "prefix=$(out)" ];
|
|
|
|
installPhase = ''
|
|
install -D xcwd "$out/bin/xcwd"
|
|
'';
|
|
|
|
meta = with 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;
|
|
};
|
|
}
|