2022-06-01 23:41:50 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, curl, libxml2 }:
|
2015-04-21 21:49:16 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-06-22 13:21:29 +00:00
|
|
|
pname = "libs3";
|
2022-06-01 23:41:50 +00:00
|
|
|
version = "unstable-2019-04-10";
|
2015-04-21 21:49:16 +00:00
|
|
|
|
2015-04-28 20:41:40 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bji";
|
|
|
|
repo = "libs3";
|
2022-06-01 23:41:50 +00:00
|
|
|
rev = "287e4bee6fd430ffb52604049de80a27a77ff6b4";
|
|
|
|
hash = "sha256-xgiY8oJlRMiXB1fw5dhNidfaq18YVwaJ8aErKU11O6U=";
|
2015-04-21 21:49:16 +00:00
|
|
|
};
|
|
|
|
|
2022-06-01 23:41:50 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch { # Fix compilation with openssl 3.0
|
|
|
|
url = "https://github.com/bji/libs3/pull/112/commits/3c3a1cf915e62b730db854d8007ba835cb38677c.patch";
|
|
|
|
hash = "sha256-+rWRh8dOznHlamc/T9qbgN0E2Rww3Hn94UeErxNDccs=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2015-04-21 21:49:16 +00:00
|
|
|
buildInputs = [ curl libxml2 ];
|
|
|
|
|
2022-06-01 23:41:50 +00:00
|
|
|
makeFlags = [ "DESTDIR=${placeholder "out"}" ];
|
2015-04-21 21:49:16 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/bji/libs3";
|
2015-05-21 13:41:06 +00:00
|
|
|
description = "A library for interfacing with amazon s3";
|
2018-12-27 17:34:29 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
2015-09-17 22:41:23 +00:00
|
|
|
platforms = platforms.linux;
|
2015-04-21 21:49:16 +00:00
|
|
|
};
|
|
|
|
}
|