depot/third_party/nixpkgs/pkgs/tools/X11/xcwd/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

32 lines
754 B
Nix

{ lib, stdenv, fetchFromGitHub, libX11 }:
stdenv.mkDerivation (finalAttrs: {
pname = "xcwd";
version = "1.0";
src = fetchFromGitHub {
owner = "schischi";
repo = "xcwd";
rev = "v${finalAttrs.version}";
hash = "sha256-M6/1H6hI50Cvx40RTKzZXoUui0FGZfwe1IwdaxMJIQo=";
};
buildInputs = [ libX11 ];
makeFlags = [ "prefix=$(out)" ];
preInstall = ''
mkdir -p $out/bin
'';
meta = {
description = ''
A simple tool which prints the current working directory of the currently focused window
'';
homepage = "https://github.com/schischi/xcwd";
license = lib.licenses.bsd3;
mainProgram = "xcwd";
maintainers = [ lib.maintainers.grburst ];
platforms = lib.platforms.linux;
};
})