2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2021-02-05 17:12:51 +00:00
|
|
|
, autoreconfHook, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, fuse, curl, expat }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "s3backer";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "1.6.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-DOf+kpflDd2U1nXDLKYts/yf121CrBFIBI47OQa5XBs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = version;
|
|
|
|
repo = "s3backer";
|
|
|
|
owner = "archiecobbs";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ fuse curl expat ];
|
|
|
|
|
2021-04-22 02:08:21 +00:00
|
|
|
# AC_CHECK_DECLS doesn't work with clang
|
|
|
|
postPatch = lib.optionalString stdenv.cc.isClang ''
|
|
|
|
substituteInPlace configure.ac --replace \
|
|
|
|
'AC_CHECK_DECLS(fdatasync)' ""
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
autoreconfPhase = ''
|
|
|
|
patchShebangs ./autogen.sh
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/archiecobbs/s3backer";
|
|
|
|
description = "FUSE-based single file backing store via Amazon S3";
|
|
|
|
license = licenses.gpl2Plus;
|
2021-04-22 02:08:21 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|