1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/version-management/git-lfs/default.nix

38 lines
1 KiB
Nix
Raw Normal View History

2020-05-01 10:20:00 +01:00
{ stdenv, buildGoPackage, fetchFromGitHub, ronn, installShellFiles }:
2016-06-03 12:37:23 +01:00
2020-05-01 10:20:00 +01:00
buildGoPackage rec {
pname = "git-lfs";
version = "2.13.1";
2016-06-03 12:37:23 +01:00
src = fetchFromGitHub {
2017-10-22 13:12:19 +01:00
rev = "v${version}";
2017-04-18 18:53:51 +01:00
owner = "git-lfs";
repo = "git-lfs";
sha256 = "0n4gi7sh6d1maqwp12fsznrky9xwkk2jrmxfwa2hnk8wb2rhvlrm";
2016-06-03 12:37:23 +01:00
};
2020-05-01 10:20:00 +01:00
goPackagePath = "github.com/git-lfs/git-lfs";
nativeBuildInputs = [ ronn installShellFiles ];
buildFlagsArray = [ "-ldflags=-s -w -X ${goPackagePath}/config.Vendor=${version} -X ${goPackagePath}/config.GitCommit=${src.rev}" ];
subPackages = [ "." ];
2020-05-01 10:20:00 +01:00
postBuild = ''
make -C go/src/${goPackagePath} man
'';
postInstall = ''
2020-05-02 17:24:15 +01:00
installManPage go/src/${goPackagePath}/man/*.{1,5}
2020-05-01 10:20:00 +01:00
'';
2017-04-18 18:53:51 +01:00
meta = with stdenv.lib; {
description = "Git extension for versioning large files";
2020-04-02 07:31:32 +01:00
homepage = "https://git-lfs.github.com/";
changelog = "https://github.com/git-lfs/git-lfs/blob/v${version}/CHANGELOG.md";
2017-04-18 18:53:51 +01:00
license = [ licenses.mit ];
2020-05-01 10:20:00 +01:00
maintainers = [ maintainers.twey maintainers.marsam ];
2017-04-18 18:53:51 +01:00
};
2016-06-03 12:37:23 +01:00
}