git.iko.soy/typeable/nixpkgs
on master help sign in
cpuset: 1.5.8 -> 1.6

Switch from wykurz to lpechacek fork, so we can use Python 3 instead of Python 2. However, Python 2 should still works. Also, fix this issue since it is easy: https://github.com/lpechacek/cpuset/issues/38

commit563ce874123833162ed5c9e1531941463be165b4 authorThiago Kenji Okada <thiagokokada@gmail.com> dateWed 23 Dec 2020, 22:54 (6 years ago) parent8f5c939
2 files changed+28−9
pkgs/os-specific/linux/cpuset/default.nix+25−8 pkgs/top-level/all-packages.nix+3−1
pkgs/os-specific/linux/cpuset/default.nix+25−8
@@ -1,27 +1,44 @@
11{ stdenv
22, fetchFromGitHub
3−, python2Packages
3+, fetchpatch
4+, pythonPackages
45}:
56
6−python2Packages.buildPythonApplication rec {
7+pythonPackages.buildPythonApplication rec {
78 pname = "cpuset";
8− version = "1.5.8";
9+ version = "1.6";
910
10− propagatedBuildInputs = [ ];
11+ propagatedBuildInputs = with pythonPackages; [
12+ configparser
13+ future
14+ ];
15+
16+ # https://github.com/lpechacek/cpuset/pull/36
17+ patches = [
18+ (fetchpatch {
19+ url = "https://github.com/MawKKe/cpuset/commit/a4b6b275d0a43d2794ab9e82922d3431aeea9903.patch";
20+ sha256 = "1mi1xrql81iczl67s4dk2rm9r1mk36qhsa19wn7zgryf95krsix2";
21+ })
22+ ];
1123
1224 makeFlags = [ "prefix=$(out)" ];
1325
1426 src = fetchFromGitHub {
15− owner = "wykurz";
27+ owner = "lpechacek";
1628 repo = "cpuset";
1729 rev = "v${version}";
18− sha256 = "19fl2sn470yrnm2q508giggjwy5b6r2gd94gvwfbdlhf0r9dsbbm";
30+ sha256 = "0ig0ml2zd5542d0989872vmy7cs3qg7nxwa93k42bdkm50amhar4";
1931 };
2032
33+ checkPhase = ''
34+ cd t
35+ make
36+ '';
37+
2138 meta = with stdenv.lib; {
2239 description = "Python application that forms a wrapper around the standard Linux filesystem calls to make using the cpusets facilities in the Linux kernel easier";
23− homepage = "https://github.com/wykurz/cpuset";
40+ homepage = "https://github.com/lpechacek/cpuset";
2441 license = licenses.gpl2;
25− maintainers = with maintainers; [ wykurz ];
42+ maintainers = with maintainers; [ thiagokokada wykurz ];
2643 };
2744}
pkgs/top-level/all-packages.nix+3−1
@@ -18041,7 +18041,9 @@ in
1804118041
1804218042 cpufrequtils = callPackage ../os-specific/linux/cpufrequtils { };
1804318043
18044− cpuset = callPackage ../os-specific/linux/cpuset { };
18044+ cpuset = callPackage ../os-specific/linux/cpuset {
18045+ pythonPackages = python3Packages;
18046+ };
1804518047
1804618048 criu = callPackage ../os-specific/linux/criu { };
1804718049