4e42cac49d
This change was produced by searching for remaining occurrences of stdenv.lib and replacing them manually. Reference #108938.
30 lines
632 B
Nix
30 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;
|
|
};
|
|
}
|