Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 30 lines 640 B view raw
1{ lib 2, buildGoModule 3, fetchFromGitHub 4}: 5 6buildGoModule rec { 7 pname = "dapper"; 8 version = "0.6.0"; 9 10 src = fetchFromGitHub { 11 owner = "rancher"; 12 repo = "dapper"; 13 rev = "v${version}"; 14 sha256 = "sha256-V+lHnOmIWjI1qmoJ7+pp+cGmJAtSeY+r2I9zykswQzM="; 15 }; 16 vendorHash = null; 17 18 patchPhase = '' 19 substituteInPlace main.go --replace 0.0.0 ${version} 20 ''; 21 22 meta = with lib; { 23 description = "Docker build wrapper"; 24 mainProgram = "dapper"; 25 homepage = "https://github.com/rancher/dapper"; 26 license = licenses.asl20; 27 platforms = platforms.linux; 28 maintainers = with maintainers; [ kuznero ]; 29 }; 30}