Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / libs3 / default.nix
blobb9f9278fad8cf1211728ec7bd13d1d41b4150649
1 { lib, stdenv, fetchFromGitHub, fetchpatch, curl, libxml2 }:
3 stdenv.mkDerivation {
4   pname = "libs3";
5   version = "unstable-2019-04-10";
7   src = fetchFromGitHub {
8     owner = "bji";
9     repo = "libs3";
10     rev = "287e4bee6fd430ffb52604049de80a27a77ff6b4";
11     hash = "sha256-xgiY8oJlRMiXB1fw5dhNidfaq18YVwaJ8aErKU11O6U=";
12   };
14   patches = [
15     (fetchpatch { # Fix compilation with openssl 3.0
16       url = "https://github.com/bji/libs3/pull/112/commits/3c3a1cf915e62b730db854d8007ba835cb38677c.patch";
17       hash = "sha256-+rWRh8dOznHlamc/T9qbgN0E2Rww3Hn94UeErxNDccs=";
18     })
19   ];
21   buildInputs = [ curl libxml2 ];
23   makeFlags = [ "DESTDIR=${placeholder "out"}" ];
25   meta = with lib; {
26     homepage = "https://github.com/bji/libs3";
27     description = "A library for interfacing with amazon s3";
28     license = licenses.lgpl3Plus;
29     platforms = platforms.linux;
30   };