mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 07:32:58 +00:00
Merge pull request #307683 from RobWalt/radiance
This commit is contained in:
commit
57d330a1b1
@ -1099,6 +1099,11 @@ lib.mapAttrs mkLicense ({
|
|||||||
url = "https://qwt.sourceforge.io/qwtlicense.html";
|
url = "https://qwt.sourceforge.io/qwtlicense.html";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
radiance = {
|
||||||
|
fullName = "The Radiance Software License, Version 2.0";
|
||||||
|
url = "https://github.com/LBNL-ETA/Radiance/blob/master/License.txt";
|
||||||
|
};
|
||||||
|
|
||||||
ruby = {
|
ruby = {
|
||||||
spdxId = "Ruby";
|
spdxId = "Ruby";
|
||||||
fullName = "Ruby License";
|
fullName = "Ruby License";
|
||||||
|
47
pkgs/by-name/ra/radiance/package.nix
Normal file
47
pkgs/by-name/ra/radiance/package.nix
Normal 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";
|
||||||
|
};
|
||||||
|
})
|
Loading…
Reference in New Issue
Block a user