2024-07-27 06:49:29 +00:00
|
|
|
{ lib, fetchurl, appimageTools }:
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "jbrowse";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "2.15.4";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/GMOD/jbrowse-components/releases/download/v${version}/jbrowse-desktop-v${version}-linux.AppImage";
|
2024-10-04 16:56:33 +00:00
|
|
|
sha256 = "sha256-ojIvC93dx9BSnUw7zBpDMBD0xPCMG4GUH1e5ZRGd9pk=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
appimageContents = appimageTools.extractType2 {
|
|
|
|
inherit pname version src;
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
appimageTools.wrapType2 {
|
|
|
|
inherit pname version src;
|
|
|
|
unshareIpc = false;
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
2024-05-15 15:35:15 +00:00
|
|
|
mv $out/bin/jbrowse $out/bin/jbrowse-desktop
|
2023-05-24 13:37:59 +00:00
|
|
|
install -m 444 -D ${appimageContents}/jbrowse-desktop.desktop $out/share/applications/jbrowse-desktop.desktop
|
|
|
|
install -m 444 -D ${appimageContents}/jbrowse-desktop.png \
|
|
|
|
$out/share/icons/hicolor/512x512/apps/jbrowse-desktop.png
|
|
|
|
substituteInPlace $out/share/applications/jbrowse-desktop.desktop \
|
|
|
|
--replace 'Exec=AppRun --no-sandbox' 'Exec=jbrowse-desktop'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Next-generation genome browser";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "jbrowse-desktop";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://jbrowse.org/jb2/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ benwbooth ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|