core/pkgs/by-name/hi/hiredis/default.nix

25 lines
551 B
Nix
Raw Permalink Normal View History

2024-05-14 02:37:40 +00:00
{ lib, stdenv, fetchFromGitHub, openssl }:
stdenv.mkDerivation rec {
pname = "hiredis";
version = "1.2.0";
nativeBuildInputs = [openssl];
src = fetchFromGitHub {
owner = "redis";
repo = "hiredis";
rev = "v${version}";
sha256 = "sha256-ZxUITm3OcbERcvaNqGQU46bEfV+jN6safPalG0TVfBg=";
};
PREFIX = "\${out}";
USE_SSL = 1;
meta = with lib; {
homepage = "https://github.com/redis/hiredis";
description = "Minimalistic C client for Redis >= 1.2";
license = licenses.bsd3;
platforms = platforms.all;
};
}