depot/third_party/nixpkgs/pkgs/development/ocaml-modules/cpu/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

29 lines
641 B
Nix

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