Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 37 lines 1.0 kB view raw
1{ lib, stdenv, fetchFromGitHub 2, autoreconfHook, pkg-config 3, fuse, curl, expat }: 4 5stdenv.mkDerivation rec { 6 pname = "s3backer"; 7 version = "2.0.2"; 8 9 src = fetchFromGitHub { 10 sha256 = "sha256-xmOtL4v3UxdjrL09sSfXyF5FoMrNerSqG9nvEuwMvNM="; 11 rev = version; 12 repo = "s3backer"; 13 owner = "archiecobbs"; 14 }; 15 16 patches = [ 17 # from upstream, after latest release 18 # https://github.com/archiecobbs/s3backer/commit/303a669356fa7cd6bc95ac7076ce51b1cab3970a 19 ./fix-darwin-builds.patch 20 ]; 21 22 nativeBuildInputs = [ autoreconfHook pkg-config ]; 23 buildInputs = [ fuse curl expat ]; 24 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)' "" 29 ''; 30 31 meta = with lib; { 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 }; 37}