3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/filesystems/s3backer/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
903 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub
, autoreconfHook, pkg-config
2016-05-24 21:29:24 +01:00
, fuse, curl, expat }:
2017-02-02 03:30:01 +00:00
stdenv.mkDerivation rec {
pname = "s3backer";
2021-10-29 04:16:27 +01:00
version = "1.6.3";
2017-02-02 03:30:01 +00:00
2016-05-24 21:29:24 +01:00
src = fetchFromGitHub {
2021-10-29 04:16:27 +01:00
sha256 = "sha256-DOf+kpflDd2U1nXDLKYts/yf121CrBFIBI47OQa5XBs=";
2016-05-24 21:29:24 +01:00
rev = version;
repo = "s3backer";
owner = "archiecobbs";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
2016-05-24 21:29:24 +01:00
buildInputs = [ fuse curl expat ];
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)' ""
'';
2016-05-24 21:29:24 +01:00
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";
2016-05-24 21:29:24 +01:00
license = licenses.gpl2Plus;
2021-03-25 16:39:37 +00:00
platforms = platforms.unix;
};
}