@@ -1,21 +1,23 @@
1−{ stdenv, fetchurl, cmake, openssl, popt, xmlto }:
1+{ stdenv, fetchFromGitHub, cmake, openssl, popt, xmlto }:
22
33stdenv.mkDerivation rec {
4− version = "0.4.1";
54 name = "rabbitmq-c-${version}";
5+ version = "0.6.0";
66
7− src = fetchurl {
8− name = "${name}.tar.gz";
9− url = "https://github.com/alanxz/rabbitmq-c/releases/download/v${version}/${name}.tar.gz";
10− sha256 = "01m4n043hzhhxky8z67zj3r4gbg3mwcqbwqr9nms9lqbfaa70x93";
7+ src = fetchFromGitHub {
8+ owner = "alanxz";
9+ repo = "rabbitmq-c";
10+ rev = "v${version}";
11+ sha256 = "00264mvwwcibd36w9a3s3cv2x7pvz88al64q2maaw1kbd9mg1ky5";
1112 };
1213
1314 buildInputs = [ cmake openssl popt xmlto ];
1415
15− meta = {
16+ meta = with stdenv.lib; {
1617 description = "RabbitMQ C AMQP client library";
1718 homepage = https://github.com/alanxz/rabbitmq-c;
18− license = with stdenv.lib.licenses; mit;
19− platforms = with stdenv.lib.platforms; linux;
19+ license = licenses.mit;
20+ platforms = platforms.linux;
21+ maintainers = with maintainers; [ wkennington ];
2022 };
2123}