3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/cpu/default.nix

30 lines
641 B
Nix
Raw Normal View History

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