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

34 lines
777 B
Nix
Raw Normal View History

2017-04-18 19:53:51 +02:00
{ stdenv, buildGoPackage, fetchFromGitHub }:
2016-06-03 13:37:23 +02:00
buildGoPackage rec {
name = "git-lfs-${version}";
2017-10-10 23:47:24 +02:00
version = "2.3.3";
rev = "c9d3beb098254f067680a5ccbb8742387f81d82e";
2017-04-18 19:53:51 +02:00
goPackagePath = "github.com/git-lfs/git-lfs";
2016-06-03 13:37:23 +02:00
src = fetchFromGitHub {
2016-06-03 13:37:23 +02:00
inherit rev;
2017-04-18 19:53:51 +02:00
owner = "git-lfs";
repo = "git-lfs";
2017-10-10 23:47:24 +02:00
sha256 = "1hzpzbm46f45vh5liijpyppfcmr7wycnsa09vmilq0wm341ivnsf";
2016-06-03 13:37:23 +02:00
};
preBuild = ''
2017-04-18 19:53:51 +02:00
pushd go/src/github.com/git-lfs/git-lfs
go generate ./commands
2016-06-03 13:37:23 +02:00
popd
'';
postInstall = ''
2017-04-18 19:53:51 +02:00
rm -v $bin/bin/{man,script,genmakefile}
2016-06-03 13:37:23 +02:00
'';
2017-04-18 19:53:51 +02:00
meta = with stdenv.lib; {
description = "Git extension for versioning large files";
homepage = https://git-lfs.github.com/;
license = [ licenses.mit ];
maintainers = [ maintainers.twey ];
};
2016-06-03 13:37:23 +02:00
}