1 { lib, buildGoModule, fetchFromGitHub, asciidoctor, installShellFiles, git, testers, git-lfs }:
7 src = fetchFromGitHub {
11 hash = "sha256-xSLXbAvIoY3c341qi89pTrjBZdXh/bPrweJD2O2gkjY=";
14 vendorHash = "sha256-N8HB2qwBxjzfNucftHxmX2W9srCx62pjmkCWzwiCj/I=";
16 nativeBuildInputs = [ asciidoctor installShellFiles ];
21 "-X github.com/git-lfs/git-lfs/v${lib.versions.major version}/config.Vendor=${version}"
24 subPackages = [ "." ];
27 GOARCH= go generate ./commands
34 nativeCheckInputs = [ git ];
41 installManPage man/man*/*
42 installShellCompletion --cmd git-lfs \
43 --bash <($out/bin/git-lfs completion bash) \
44 --fish <($out/bin/git-lfs completion fish) \
45 --zsh <($out/bin/git-lfs completion zsh)
48 passthru.tests.version = testers.testVersion {
53 description = "Git extension for versioning large files";
54 homepage = "https://git-lfs.github.com/";
55 changelog = "https://github.com/git-lfs/git-lfs/raw/v${version}/CHANGELOG.md";
56 license = licenses.mit;
57 maintainers = with maintainers; [ twey ];
58 mainProgram = "git-lfs";