mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
commit
699f8e2f65
52
pkgs/applications/science/medicine/aliza/default.nix
Normal file
52
pkgs/applications/science/medicine/aliza/default.nix
Normal file
|
@ -0,0 +1,52 @@
|
|||
{ stdenv, fetchurl, rpmextract, makeWrapper, patchelf, qt4, zlib, libX11, libXt, libSM, libICE, libXext, mesa }:
|
||||
|
||||
with stdenv.lib;
|
||||
stdenv.mkDerivation {
|
||||
name = "aliza";
|
||||
src = fetchurl {
|
||||
# Hosted on muoniurn's google drive
|
||||
url = "https://drive.google.com/uc?export=download&id=0B0s_Yf4jjfZ4WUJaSERHN3FsNFE";
|
||||
sha256 = "1nfp3ghjnfxmxiclg76gcn7a3mhvi6h7s5wmd9v9l6w8lfq9vj5h";
|
||||
name = "aliza.rpm";
|
||||
};
|
||||
|
||||
buildInputs = [ rpmextract makeWrapper ];
|
||||
|
||||
unpackCmd = "rpmextract $curSrc";
|
||||
|
||||
patchPhase = ''
|
||||
sed -i 's/^Exec.*$/Exec=aliza %F/' share/applications/aliza.desktop
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r bin share $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
postInstall = let
|
||||
libs = stdenv.lib.makeLibraryPath [ qt4 zlib stdenv.cc.cc libSM libICE libX11 libXext libXt mesa ];
|
||||
in ''
|
||||
${patchelf}/bin/patchelf \
|
||||
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||
$out/bin/aliza
|
||||
|
||||
${patchelf}/bin/patchelf \
|
||||
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||
$out/bin/aliza-vtkvol
|
||||
|
||||
wrapProgram $out/bin/aliza \
|
||||
--prefix LD_LIBRARY_PATH : ${libs}
|
||||
|
||||
wrapProgram $out/bin/aliza-vtkvol \
|
||||
--prefix LD_LIBRARY_PATH : ${libs}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Medical imaging software with 2D, 3D and 4D capabilities";
|
||||
homepage = "http://www.aliza-dicom-viewer.com";
|
||||
license = licenses.unfreeRedistributable;
|
||||
maintainers = with maintainers; [ mounium ];
|
||||
};
|
||||
}
|
|
@ -17996,6 +17996,10 @@ with pkgs;
|
|||
cmake = cmakeCurses;
|
||||
});
|
||||
|
||||
### SCIENCE/MEDICINE
|
||||
|
||||
aliza = callPackage ../applications/science/medicine/aliza { };
|
||||
|
||||
### PHYSICS
|
||||
|
||||
sacrifice = callPackage ../applications/science/physics/sacrifice {};
|
||||
|
|
Loading…
Reference in a new issue