forked from mirrors/nixpkgs
33 lines
1,012 B
Nix
33 lines
1,012 B
Nix
|
{ 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" ];
|
||
|
};
|
||
|
}
|