tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
xcwd: cleanup
TomaSajt
2 years ago
2eecd0cf
ce89133d
+12
-12
1 changed file
expand all
collapse all
unified
split
pkgs
tools
X11
xcwd
default.nix
+12
-12
pkgs/tools/X11/xcwd/default.nix
···
1
{ lib, stdenv, fetchFromGitHub, libX11 }:
2
3
-
stdenv.mkDerivation rec {
4
-
version = "1.0";
5
pname = "xcwd";
0
6
7
src = fetchFromGitHub {
8
owner = "schischi";
9
repo = "xcwd";
10
-
rev = "v${version}";
11
-
sha256 = "sha256-M6/1H6hI50Cvx40RTKzZXoUui0FGZfwe1IwdaxMJIQo=";
12
};
13
14
buildInputs = [ libX11 ];
15
16
makeFlags = [ "prefix=$(out)" ];
17
18
-
installPhase = ''
19
-
install -D xcwd "$out/bin/xcwd"
20
'';
21
22
-
meta = with lib; {
23
description = ''
24
-
A simple tool which print the current working directory of the currently focused window
25
'';
26
homepage = "https://github.com/schischi/xcwd";
27
-
maintainers = [ maintainers.grburst ];
28
-
license = licenses.bsd3;
29
-
platforms = platforms.linux;
30
mainProgram = "xcwd";
0
0
31
};
32
-
}
···
1
{ lib, stdenv, fetchFromGitHub, libX11 }:
2
3
+
stdenv.mkDerivation (finalAttrs: {
0
4
pname = "xcwd";
5
+
version = "1.0";
6
7
src = fetchFromGitHub {
8
owner = "schischi";
9
repo = "xcwd";
10
+
rev = "v${finalAttrs.version}";
11
+
hash = "sha256-M6/1H6hI50Cvx40RTKzZXoUui0FGZfwe1IwdaxMJIQo=";
12
};
13
14
buildInputs = [ libX11 ];
15
16
makeFlags = [ "prefix=$(out)" ];
17
18
+
preInstall = ''
19
+
mkdir -p $out/bin
20
'';
21
22
+
meta = {
23
description = ''
24
+
A simple tool which prints the current working directory of the currently focused window
25
'';
26
homepage = "https://github.com/schischi/xcwd";
27
+
license = lib.licenses.bsd3;
0
0
28
mainProgram = "xcwd";
29
+
maintainers = [ lib.maintainers.grburst ];
30
+
platforms = lib.platforms.linux;
31
};
32
+
})