mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 04:27:52 +00:00
mricron: init at 1.0.20190902
Co-authored-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
parent
57d42cb99a
commit
d0f0a642eb
89
pkgs/by-name/mr/mricron/package.nix
Normal file
89
pkgs/by-name/mr/mricron/package.nix
Normal file
@ -0,0 +1,89 @@
|
||||
{
|
||||
atk,
|
||||
autoPatchelfHook,
|
||||
cairo,
|
||||
copyDesktopItems,
|
||||
freetype,
|
||||
fontconfig,
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
gtk2,
|
||||
glib,
|
||||
gdk-pixbuf,
|
||||
makeWrapper,
|
||||
makeDesktopItem,
|
||||
pango,
|
||||
unzip,
|
||||
xorg,
|
||||
zlib,
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
pname = "mricron";
|
||||
version = "1.0.20190902";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/neurolabusc/MRIcron/releases/download/v${version}/MRIcron_linux.zip";
|
||||
hash = "sha256-C155u9dvYEyWRfTv3KNQFI6aMWIAjgvdSIqMuYVIOQA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
copyDesktopItems
|
||||
makeWrapper
|
||||
unzip
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
atk
|
||||
cairo
|
||||
freetype
|
||||
fontconfig
|
||||
gtk2
|
||||
glib
|
||||
gdk-pixbuf
|
||||
pango
|
||||
xorg.libX11
|
||||
zlib
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
mkdir -p $out/share/icons/hicolor/256x256/apps
|
||||
|
||||
install -Dm777 ./MRIcron $out/bin/mricron
|
||||
install -Dm444 -t $out/share/icons/hicolor/scalable/apps/ ./Resources/mricron.svg
|
||||
'';
|
||||
|
||||
desktopItems = [
|
||||
(makeDesktopItem {
|
||||
type = "Application";
|
||||
name = "mricron";
|
||||
desktopName = "MRIcron";
|
||||
comment = "Application to display NIfTI medical imaging data";
|
||||
exec = "mricron %U";
|
||||
icon = "mricron";
|
||||
categories = [
|
||||
"Graphics"
|
||||
"MedicalSoftware"
|
||||
"Science"
|
||||
];
|
||||
terminal = false;
|
||||
keywords = [
|
||||
"medical"
|
||||
"imaging"
|
||||
"nifti"
|
||||
];
|
||||
})
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Application to display NIfTI medical imaging data";
|
||||
homepage = "https://people.cas.sc.edu/rorden/mricron/index.HTML";
|
||||
license = lib.licenses.bsd1;
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ adriangl ];
|
||||
mainProgram = "mricron";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user