tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
protocol: fix build
Fabian Affolter
3 years ago
af292cd1
0a6b1ff6
+16
-7
2 changed files
expand all
collapse all
unified
split
pkgs
applications
networking
protocol
default.nix
top-level
all-packages.nix
+15
-6
pkgs/applications/networking/protocol/default.nix
···
1
-
{ lib, buildPythonApplication, fetchFromGitHub }:
0
0
0
2
3
-
buildPythonApplication {
4
-
pname = "protocol-unstable";
5
-
version = "2019-03-28";
0
6
7
src = fetchFromGitHub {
8
owner = "luismartingarcia";
···
11
sha256 = "13l10jhf4vghanmhh3pn91b2jdciispxy0qadz4n08blp85qn9cm";
12
};
13
0
0
0
0
0
14
meta = with lib; {
15
-
description = "An ASCII Header Generator for Network Protocols";
16
homepage = "https://github.com/luismartingarcia/protocol";
17
-
license = licenses.gpl3;
18
maintainers = with maintainers; [ teto ];
19
};
20
}
···
1
+
{ lib
2
+
, python3
3
+
, fetchFromGitHub
4
+
}:
5
6
+
python3.pkgs.buildPythonApplication rec {
7
+
pname = "protocol";
8
+
version = "unstable-2019-03-28";
9
+
format = "setuptools";
10
11
src = fetchFromGitHub {
12
owner = "luismartingarcia";
···
15
sha256 = "13l10jhf4vghanmhh3pn91b2jdciispxy0qadz4n08blp85qn9cm";
16
};
17
18
+
postPatch = ''
19
+
substituteInPlace setup.py \
20
+
--replace "scripts=['protocol', 'constants.py', 'specs.py']" "scripts=['protocol'], py_modules=['constants', 'specs']"
21
+
'';
22
+
23
meta = with lib; {
24
+
description = "ASCII Header Generator for Network Protocols";
25
homepage = "https://github.com/luismartingarcia/protocol";
26
+
license = licenses.gpl3Plus;
27
maintainers = with maintainers; [ teto ];
28
};
29
}
+1
-1
pkgs/top-level/all-packages.nix
···
34417
34418
pt = callPackage ../applications/misc/pt { };
34419
34420
-
protocol = python3Packages.callPackage ../applications/networking/protocol { };
34421
34422
pykms = callPackage ../tools/networking/pykms { };
34423
···
34417
34418
pt = callPackage ../applications/misc/pt { };
34419
34420
+
protocol = callPackage ../applications/networking/protocol { };
34421
34422
pykms = callPackage ../tools/networking/pykms { };
34423