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
1
{ lib, stdenv, fetchFromGitHub, libX11 }:
2
2
3
3
-
stdenv.mkDerivation rec {
4
4
-
version = "1.0";
3
3
+
stdenv.mkDerivation (finalAttrs: {
5
4
pname = "xcwd";
5
5
+
version = "1.0";
6
6
7
7
src = fetchFromGitHub {
8
8
owner = "schischi";
9
9
repo = "xcwd";
10
10
-
rev = "v${version}";
11
11
-
sha256 = "sha256-M6/1H6hI50Cvx40RTKzZXoUui0FGZfwe1IwdaxMJIQo=";
10
10
+
rev = "v${finalAttrs.version}";
11
11
+
hash = "sha256-M6/1H6hI50Cvx40RTKzZXoUui0FGZfwe1IwdaxMJIQo=";
12
12
};
13
13
14
14
buildInputs = [ libX11 ];
15
15
16
16
makeFlags = [ "prefix=$(out)" ];
17
17
18
18
-
installPhase = ''
19
19
-
install -D xcwd "$out/bin/xcwd"
18
18
+
preInstall = ''
19
19
+
mkdir -p $out/bin
20
20
'';
21
21
22
22
-
meta = with lib; {
22
22
+
meta = {
23
23
description = ''
24
24
-
A simple tool which print the current working directory of the currently focused window
24
24
+
A simple tool which prints the current working directory of the currently focused window
25
25
'';
26
26
homepage = "https://github.com/schischi/xcwd";
27
27
-
maintainers = [ maintainers.grburst ];
28
28
-
license = licenses.bsd3;
29
29
-
platforms = platforms.linux;
27
27
+
license = lib.licenses.bsd3;
30
28
mainProgram = "xcwd";
29
29
+
maintainers = [ lib.maintainers.grburst ];
30
30
+
platforms = lib.platforms.linux;
31
31
};
32
32
-
}
32
32
+
})