2021-06-28 23:13:55 +00:00
|
|
|
{ appimageTools, lib, fetchurl }:
|
|
|
|
let
|
|
|
|
pname = "neo4j-desktop";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "1.5.9";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-05-15 15:35:15 +00:00
|
|
|
url = "https://s3-eu-west-1.amazonaws.com/dist.neo4j.org/${pname}/linux-offline/${pname}-${version}-x86_64.AppImage";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-04I1p5wtndIflHqS5qQVf3s8F9ORJ+oy4wi/5PQbnWk=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
appimageContents = appimageTools.extract { inherit pname version src; };
|
2021-06-28 23:13:55 +00:00
|
|
|
in appimageTools.wrapType2 {
|
2024-05-15 15:35:15 +00:00
|
|
|
inherit pname version src;
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
extraPkgs = pkgs: [ pkgs.libsecret ];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "GUI front-end for Neo4j";
|
2021-06-28 23:13:55 +00:00
|
|
|
homepage = "https://neo4j.com/";
|
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = [ maintainers.bobvanderlinden ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "neo4j-desktop";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
}
|