Merge pull request #187414 from wesnel/riot-redis/init

This commit is contained in:
Sandro 2022-08-21 23:15:43 +02:00 committed by GitHub
commit 9c10abfc26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 52 additions and 0 deletions

View file

@ -13970,6 +13970,15 @@
github = "wentasah";
githubId = 140542;
};
wesnel = {
name = "Wesley Nelson";
email = "wgn@wesnel.dev";
github = "wesnel";
githubId = 43357387;
keys = [{
fingerprint = "F844 80B2 0CA9 D6CC C7F5 2479 A776 D2AD 099E 8BC0";
}];
};
wheelsandmetal = {
email = "jakob@schmutz.co.uk";
github = "wheelsandmetal";

View file

@ -0,0 +1,41 @@
{ lib
, stdenv
, fetchzip
, jre_headless
, makeWrapper
}:
stdenv.mkDerivation rec {
pname = "riot-redis";
version = "2.17.0";
src = fetchzip {
url = "https://github.com/redis-developer/riot/releases/download/v${version}/riot-redis-${version}.zip";
sha256 = "sha256-Blhjss0ypHzdd3XTRzzHnIPg8+m1ke7a+8VuBB6oA/0=";
};
buildInputs = [ jre_headless ];
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp bin/riot-redis $out/bin
cp -R lib $out
chmod +x $out/bin/*
wrapProgram $out/bin/riot-redis \
--set JAVA_HOME "${jre_headless}"
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/redis-developer/riot";
description = "Get data in and out of Redis";
license = licenses.asl20;
sourceProvenance = with sourceTypes; [ binaryBytecode ];
maintainers = with maintainers; [ wesnel ];
};
}

View file

@ -514,6 +514,8 @@ with pkgs;
resolve-march-native = callPackage ../development/tools/resolve-march-native { };
riot-redis = callPackage ../development/tools/riot-redis { };
ptouch-print = callPackage ../misc/ptouch-print { };
demoit = callPackage ../servers/demoit { };