nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 43 lines 973 B view raw
1{ 2 lib, 3 stdenv, 4 fetchzip, 5 jre_headless, 6 makeWrapper, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "riot-redis"; 11 version = "2.19.0"; 12 13 src = fetchzip { 14 url = "https://github.com/redis-developer/riot/releases/download/v${version}/riot-redis-${version}.zip"; 15 sha256 = "sha256-q2ZqFVdjg5HSH4kiwoC1W+a8VgHNxBgNeMaw5n97isc="; 16 }; 17 18 buildInputs = [ jre_headless ]; 19 nativeBuildInputs = [ makeWrapper ]; 20 21 installPhase = '' 22 runHook preInstall 23 24 mkdir -p $out/bin 25 cp bin/riot-redis $out/bin 26 cp -R lib $out 27 chmod +x $out/bin/* 28 29 wrapProgram $out/bin/riot-redis \ 30 --set JAVA_HOME "${jre_headless}" 31 32 runHook postInstall 33 ''; 34 35 meta = with lib; { 36 homepage = "https://github.com/redis-developer/riot"; 37 description = "Get data in and out of Redis"; 38 mainProgram = "riot-redis"; 39 license = licenses.asl20; 40 sourceProvenance = with sourceTypes; [ binaryBytecode ]; 41 maintainers = with maintainers; [ wesnel ]; 42 }; 43}