Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 37 lines 877 B view raw
1{ fetchFromGitHub 2, lib 3, stdenv 4, boost 5, zlib 6, cmake 7, maeparser 8}: 9 10stdenv.mkDerivation (finalAttrs: { 11 pname = "coordgenlibs"; 12 version = "3.0.2"; 13 14 src = fetchFromGitHub { 15 owner = "schrodinger"; 16 repo = "coordgenlibs"; 17 rev = "v${finalAttrs.version}"; 18 hash = "sha256-casFPNbPv9mkKpzfBENW7INClypuCO1L7clLGBXvSvI="; 19 }; 20 21 nativeBuildInputs = [ cmake ]; 22 buildInputs = [ boost zlib maeparser ]; 23 24 env = lib.optionalAttrs stdenv.cc.isClang { 25 NIX_CFLAGS_COMPILE = "-Wno-unused-but-set-variable"; 26 }; 27 28 doCheck = true; 29 30 meta = with lib; { 31 description = "Schrodinger-developed 2D Coordinate Generation"; 32 homepage = "https://github.com/schrodinger/coordgenlibs"; 33 changelog = "https://github.com/schrodinger/coordgenlibs/releases/tag/${finalAttrs.version}"; 34 maintainers = [ maintainers.rmcgibbo ]; 35 license = licenses.bsd3; 36 }; 37})