From d1ac06b0096a548f32808a70ba91d7c1c9941029 Mon Sep 17 00:00:00 2001 From: Bob van der Linden Date: Fri, 18 Jun 2021 15:22:49 +0200 Subject: [PATCH] neo4j-desktop: init at 1.4.5 (#127341) * neo4j-desktop: init at 1.4.5 * Update pkgs/applications/misc/neo4j-desktop/default.nix Co-authored-by: Sandro --- .../misc/neo4j-desktop/default.nix | 32 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/applications/misc/neo4j-desktop/default.nix diff --git a/pkgs/applications/misc/neo4j-desktop/default.nix b/pkgs/applications/misc/neo4j-desktop/default.nix new file mode 100644 index 000000000000..045f0db42fe8 --- /dev/null +++ b/pkgs/applications/misc/neo4j-desktop/default.nix @@ -0,0 +1,32 @@ +{ appimageTools, lib, fetchurl }: +let + pname = "neo4j-desktop"; + version = "1.4.5"; + name = "${pname}-${version}"; + + src = fetchurl { + url = "https://s3-eu-west-1.amazonaws.com/dist.neo4j.org/${pname}/linux-offline/${name}-x86_64.AppImage"; + sha256 = "sha256-TCkjYhvGhgqgrDEMvC4Ww/sDxRhHC70YgfDlCIFitMo"; + }; + + appimageContents = appimageTools.extract { inherit src; name = pname; }; +in appimageTools.wrapType2 { + inherit name src; + + extraPkgs = pkgs: with pkgs; [ libsecret ]; + + 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; { + description = "A GUI front-end for Neo4j"; + homepage = "https://neo4j.com/"; + license = licenses.unfree; + maintainers = [ maintainers.bobvanderlinden ]; + platforms = [ "x86_64-linux" ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 49c9c3fa12f2..fdc6db56bff9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19722,6 +19722,8 @@ in neo4j = callPackage ../servers/nosql/neo4j { }; + neo4j-desktop = callPackage ../applications/misc/neo4j-desktop { }; + check-esxi-hardware = callPackage ../servers/monitoring/plugins/esxi.nix {}; net-snmp = callPackage ../servers/monitoring/net-snmp { };