Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, fetchFromGitHub 3, fetchpatch 4, pythonPackages 5}: 6 7pythonPackages.buildPythonApplication rec { 8 pname = "cpuset"; 9 version = "1.6"; 10 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 ]; 23 24 makeFlags = [ "prefix=$(out)" ]; 25 26 src = fetchFromGitHub { 27 owner = "lpechacek"; 28 repo = "cpuset"; 29 rev = "v${version}"; 30 sha256 = "0ig0ml2zd5542d0989872vmy7cs3qg7nxwa93k42bdkm50amhar4"; 31 }; 32 33 checkPhase = '' 34 cd t 35 make 36 ''; 37 38 meta = with lib; { 39 description = "Python application that forms a wrapper around the standard Linux filesystem calls to make using the cpusets facilities in the Linux kernel easier"; 40 homepage = "https://github.com/lpechacek/cpuset"; 41 license = licenses.gpl2; 42 maintainers = with maintainers; [ thiagokokada wykurz ]; 43 mainProgram = "cset"; 44 }; 45}