about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/cpu/default.nix
blob: 33702ca18296488924b9fd36d24672770bd0eed5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ 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;
  };
}