package.nix (951B)
1 { 2 lib, 3 stdenv, 4 buildGoModule, 5 fetchFromGitHub, 6 writableTmpDirAsHomeHook, 7 }: 8 9 buildGoModule (finalAttrs: { 10 pname = "finch"; 11 version = "1.12.0"; 12 13 src = fetchFromGitHub { 14 owner = "runfinch"; 15 repo = "finch"; 16 tag = "v${finalAttrs.version}"; 17 hash = "sha256-Zkss73FHqwbOPDLJL1nLPw+GTkFt82lTZskqHbWxxaM="; 18 fetchSubmodules = true; 19 }; 20 21 vendorHash = "sha256-tTFH5f93o3rZdsDAnoYOZ6daMREI+RsxEKIG2zc1MSE="; 22 23 subPackages = [ "cmd/finch" ]; 24 25 ldflags = [ 26 "-s" 27 "-w" 28 "-X github.com/runfinch/finch/pkg/version.Version=${finalAttrs.version}" 29 ]; 30 31 nativeCheckInputs = [ writableTmpDirAsHomeHook ]; 32 33 checkFlags = [ "-skip=TestVersionAction_run" ]; 34 35 meta = { 36 description = "Client for container development"; 37 homepage = "https://github.com/runfinch/finch"; 38 license = lib.licenses.asl20; 39 maintainers = [ lib.maintainers.sikmir ]; 40 platforms = lib.platforms.darwin; 41 skip.ci = true; 42 }; 43 })
