Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, buildDunePackage, fetchFromGitHub, autoconf }: 2 3buildDunePackage rec { 4 pname = "cpu"; 5 version = "2.0.0"; 6 7 useDune2 = true; 8 9 src = fetchFromGitHub { 10 owner = "UnixJunkie"; 11 repo = pname; 12 rev = "v${version}"; 13 sha256 = "1vir6gh1bhvxgj2fcn69c38yhw3jgk7dyikmw789m5ld2csnyjiv"; 14 }; 15 16 preConfigure = '' 17 autoconf 18 autoheader 19 ''; 20 21 nativeBuildInputs = [ autoconf ]; 22 23 hardeningDisable = lib.optional stdenv.isDarwin "strictoverflow"; 24 25 meta = with lib; { 26 inherit (src.meta) homepage; 27 description = "Core pinning library"; 28 maintainers = [ maintainers.bcdarwin ]; 29 license = licenses.lgpl2; 30 }; 31}