depot/third_party/nixpkgs/pkgs/tools/filesystems/s3backer/default.nix

37 lines
903 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub
, autoreconfHook, pkg-config
, fuse, curl, expat }:
stdenv.mkDerivation rec {
pname = "s3backer";
version = "1.6.3";
src = fetchFromGitHub {
sha256 = "sha256-DOf+kpflDd2U1nXDLKYts/yf121CrBFIBI47OQa5XBs=";
rev = version;
repo = "s3backer";
owner = "archiecobbs";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ fuse curl expat ];
# AC_CHECK_DECLS doesn't work with clang
postPatch = lib.optionalString stdenv.cc.isClang ''
substituteInPlace configure.ac --replace \
'AC_CHECK_DECLS(fdatasync)' ""
'';
autoreconfPhase = ''
patchShebangs ./autogen.sh
./autogen.sh
'';
meta = with lib; {
homepage = "https://github.com/archiecobbs/s3backer";
description = "FUSE-based single file backing store via Amazon S3";
license = licenses.gpl2Plus;
platforms = platforms.unix;
};
}