2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, buildDunePackage, fetchFromGitHub, autoconf }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "cpu";
|
|
|
|
version = "2.0.0";
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "UnixJunkie";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1vir6gh1bhvxgj2fcn69c38yhw3jgk7dyikmw789m5ld2csnyjiv";
|
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
autoconf
|
|
|
|
autoheader
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ autoconf ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
hardeningDisable = lib.optional stdenv.isDarwin "strictoverflow";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Core pinning library";
|
|
|
|
maintainers = [ maintainers.bcdarwin ];
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
};
|
|
|
|
}
|