summary refs log tree commit diff
path: root/pkgs/applications/version-management/git-lfs/default.nix
blob: 089997342c0e50e74f2609f36765468b286d02b2 (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
{ stdenv, lib, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }:

buildGoPackage rec {
  name = "git-lfs-${version}";
  version = "1.2.0";
  rev = "v${version}";
  
  goPackagePath = "github.com/github/git-lfs";

  src = fetchgit {
    inherit rev;
    url = "https://github.com/github/git-lfs";
    sha256 = "0z8giavcvfpzmhnxxsqvsgabjfq5gpka8jy4qvadf60yibxds9fp";
  };

  # Tests fail with 'lfstest-gitserver.go:46: main redeclared in this block'
  excludedPackages = [ "test" ];

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

  postInstall = ''
    rm -v $bin/bin/{man,script}
  '';
}