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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
652 B
Nix
Raw Normal View History

{ lib, stdenv, buildDunePackage, fetchFromGitHub, autoconf }:
2019-11-25 20:21:03 +00:00
buildDunePackage rec {
pname = "cpu";
version = "2.0.0";
2019-11-25 20:21:03 +00:00
2021-04-01 07:49:17 +01:00
useDune2 = true;
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 = lib.optional stdenv.isDarwin "strictoverflow";
2019-11-25 20:21:03 +00:00
meta = with lib; {
2019-11-25 20:21:03 +00:00
inherit (src.meta) homepage;
description = "Core pinning library";
2019-11-25 20:21:03 +00:00
maintainers = [ maintainers.bcdarwin ];
license = licenses.lgpl2;
};
}