Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 30 lines 739 B view raw
1{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, curl, openssl, libxml2, fuse }: 2 3stdenv.mkDerivation rec { 4 pname = "s3fs-fuse"; 5 version = "1.92"; 6 7 src = fetchFromGitHub { 8 owner = "s3fs-fuse"; 9 repo = "s3fs-fuse"; 10 rev = "v${version}"; 11 sha256 = "sha256-CS6lxDIBwhcnEG6XehbyAI4vb72PmwQ7p+gC1bbJEzM="; 12 }; 13 14 buildInputs = [ curl openssl libxml2 fuse ]; 15 nativeBuildInputs = [ autoreconfHook pkg-config ]; 16 17 configureFlags = [ 18 "--with-openssl" 19 ]; 20 21 postInstall = '' 22 ln -s $out/bin/s3fs $out/bin/mount.s3fs 23 ''; 24 25 meta = with lib; { 26 description = "Mount an S3 bucket as filesystem through FUSE"; 27 license = licenses.gpl2; 28 platforms = platforms.linux ++ platforms.darwin; 29 }; 30}