2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2020-12-27 14:24:52 +00:00
|
|
|
, fetchpatch
|
|
|
|
, pythonPackages
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2020-12-27 14:24:52 +00:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "cpuset";
|
2020-12-27 14:24:52 +00:00
|
|
|
version = "1.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-27 14:24:52 +00:00
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
|
|
|
configparser
|
|
|
|
future
|
|
|
|
];
|
|
|
|
|
|
|
|
# https://github.com/lpechacek/cpuset/pull/36
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/MawKKe/cpuset/commit/a4b6b275d0a43d2794ab9e82922d3431aeea9903.patch";
|
|
|
|
sha256 = "1mi1xrql81iczl67s4dk2rm9r1mk36qhsa19wn7zgryf95krsix2";
|
|
|
|
})
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
makeFlags = [ "prefix=$(out)" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-12-27 14:24:52 +00:00
|
|
|
owner = "lpechacek";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "cpuset";
|
|
|
|
rev = "v${version}";
|
2020-12-27 14:24:52 +00:00
|
|
|
sha256 = "0ig0ml2zd5542d0989872vmy7cs3qg7nxwa93k42bdkm50amhar4";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-12-27 14:24:52 +00:00
|
|
|
checkPhase = ''
|
|
|
|
cd t
|
|
|
|
make
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-03 02:18:15 +00:00
|
|
|
description = "Python application that forms a wrapper around the standard Linux filesystem calls to make using the cpusets facilities in the Linux kernel easier";
|
2020-12-27 14:24:52 +00:00
|
|
|
homepage = "https://github.com/lpechacek/cpuset";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2;
|
2020-12-27 14:24:52 +00:00
|
|
|
maintainers = with maintainers; [ thiagokokada wykurz ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|