s3fs: minor cleanups

+15 -8
+15 -8
pkgs/tools/filesystems/s3fs/default.nix
··· 1 - {stdenv, fetchurl, autoconf, automake, pkgconfig, curl, openssl, libxml2, fuse}: 1 + { stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, curl, openssl, libxml2, fuse }: 2 2 3 - stdenv.mkDerivation { 4 - name = "s3fs-fuse-1.80"; 3 + stdenv.mkDerivation rec { 4 + name = "s3fs-fuse-${version}"; 5 + version = "1.80"; 5 6 6 - src = fetchurl { 7 - url = https://github.com/s3fs-fuse/s3fs-fuse/archive/v1.80.tar.gz; 8 - sha256 = "0ddx5khlyyrxm4s8is4gqbczmrcivj11hmkk9s893r3kpp4q30yy"; 7 + src = fetchFromGitHub { 8 + owner = "s3fs-fuse"; 9 + repo = "s3fs-fuse"; 10 + rev = "v${version}"; 11 + sha256 = "0yikqpdyjibbb36rj4118lv9nxgp9f5jhydzxijzxrzw29ypvw76"; 9 12 }; 10 13 11 - preConfigure = "./autogen.sh"; 12 - buildInputs = [ autoconf automake pkgconfig curl openssl libxml2 fuse ]; 14 + buildInputs = [ curl openssl libxml2 fuse ]; 15 + nativeBuildInputs = [ autoreconfHook pkgconfig ]; 16 + 17 + configureFlags = [ 18 + "--with-openssl" 19 + ]; 13 20 14 21 postInstall = '' 15 22 ln -s $out/bin/s3fs $out/bin/mount.s3fs