Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
43 lines
1.2 KiB
Nix
43 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
fetchurl,
|
|
appimageTools,
|
|
}:
|
|
|
|
let
|
|
pname = "jbrowse";
|
|
version = "3.6.5";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/GMOD/jbrowse-components/releases/download/v${version}/jbrowse-desktop-v${version}-linux.AppImage";
|
|
sha256 = "sha256-aCmNpZX8TBZm7nbS13GBUG4a/X4kvwWRHvwWWykoLwU=";
|
|
};
|
|
|
|
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 = "Next-generation genome browser";
|
|
mainProgram = "jbrowse-desktop";
|
|
homepage = "https://jbrowse.org/jb2/";
|
|
license = licenses.asl20;
|
|
maintainers = [ ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|