2021-06-28 23:13:55 +00:00
|
|
|
{ appimageTools, lib, fetchurl }:
|
|
|
|
let
|
|
|
|
pname = "neo4j-desktop";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "1.5.8";
|
2021-06-28 23:13:55 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://s3-eu-west-1.amazonaws.com/dist.neo4j.org/${pname}/linux-offline/${name}-x86_64.AppImage";
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-RqzR4TuvDasbkj/wKvOOS7r46sXDxvw3B5ydFGZeHX8=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
appimageContents = appimageTools.extract { inherit name src; };
|
2021-06-28 23:13:55 +00:00
|
|
|
in appimageTools.wrapType2 {
|
|
|
|
inherit name src;
|
|
|
|
|
|
|
|
extraPkgs = pkgs: with pkgs; [ libsecret ];
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
2021-07-14 22:03:04 +00:00
|
|
|
mv $out/bin/${name} $out/bin/${pname}
|
2021-06-28 23:13:55 +00:00
|
|
|
install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
|
|
|
|
substituteInPlace $out/share/applications/${pname}.desktop \
|
|
|
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
|
|
|
cp -r ${appimageContents}/usr/share/icons $out/share
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A GUI front-end for Neo4j";
|
|
|
|
homepage = "https://neo4j.com/";
|
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = [ maintainers.bobvanderlinden ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|