-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
another-redis-desktop-manager: init at 1.7.1
- Loading branch information
Showing
1 changed file
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
lib, | ||
stdenv, | ||
fetchurl, | ||
appimageTools, | ||
libxshmfence, | ||
}: | ||
let | ||
pname = "another-redis-desktop-manager"; | ||
version = "1.7.1"; | ||
src = | ||
fetchurl | ||
{ | ||
x86_64-linux = { | ||
url = "https://github.com/qishibo/AnotherRedisDesktopManager/releases/download/v${version}/Another-Redis-Desktop-Manager-linux-${version}-x86_64.AppImage"; | ||
hash = "sha256-XuS4jsbhUproYUE2tncT43R6ErYB9WTg6d7s16OOxFQ="; | ||
}; | ||
aarch64-linux = { | ||
url = "https://github.com/qishibo/AnotherRedisDesktopManager/releases/download/v${version}/Another-Redis-Desktop-Manager-linux-${version}-arm64.AppImage"; | ||
hash = "sha256-0WXWl0UAQBqJlvt2MNpNHuqmEAlIlvY0FfHXu4LKkcY="; | ||
}; | ||
} | ||
.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.system}"); | ||
meta = { | ||
description = "Faster, better and more stable redis desktop manager"; | ||
longDescription = '' | ||
Faster, better, more stable Redis Desktop (GUI) management client, compatible with Windows, Mac, Linux, superior performance, easy to load massive key values. | ||
Supports Sentinel, clustering, ssh channels, ssl authentication, stream, subscribe, tree view, command line, and dark mode; A variety of formatting methods, and even the ability to customize formatting scripts, | ||
''; | ||
homepage = "https://github.com/qishibo/AnotherRedisDesktopManager"; | ||
changelog = "https://github.com/qishibo/AnotherRedisDesktopManager?tab=readme-ov-file#feature-log"; | ||
license = lib.licenses.mit; | ||
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; | ||
maintainers = with lib.maintainers; [ | ||
joyanhui | ||
]; | ||
platforms = lib.platforms.linux; | ||
mainProgram = "another-redis-desktop-manager"; | ||
}; | ||
appimageContents = appimageTools.extract { inherit pname version src; }; | ||
in | ||
appimageTools.wrapType2 { | ||
inherit | ||
pname | ||
version | ||
src | ||
meta | ||
; | ||
extraPkgs = pkgs: [ | ||
libxshmfence | ||
]; | ||
extraInstallCommands = '' | ||
mkdir -p $out/share/another-redis-desktop-manager | ||
cp -a ${appimageContents}/{locales,resources} $out/share/another-redis-desktop-manager | ||
cp -a ${appimageContents}/usr/share/icons $out/share/ | ||
install -Dm 444 ${appimageContents}/another-redis-desktop-manager.desktop -t $out/share/applications | ||
substituteInPlace $out/share/applications/another-redis-desktop-manager.desktop \ | ||
--replace-fail 'Exec=AppRun --no-sandbox %U' 'Exec=another-redis-desktop-manager' | ||
''; | ||
} |