Skip to content

Commit

Permalink
nosql-booster: init at 8.1.9 (NixOS#354798)
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst authored Dec 19, 2024
2 parents e23572c + 6d18d5c commit 3c0f3b2
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions pkgs/by-name/no/nosql-booster/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
lib,
platforms,
appimageTools,
fetchurl,
}:
let
pname = "nosql-booster";
version = "8.1.9";
src = fetchurl {
url = "https://s3.nosqlbooster.com/download/releasesv8/nosqlbooster4mongo-${version}.AppImage";
sha256 = "sha256-ZJdCHOodJel7Apb//s96vrf1Ruml/NLUMQ9eFFR9tfU=";
};
meta = {
homepage = "https://nosqlbooster.com/";
description = "GUI tool for MongoDB Server";
changelog = "https://nosqlbooster.com/blog/announcing-nosqlbooster-81/#version-819";
maintainers = with lib.maintainers; [ guillaumematheron ];
license = lib.licenses.unfree;
platforms = [ "x86_64-linux" ];
mainProgram = "nosql-booster";
};

appimageContents = appimageTools.extract { inherit pname version src; };
in
appimageTools.wrapType2 {
inherit
pname
version
src
meta
;

extraInstallCommands = ''
install -m 444 -D ${appimageContents}/nosqlbooster4mongo.desktop $out/share/applications/nosqlbooster4mongo.desktop
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/512x512/apps/nosqlbooster4mongo.png \
$out/share/icons/hicolor/512x512/apps/nosqlbooster4mongo.png
substituteInPlace $out/share/applications/nosqlbooster4mongo.desktop \
--replace-fail 'Exec=AppRun' 'Exec=${meta.mainProgram}'
'';
}

0 comments on commit 3c0f3b2

Please sign in to comment.