1 { lib, stdenv, fetchFromGitHub
2 , autoreconfHook, pkg-config
5 stdenv.mkDerivation rec {
9 src = fetchFromGitHub {
10 sha256 = "sha256-BttU5wdnifhsFPdNX3yb/l12biskzED72v0Qfxi7FWU=";
13 owner = "archiecobbs";
17 # from upstream, after latest release
18 # https://github.com/archiecobbs/s3backer/commit/303a669356fa7cd6bc95ac7076ce51b1cab3970a
19 ./fix-darwin-builds.patch
22 nativeBuildInputs = [ autoreconfHook pkg-config ];
23 buildInputs = [ fuse curl expat ];
25 # AC_CHECK_DECLS doesn't work with clang
26 postPatch = lib.optionalString stdenv.cc.isClang ''
27 substituteInPlace configure.ac --replace \
28 'AC_CHECK_DECLS(fdatasync)' ""
32 homepage = "https://github.com/archiecobbs/s3backer";
33 description = "FUSE-based single file backing store via Amazon S3";
34 license = licenses.gpl2Plus;
35 platforms = platforms.unix;
36 mainProgram = "s3backer";