1{ stdenv, buildGoPackage, fetchFromGitHub }: 2 3buildGoPackage rec { 4 name = "distribution-${version}"; 5 version = "2.6.2"; 6 rev = "v${version}"; 7 8 goPackagePath = "github.com/docker/distribution"; 9 10 src = fetchFromGitHub { 11 owner = "docker"; 12 repo = "distribution"; 13 inherit rev; 14 sha256 = "0nj4xd72mik4pj8g065cqb0yjmgpj5ppsqf2k5ibz9f68c39c00b"; 15 }; 16 17 meta = with stdenv.lib; { 18 description = "The Docker toolset to pack, ship, store, and deliver content"; 19 license = licenses.asl20; 20 maintainers = [ maintainers.globin ]; 21 platforms = platforms.unix; 22 }; 23}