diff options
author | TomaSajt <62384384+TomaSajt@users.noreply.github.com> | 2023-11-27 14:11:28 +0100 |
---|---|---|
committer | TomaSajt <62384384+TomaSajt@users.noreply.github.com> | 2023-11-27 14:11:28 +0100 |
commit | 2eecd0cf688e723f0c3e96b5a9f9ccdaec73006f (patch) | |
tree | 1a9dcb6e536f4814e9a07956de55a7c357fbaa66 /pkgs/tools/X11/xcwd | |
parent | ce89133d426d213006378ceb518cf97ebb445a4d (diff) |
xcwd: cleanup
Diffstat (limited to 'pkgs/tools/X11/xcwd')
-rw-r--r-- | pkgs/tools/X11/xcwd/default.nix | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/pkgs/tools/X11/xcwd/default.nix b/pkgs/tools/X11/xcwd/default.nix index d60390952dd71..897c4af95edc8 100644 --- a/pkgs/tools/X11/xcwd/default.nix +++ b/pkgs/tools/X11/xcwd/default.nix @@ -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; }; -} +}) |