2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2021-01-17 09:17:16 +00:00
|
|
|
, autoreconfHook, pkg-config
|
2016-05-24 20:29:24 +00:00
|
|
|
, fuse, curl, expat }:
|
2017-02-02 03:30:01 +00:00
|
|
|
|
2009-12-04 15:51:02 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "s3backer";
|
2024-06-21 05:57:46 +00:00
|
|
|
version = "2.1.3";
|
2017-02-02 03:30:01 +00:00
|
|
|
|
2016-05-24 20:29:24 +00:00
|
|
|
src = fetchFromGitHub {
|
2024-06-21 05:57:46 +00:00
|
|
|
sha256 = "sha256-BttU5wdnifhsFPdNX3yb/l12biskzED72v0Qfxi7FWU=";
|
2016-05-24 20:29:24 +00:00
|
|
|
rev = version;
|
|
|
|
repo = "s3backer";
|
|
|
|
owner = "archiecobbs";
|
2009-12-04 15:51:02 +00:00
|
|
|
};
|
|
|
|
|
2023-02-12 06:30:31 +00:00
|
|
|
patches = [
|
|
|
|
# from upstream, after latest release
|
|
|
|
# https://github.com/archiecobbs/s3backer/commit/303a669356fa7cd6bc95ac7076ce51b1cab3970a
|
|
|
|
./fix-darwin-builds.patch
|
|
|
|
];
|
|
|
|
|
2021-01-17 09:17:16 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2016-05-24 20:29:24 +00:00
|
|
|
buildInputs = [ fuse curl expat ];
|
2009-12-04 15:51:02 +00:00
|
|
|
|
2021-03-25 16:39:37 +00:00
|
|
|
# AC_CHECK_DECLS doesn't work with clang
|
|
|
|
postPatch = lib.optionalString stdenv.cc.isClang ''
|
|
|
|
substituteInPlace configure.ac --replace \
|
|
|
|
'AC_CHECK_DECLS(fdatasync)' ""
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/archiecobbs/s3backer";
|
2009-12-04 15:51:02 +00:00
|
|
|
description = "FUSE-based single file backing store via Amazon S3";
|
2016-05-24 20:29:24 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2021-03-25 16:39:37 +00:00
|
|
|
platforms = platforms.unix;
|
2023-11-23 21:09:35 +00:00
|
|
|
mainProgram = "s3backer";
|
2009-12-04 15:51:02 +00:00
|
|
|
};
|
|
|
|
}
|