diff options
author | Thiago Kenji Okada <thiagokokada@gmail.com> | 2020-12-23 22:54:17 -0300 |
---|---|---|
committer | Thiago Kenji Okada <thiagokokada@gmail.com> | 2020-12-26 16:03:54 -0300 |
commit | 563ce874123833162ed5c9e1531941463be165b4 (patch) | |
tree | 80dd9d451c0ea1a6d4ceaaaf8d02a1651642c8ea /pkgs/os-specific/linux/cpuset/default.nix | |
parent | 8f5c939147dadbc5be07970fd065342b7fb25f45 (diff) | |
download | nixpkgs-563ce874123833162ed5c9e1531941463be165b4.tar nixpkgs-563ce874123833162ed5c9e1531941463be165b4.tar.gz nixpkgs-563ce874123833162ed5c9e1531941463be165b4.tar.bz2 nixpkgs-563ce874123833162ed5c9e1531941463be165b4.tar.lz nixpkgs-563ce874123833162ed5c9e1531941463be165b4.tar.xz nixpkgs-563ce874123833162ed5c9e1531941463be165b4.tar.zst nixpkgs-563ce874123833162ed5c9e1531941463be165b4.zip |
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
Diffstat (limited to 'pkgs/os-specific/linux/cpuset/default.nix')
-rw-r--r-- | pkgs/os-specific/linux/cpuset/default.nix | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/pkgs/os-specific/linux/cpuset/default.nix b/pkgs/os-specific/linux/cpuset/default.nix index 90352a944d5..9e775de62f5 100644 --- a/pkgs/os-specific/linux/cpuset/default.nix +++ b/pkgs/os-specific/linux/cpuset/default.nix @@ -1,27 +1,44 @@ { stdenv , fetchFromGitHub -, python2Packages +, fetchpatch +, pythonPackages }: -python2Packages.buildPythonApplication rec { +pythonPackages.buildPythonApplication rec { pname = "cpuset"; - version = "1.5.8"; + version = "1.6"; - propagatedBuildInputs = [ ]; + 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"; + }) + ]; makeFlags = [ "prefix=$(out)" ]; src = fetchFromGitHub { - owner = "wykurz"; + owner = "lpechacek"; repo = "cpuset"; rev = "v${version}"; - sha256 = "19fl2sn470yrnm2q508giggjwy5b6r2gd94gvwfbdlhf0r9dsbbm"; + sha256 = "0ig0ml2zd5542d0989872vmy7cs3qg7nxwa93k42bdkm50amhar4"; }; + checkPhase = '' + cd t + make + ''; + meta = with stdenv.lib; { description = "Python application that forms a wrapper around the standard Linux filesystem calls to make using the cpusets facilities in the Linux kernel easier"; - homepage = "https://github.com/wykurz/cpuset"; + homepage = "https://github.com/lpechacek/cpuset"; license = licenses.gpl2; - maintainers = with maintainers; [ wykurz ]; + maintainers = with maintainers; [ thiagokokada wykurz ]; }; } |