nixpkgs-suyu/pkgs/tools/X11/xcwd/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
754 B
Nix
Raw Permalink Normal View History

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