depot/third_party/nixpkgs/pkgs/development/ocaml-modules/cpu/default.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

29 lines
632 B
Nix

{ lib, 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 = lib.optional stdenv.isDarwin "strictoverflow";
meta = with lib; {
inherit (src.meta) homepage;
description = "Core pinning library";
maintainers = [ maintainers.bcdarwin ];
license = licenses.lgpl2;
};
}