2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libX11 }:
|
2017-07-13 02:11:47 +02:00
|
|
|
|
2023-11-27 14:11:28 +01:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-15 14:41:18 +02:00
|
|
|
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 ];
|
|
|
|
|
2019-10-27 14:03:25 +01:00
|
|
|
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
|
|
|
'';
|
2020-04-01 03:11:51 +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
|
|
|
})
|