Skip to content

Commit 56137a2

Browse files
AndersonTorresteto
authored andcommitted
setconf: get rid of rec
1 parent 96043dc commit 56137a2

File tree

1 file changed

+25
-21
lines changed

1 file changed

+25
-21
lines changed
Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,32 @@
1-
{ lib
2-
, python3Packages
3-
, fetchFromGitHub
1+
{
2+
lib,
3+
fetchFromGitHub,
4+
python3Packages,
45
}:
56

6-
python3Packages.buildPythonApplication rec {
7-
pname = "setconf";
8-
version = "0.7.7";
7+
let
8+
self = python3Packages.buildPythonApplication {
9+
pname = "setconf";
10+
version = "0.7.7";
911

10-
src = fetchFromGitHub {
11-
owner = "xyproto";
12-
repo = "setconf";
13-
rev = version;
14-
hash = "sha256-HYZdDtDlGrT3zssDdMW3559hhC+cPy8qkmM8d9zEa1A=";
15-
};
12+
src = fetchFromGitHub {
13+
owner = "xyproto";
14+
repo = "setconf";
15+
rev = self.version;
16+
hash = "sha256-HYZdDtDlGrT3zssDdMW3559hhC+cPy8qkmM8d9zEa1A=";
17+
};
1618

17-
build-system = with python3Packages; [ setuptools ];
19+
build-system = with python3Packages; [ setuptools ];
1820

19-
pyproject = true;
21+
pyproject = true;
2022

21-
meta = {
22-
homepage = "https://github.com/xyproto/setconf";
23-
description = "Small utility for changing settings in configuration textfiles";
24-
changelog = "https://github.com/xyproto/setconf/releases/tag/${version}";
25-
mainProgram = "setconf";
26-
maintainers = with lib.maintainers; [ AndersonTorres ];
23+
meta = {
24+
homepage = "https://github.com/xyproto/setconf";
25+
description = "Small utility for changing settings in configuration textfiles";
26+
changelog = "https://github.com/xyproto/setconf/releases/tag/${self.src.rev}";
27+
mainProgram = "setconf";
28+
maintainers = with lib.maintainers; [ AndersonTorres ];
29+
};
2730
};
28-
}
31+
in
32+
self

0 commit comments

Comments
 (0)