Files
nixpkgs/pkgs/by-name/ra/radiance/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

48 lines
924 B
Nix

{
cmake,
fetchFromGitHub,
runCommand,
lib,
libGLU,
stdenv,
libX11,
tcsh,
tk,
}:
let
csh = runCommand "csh" { } ''
mkdir -p $out/bin
ln -s ${lib.getExe tcsh} $out/bin/csh
'';
in
stdenv.mkDerivation (finalAttrs: {
pname = "radiance";
version = "5.4";
src = fetchFromGitHub {
owner = "LBNL-ETA";
repo = "radiance";
tag = "rad${lib.versions.major finalAttrs.version}R${lib.versions.minor finalAttrs.version}";
hash = "sha256-21lVWqO8uJefnm/dyfrjQJYbGck0fIRr2j0A+7WlZbM=";
};
nativeBuildInputs = [
cmake
csh # for some custom scripting in the repo
tk # for wish
];
buildInputs = [
libGLU
libX11
];
meta = {
description = "Validated Lighting Simulation Tool";
homepage = "https://github.com/LBNL-ETA/Radiance";
license = lib.licenses.bsd3Lbnl;
maintainers = with lib.maintainers; [ robwalt ];
mainProgram = "rad";
};
})