7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
31 lines
671 B
Nix
31 lines
671 B
Nix
{ lib, stdenv, buildDunePackage, fetchFromGitHub, autoconf }:
|
|
|
|
buildDunePackage rec {
|
|
pname = "cpu";
|
|
version = "2.0.0";
|
|
|
|
useDune2 = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "UnixJunkie";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1vir6gh1bhvxgj2fcn69c38yhw3jgk7dyikmw789m5ld2csnyjiv";
|
|
};
|
|
|
|
preConfigure = ''
|
|
autoconf
|
|
autoheader
|
|
'';
|
|
|
|
nativeBuildInputs = [ autoconf ];
|
|
|
|
hardeningDisable = lib.optional stdenv.hostPlatform.isDarwin "strictoverflow";
|
|
|
|
meta = with lib; {
|
|
inherit (src.meta) homepage;
|
|
description = "Core pinning library";
|
|
maintainers = [ maintainers.bcdarwin ];
|
|
license = licenses.lgpl2;
|
|
};
|
|
}
|