cpuset: 1.6 -> 1.6.2

This commit is contained in:
Thiago Kenji Okada 2024-01-08 11:54:54 +00:00
parent 0101e8b78a
commit 98d6d707e8

View File

@ -1,43 +1,32 @@
{ lib { lib
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, python3 , python3
}: }:
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "cpuset"; pname = "cpuset";
version = "1.6"; version = "1.6.2";
propagatedBuildInputs = with python3.pkgs; [
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 { src = fetchFromGitHub {
owner = "lpechacek"; owner = "lpechacek";
repo = "cpuset"; repo = "cpuset";
rev = "v${version}"; rev = "v${version}";
sha256 = "0ig0ml2zd5542d0989872vmy7cs3qg7nxwa93k42bdkm50amhar4"; hash = "sha256-fW0SXNI10pb6FTn/2TOqxP9qlys0KL/H9m//NjslUaY=";
}; };
makeFlags = [ "prefix=$(out)" ];
checkPhase = '' checkPhase = ''
cd t runHook preCheck
make
make -C t
runHook postCheck
''; '';
meta = with lib; { meta = with 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"; 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/lpechacek/cpuset"; homepage = "https://github.com/SUSE/cpuset";
license = licenses.gpl2; license = licenses.gpl2;
mainProgram = "cset"; mainProgram = "cset";
maintainers = with maintainers; [ thiagokokada wykurz ]; maintainers = with maintainers; [ thiagokokada wykurz ];