2021-02-05 17:12:51 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, stdenv
|
|
|
|
, boost
|
|
|
|
, zlib
|
|
|
|
, cmake
|
|
|
|
, maeparser
|
|
|
|
}:
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-02-05 17:12:51 +00:00
|
|
|
pname = "coordgenlibs";
|
2023-02-09 11:40:11 +00:00
|
|
|
version = "3.0.2";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "schrodinger";
|
2024-01-02 11:29:13 +00:00
|
|
|
repo = "coordgenlibs";
|
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-casFPNbPv9mkKpzfBENW7INClypuCO1L7clLGBXvSvI=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ boost zlib maeparser ];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
env = lib.optionalAttrs stdenv.cc.isClang {
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-unused-but-set-variable";
|
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Schrodinger-developed 2D Coordinate Generation";
|
2024-01-02 11:29:13 +00:00
|
|
|
homepage = "https://github.com/schrodinger/coordgenlibs";
|
|
|
|
changelog = "https://github.com/schrodinger/coordgenlibs/releases/tag/${finalAttrs.version}";
|
2021-02-05 17:12:51 +00:00
|
|
|
maintainers = [ maintainers.rmcgibbo ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
2024-01-02 11:29:13 +00:00
|
|
|
})
|