depot/third_party/nixpkgs/pkgs/development/ocaml-modules/cpu/default.nix
Default email bba55970ba Project import generated by Copybara.
GitOrigin-RevId: 3d1a7716d7f1fccbd7d30ab3b2ed3db831f43bde
2021-04-05 17:23:46 +02:00

31 lines
652 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
'';
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;
};
}