mricron: init at 1.0.20190902

Co-authored-by: Florian Brandes <florian.brandes@posteo.de>

+89
+89
pkgs/by-name/mr/mricron/package.nix
··· 1 + { 2 + atk, 3 + autoPatchelfHook, 4 + cairo, 5 + copyDesktopItems, 6 + freetype, 7 + fontconfig, 8 + lib, 9 + stdenv, 10 + fetchurl, 11 + gtk2, 12 + glib, 13 + gdk-pixbuf, 14 + makeWrapper, 15 + makeDesktopItem, 16 + pango, 17 + unzip, 18 + xorg, 19 + zlib, 20 + }: 21 + stdenv.mkDerivation rec { 22 + 23 + pname = "mricron"; 24 + version = "1.0.20190902"; 25 + src = fetchurl { 26 + url = "https://github.com/neurolabusc/MRIcron/releases/download/v${version}/MRIcron_linux.zip"; 27 + hash = "sha256-C155u9dvYEyWRfTv3KNQFI6aMWIAjgvdSIqMuYVIOQA="; 28 + }; 29 + 30 + nativeBuildInputs = [ 31 + autoPatchelfHook 32 + copyDesktopItems 33 + makeWrapper 34 + unzip 35 + ]; 36 + 37 + buildInputs = [ 38 + atk 39 + cairo 40 + freetype 41 + fontconfig 42 + gtk2 43 + glib 44 + gdk-pixbuf 45 + pango 46 + xorg.libX11 47 + zlib 48 + ]; 49 + 50 + installPhase = '' 51 + mkdir -p $out/bin 52 + mkdir -p $out/share/icons/hicolor/256x256/apps 53 + 54 + install -Dm777 ./MRIcron $out/bin/mricron 55 + install -Dm444 -t $out/share/icons/hicolor/scalable/apps/ ./Resources/mricron.svg 56 + ''; 57 + 58 + desktopItems = [ 59 + (makeDesktopItem { 60 + type = "Application"; 61 + name = "mricron"; 62 + desktopName = "MRIcron"; 63 + comment = "Application to display NIfTI medical imaging data"; 64 + exec = "mricron %U"; 65 + icon = "mricron"; 66 + categories = [ 67 + "Graphics" 68 + "MedicalSoftware" 69 + "Science" 70 + ]; 71 + terminal = false; 72 + keywords = [ 73 + "medical" 74 + "imaging" 75 + "nifti" 76 + ]; 77 + }) 78 + ]; 79 + 80 + meta = { 81 + description = "Application to display NIfTI medical imaging data"; 82 + homepage = "https://people.cas.sc.edu/rorden/mricron/index.HTML"; 83 + license = lib.licenses.bsd1; 84 + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 85 + platforms = lib.platforms.linux; 86 + maintainers = with lib.maintainers; [ adriangl ]; 87 + mainProgram = "mricron"; 88 + }; 89 + }