rdkafka: use finalAttrs pattern, ensure downloaded source is from a tag

This commit is contained in:
Julius Michaelis 2024-10-20 13:01:14 +09:00
parent 22be972cb5
commit 0660912af8

View File

@ -1,13 +1,13 @@
{ lib, stdenv, fetchFromGitHub, zlib, zstd, pkg-config, python3, openssl, which, curl }:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "rdkafka";
version = "2.5.3";
src = fetchFromGitHub {
owner = "confluentinc";
repo = "librdkafka";
rev = "v${version}";
rev = "refs/tags/v${finalAttrs.version}";
sha256 = "sha256-2AURPvhpgdIm034KEMm7Tmf8Zx/XER76aT6SiINs6wg=";
};
@ -30,4 +30,4 @@ stdenv.mkDerivation rec {
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ commandodev ];
};
}
})