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