summary refs log tree commit diff
path: root/pkgs/applications/version-management/git-lfs/1.nix
blob: f72f51907500b8bd8c5ba0528a6393822c1b8cb9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  pname = "git-lfs";
  version = "1.5.6";
  rev = "0d02fb7d9a1c599bbf8c55e146e2845a908e04e0";

  goPackagePath = "github.com/git-lfs/git-lfs";

  src = fetchFromGitHub {
    inherit rev;
    owner = "git-lfs";
    repo = "git-lfs";
    sha256 = "0wddry1lqjccf4522fvhx6grx8h57xsz17lkaf5aybnrgw677w3d";
  };

  subPackages = [ "." ];

  preBuild = ''
    pushd go/src/github.com/git-lfs/git-lfs
      go generate ./commands
    popd
  '';

  meta = with lib; {
    description = "Git extension for versioning large files";
    homepage    = "https://git-lfs.github.com/";
    license     = [ licenses.mit ];
    maintainers = [ maintainers.twey ];
  };
}