mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 13:13:33 +00:00
34 lines
1.0 KiB
Nix
34 lines
1.0 KiB
Nix
{ appimageTools, lib, fetchurl }:
|
|
let
|
|
pname = "neo4j-desktop";
|
|
version = "1.4.12";
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "https://s3-eu-west-1.amazonaws.com/dist.neo4j.org/${pname}/linux-offline/${name}-x86_64.AppImage";
|
|
hash = "sha256-CfdXus9Zj6Tx6wAXpV2tRdqvJqowgE+NIL04v3fwtJE=";
|
|
};
|
|
|
|
appimageContents = appimageTools.extract { inherit name src; };
|
|
in appimageTools.wrapType2 {
|
|
inherit name src;
|
|
|
|
extraPkgs = pkgs: with pkgs; [ libsecret ];
|
|
|
|
extraInstallCommands = ''
|
|
mv $out/bin/${name} $out/bin/${pname}
|
|
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" ];
|
|
};
|
|
}
|