{ stdenv, buildGoPackage, fetchFromGitHub }: buildGoPackage rec { name = "minio-${version}"; version = "2018-03-19T19-22-06Z"; src = fetchFromGitHub { owner = "minio"; repo = "minio"; rev = "RELEASE.${version}"; sha256 = "0cqvam7i8caqlb0jdn89s1k18gfy4yndsszj7d81qg2sns0p5zgm"; }; goPackagePath = "github.com/minio/minio"; buildFlagsArray = [''-ldflags= -X github.com/minio/minio/cmd.Version=${version} '']; meta = with stdenv.lib; { homepage = https://www.minio.io/; description = "An S3-compatible object storage server"; maintainers = with maintainers; [ eelco bachp ]; platforms = platforms.unix; license = licenses.asl20; }; }