2023-04-12 12:48:02 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, fontconfig
|
|
|
|
, libX11
|
|
|
|
, libXi
|
|
|
|
, freetype
|
|
|
|
, mesa
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "brlcad";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "7.34.2";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BRL-CAD";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/rel-${lib.replaceStrings [ "." ] [ "-" ] version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-oafu255xElEIk8p4yvNyR2maykUfxQui/L5MkicA+JA=";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fontconfig
|
|
|
|
libX11
|
|
|
|
libXi
|
|
|
|
freetype
|
|
|
|
mesa
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBRLCAD_ENABLE_STRICT=OFF"
|
|
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://brlcad.org";
|
|
|
|
description = "BRL-CAD is a powerful cross-platform open source combinatorial solid modeling system";
|
|
|
|
license = with licenses; [ lgpl21 bsd2 ];
|
|
|
|
maintainers = with maintainers; [ GaetanLepage ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|