radiance: init at 5.4

This commit is contained in:
aviac 2024-05-06 16:50:37 +02:00
parent e9bbad7386
commit be8664b555
No known key found for this signature in database
GPG Key ID: 644781002BDEA982

View File

@ -0,0 +1,47 @@
{
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";
rev = "refs/tags/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.radiance;
maintainers = with lib.maintainers; [ robwalt ];
mainProgram = "rad";
};
})