nixpkgs/pkgs/by-name/jb/jbrowse/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, fetchurl, appimageTools }:
2023-05-12 18:24:26 +00:00
let
pname = "jbrowse";
2024-10-29 06:25:09 +00:00
version = "2.16.0";
2023-05-12 18:24:26 +00:00
src = fetchurl {
url = "https://github.com/GMOD/jbrowse-components/releases/download/v${version}/jbrowse-desktop-v${version}-linux.AppImage";
2024-10-29 06:25:09 +00:00
sha256 = "sha256-Nf+Dp1XVXgY1+iih7/cvzxnfCKdgHz5kpefdMucrlIA=";
2023-05-12 18:24:26 +00:00
};
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
2023-05-12 18:24:26 +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; {
description = "Next-generation genome browser";
mainProgram = "jbrowse-desktop";
2023-05-12 18:24:26 +00:00
homepage = "https://jbrowse.org/jb2/";
license = licenses.asl20;
maintainers = with maintainers; [ benwbooth ];
platforms = [ "x86_64-linux" ];
};
}