1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-14 00:25:24 +00:00
nixpkgs/pkgs/development/ocaml-modules/cpu/default.nix
2019-12-26 17:30:49 -05:00

30 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;
};
}