nixpkgs/pkgs/by-name/cp/cpuset/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
793 B
Nix
Raw Normal View History

{ lib
2018-10-20 19:18:27 +01:00
, fetchFromGitHub
2024-01-08 11:51:57 +00:00
, python3
2018-10-20 19:18:27 +01:00
}:
2024-01-08 11:51:57 +00:00
python3.pkgs.buildPythonApplication rec {
2018-10-20 19:18:27 +01:00
pname = "cpuset";
2024-01-08 11:54:54 +00:00
version = "1.6.2";
2018-10-20 19:18:27 +01:00
src = fetchFromGitHub {
owner = "lpechacek";
2018-10-20 19:18:27 +01:00
repo = "cpuset";
rev = "v${version}";
2024-01-08 11:54:54 +00:00
hash = "sha256-fW0SXNI10pb6FTn/2TOqxP9qlys0KL/H9m//NjslUaY=";
2018-10-20 19:18:27 +01:00
};
2024-01-08 11:54:54 +00:00
makeFlags = [ "prefix=$(out)" ];
checkPhase = ''
2024-01-08 11:54:54 +00:00
runHook preCheck
make -C t
runHook postCheck
'';
meta = with lib; {
2024-01-08 11:54:54 +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";
homepage = "https://github.com/SUSE/cpuset";
2024-01-08 11:51:57 +00:00
license = licenses.gpl2;
2022-01-04 18:29:04 +00:00
mainProgram = "cset";
maintainers = with maintainers; [ wykurz ];
platforms = platforms.linux;
2018-10-20 19:18:27 +01:00
};
}