
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:
nix-build ci -A fmt.check
This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).
This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).
Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase
).
If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
70 lines
1.6 KiB
Nix
70 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
cmake,
|
|
fontconfig,
|
|
libX11,
|
|
libXi,
|
|
freetype,
|
|
libgbm,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "brlcad";
|
|
version = "7.38.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "BRL-CAD";
|
|
repo = "brlcad";
|
|
rev = "refs/tags/rel-${lib.replaceStrings [ "." ] [ "-" ] version}";
|
|
hash = "sha256-23UTeH4gY2x/QGYZ64glAkf6LmsXBAppIOHgoUdxgpo=";
|
|
};
|
|
|
|
patches = [
|
|
# This commit was bringing an impurity in the rpath resulting in:
|
|
# RPATH of binary /nix/store/rq2hjvfgq2nvh5zxch51ij34rqqdpark-brlcad-7.38.0/bin/tclsh contains a forbidden reference to /build/
|
|
(fetchpatch {
|
|
url = "https://github.com/BRL-CAD/brlcad/commit/fbdbf042b2db4c7d46839a17bbf4985cdb81f0ae.patch";
|
|
revert = true;
|
|
hash = "sha256-Wfihd7TLkE8aOpLdDtYmhhd7nZijiVGh1nbUjWr/BjQ=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
buildInputs = [
|
|
fontconfig
|
|
libX11
|
|
libXi
|
|
freetype
|
|
libgbm
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DBRLCAD_ENABLE_STRICT=OFF"
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
|
# Needed with GCC 12
|
|
"-Wno-error=array-bounds"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://brlcad.org";
|
|
description = "BRL-CAD is a powerful cross-platform open source combinatorial solid modeling system";
|
|
changelog = "https://github.com/BRL-CAD/brlcad/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
|
|
license = with licenses; [
|
|
lgpl21
|
|
bsd2
|
|
];
|
|
maintainers = with maintainers; [ GaetanLepage ];
|
|
platforms = platforms.linux;
|
|
# error Exactly one of ON_LITTLE_ENDIAN or ON_BIG_ENDIAN should be defined.
|
|
broken = stdenv.system == "aarch64-linux";
|
|
};
|
|
}
|