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