default.nix (860B)
1 { 2 lib, 3 stdenv, 4 buildGoModule, 5 fetchFromGitHub, 6 }: 7 8 buildGoModule rec { 9 pname = "finch"; 10 version = "1.4.1"; 11 12 src = fetchFromGitHub { 13 owner = "runfinch"; 14 repo = "finch"; 15 rev = "v${version}"; 16 hash = "sha256-u8/i81jB2HGXeft1X+AQ0wblo2bHa412EQXGmgN5afQ="; 17 fetchSubmodules = true; 18 }; 19 20 vendorHash = "sha256-QAB+TVi7A34ANpEaVSGQF5qm7ORhcbVvBYK8SixCzTk="; 21 22 subPackages = [ "cmd/finch" ]; 23 24 ldflags = [ "-X github.com/runfinch/finch/pkg/version.Version=${version}" ]; 25 26 preCheck = '' 27 export HOME=$TMPDIR 28 ''; 29 30 checkFlags = [ "-skip=TestVersionAction_run" ]; 31 32 meta = { 33 description = "Client for container development"; 34 homepage = "https://github.com/runfinch/finch"; 35 license = lib.licenses.asl20; 36 maintainers = [ lib.maintainers.sikmir ]; 37 platforms = lib.platforms.darwin; 38 skip.ci = true; 39 }; 40 }