1{
2 lib,
3 stdenv,
4 buildDunePackage,
5 fetchFromGitHub,
6 autoconf,
7}:
8
9buildDunePackage rec {
10 pname = "cpu";
11 version = "2.0.0";
12
13 useDune2 = true;
14
15 src = fetchFromGitHub {
16 owner = "UnixJunkie";
17 repo = pname;
18 rev = "v${version}";
19 sha256 = "1vir6gh1bhvxgj2fcn69c38yhw3jgk7dyikmw789m5ld2csnyjiv";
20 };
21
22 preConfigure = ''
23 autoconf
24 autoheader
25 '';
26
27 nativeBuildInputs = [ autoconf ];
28
29 hardeningDisable = lib.optional stdenv.hostPlatform.isDarwin "strictoverflow";
30
31 meta = with lib; {
32 inherit (src.meta) homepage;
33 description = "Core pinning library";
34 maintainers = [ maintainers.bcdarwin ];
35 license = licenses.lgpl2;
36 };
37}