Browse Source

git-lfs: extracted from goPackages

nixos-19.03
Kamil Chmielewski 6 years ago
parent
commit
ece0626593
  1. 31
      pkgs/applications/version-management/git-lfs/default.nix
  2. 2
      pkgs/top-level/all-packages.nix
  3. 21
      pkgs/top-level/go-packages.nix

31
pkgs/applications/version-management/git-lfs/default.nix

@ -0,0 +1,31 @@
# This file was generated by go2nix.
{ stdenv, lib, goPackages, fetchgit, fetchhg, fetchbzr, fetchsvn }:
with goPackages;
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}
'';
}

2
pkgs/top-level/all-packages.nix

@ -1690,7 +1690,7 @@ in
gifsicle = callPackage ../tools/graphics/gifsicle { };
git-lfs = goPackages.git-lfs.bin // { outputs = [ "bin" ]; };
git-lfs = (callPackage ../applications/version-management/git-lfs {}).bin;
gitfs = callPackage ../tools/filesystems/gitfs { };

21
pkgs/top-level/go-packages.nix

@ -971,27 +971,6 @@ let
sha256 = "124hci9whsvlcywsfz5y20kkj3nhy176a1d5s1lkvsga09yxq6wm";
};
git-lfs = buildFromGitHub {
version = "1.1.1";
rev = "v1.1.1";
owner = "github";
repo = "git-lfs";
sha256 = "1m7kii57jrsb22m5x9v8xa3s1qmipfkpk6cscgxrbrj7g0a75fnc";
# 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}
'';
};
glide = buildFromGitHub {
rev = "0.10.2";
owner = "Masterminds";

Loading…
Cancel
Save