s3gof3r: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2022-03-08 14:46:40 +01:00
parent e822bf4e6b
commit 7b4607f83f

View file

@ -1,17 +1,24 @@
{ lib, buildGoPackage, fetchgit }:
{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "s3gof3r";
version = "20151109-${lib.strings.substring 0 7 rev}";
rev = "31603a0dc94aefb822bfe2ceea75a6be6013b445";
version = "0.5.0";
goPackagePath = "github.com/rlmcpherson/s3gof3r";
src = fetchgit {
inherit rev;
url = "https://github.com/rlmcpherson/s3gof3r";
sha256 = "10banc8hnhxpsdmlkf9nc5fjkh1349bgpd9k7lggw3yih1rvmh7k";
src = fetchFromGitHub {
owner = "rlmcpherson";
repo = "s3gof3r";
rev = "v${version}";
sha256 = "sha256-88C6c4DRD/4ePTO1+1YiI8ApXWE2uUlr07dDCxGzaoE=";
};
goDeps = ./deps.nix;
meta = with lib; {
description = "Fast, concurrent, streaming access to Amazon S3, including gof3r, a CLI";
homepage = "https://pkg.go.dev/github.com/rlmcpherson/s3gof3r";
maintainers = with maintainers; [ ];
license = licenses.mit;
};
}