13 stdenv.mkDerivation rec {
17 src = fetchFromGitHub {
20 rev = "refs/tags/rel-${lib.replaceStrings [ "." ] [ "-" ] version}";
21 hash = "sha256-23UTeH4gY2x/QGYZ64glAkf6LmsXBAppIOHgoUdxgpo=";
25 # This commit was bringing an impurity in the rpath resulting in:
26 # RPATH of binary /nix/store/rq2hjvfgq2nvh5zxch51ij34rqqdpark-brlcad-7.38.0/bin/tclsh contains a forbidden reference to /build/
28 url = "https://github.com/BRL-CAD/brlcad/commit/fbdbf042b2db4c7d46839a17bbf4985cdb81f0ae.patch";
30 hash = "sha256-Wfihd7TLkE8aOpLdDtYmhhd7nZijiVGh1nbUjWr/BjQ=";
47 "-DBRLCAD_ENABLE_STRICT=OFF"
50 env.NIX_CFLAGS_COMPILE = toString [
52 "-Wno-error=array-bounds"
56 homepage = "https://brlcad.org";
57 description = "BRL-CAD is a powerful cross-platform open source combinatorial solid modeling system";
58 changelog = "https://github.com/BRL-CAD/brlcad/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
59 license = with licenses; [ lgpl21 bsd2 ];
60 maintainers = with maintainers; [ GaetanLepage ];
61 platforms = platforms.linux;
62 # error Exactly one of ON_LITTLE_ENDIAN or ON_BIG_ENDIAN should be defined.
63 broken = stdenv.system == "aarch64-linux";