2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildDunePackage, fetchFromGitHub, autoconf }:
|
2019-11-25 20:21:03 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
2019-12-26 22:30:49 +00:00
|
|
|
pname = "cpu";
|
|
|
|
version = "2.0.0";
|
2019-11-25 20:21:03 +00:00
|
|
|
|
2021-04-01 07:49:17 +01:00
|
|
|
useDune2 = true;
|
|
|
|
|
2019-11-25 20:21:03 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "UnixJunkie";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2019-12-26 22:30:49 +00:00
|
|
|
sha256 = "1vir6gh1bhvxgj2fcn69c38yhw3jgk7dyikmw789m5ld2csnyjiv";
|
2019-11-25 20:21:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
autoconf
|
|
|
|
autoheader
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ autoconf ];
|
|
|
|
|
2021-01-11 12:49:15 +00:00
|
|
|
hardeningDisable = lib.optional stdenv.isDarwin "strictoverflow";
|
2019-11-25 20:21:03 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-11-25 20:21:03 +00:00
|
|
|
inherit (src.meta) homepage;
|
2019-12-26 22:30:49 +00:00
|
|
|
description = "Core pinning library";
|
2019-11-25 20:21:03 +00:00
|
|
|
maintainers = [ maintainers.bcdarwin ];
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
};
|
|
|
|
}
|