Merge pull request #270412 from TomaSajt/xcwd-cleanup

xcwd: cleanup
This commit is contained in:
Emily Trau 2023-11-29 16:29:22 +11:00 committed by GitHub
commit 2c43bdaa4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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