5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
38 lines
1.2 KiB
Nix
38 lines
1.2 KiB
Nix
{ lib, fetchurl, appimageTools, wrapGAppsHook3 }:
|
|
|
|
let
|
|
pname = "jbrowse";
|
|
version = "2.11.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/GMOD/jbrowse-components/releases/download/v${version}/jbrowse-desktop-v${version}-linux.AppImage";
|
|
sha256 = "sha256-MtcrkDg7OC3PTc6fdeG3O/CdyP3122+2BSzKE7rrtWI=";
|
|
};
|
|
|
|
appimageContents = appimageTools.extractType2 {
|
|
inherit pname version src;
|
|
};
|
|
|
|
in
|
|
appimageTools.wrapType2 {
|
|
inherit pname version src;
|
|
unshareIpc = false;
|
|
|
|
extraInstallCommands = ''
|
|
mv $out/bin/jbrowse $out/bin/jbrowse-desktop
|
|
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; {
|
|
description = "The next-generation genome browser";
|
|
mainProgram = "jbrowse-desktop";
|
|
homepage = "https://jbrowse.org/jb2/";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ benwbooth ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|