mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 16:15:30 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
33 lines
715 B
Nix
33 lines
715 B
Nix
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "git-lfs";
|
|
version = "2.7.2";
|
|
|
|
goPackagePath = "github.com/git-lfs/git-lfs";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${version}";
|
|
owner = "git-lfs";
|
|
repo = "git-lfs";
|
|
sha256 = "1nf40rbdz901vsahg5cm09pznpina6wimmxl0lmh8pn0mi51yzvc";
|
|
};
|
|
|
|
preBuild = ''
|
|
pushd go/src/github.com/git-lfs/git-lfs
|
|
go generate ./commands
|
|
popd
|
|
'';
|
|
|
|
postInstall = ''
|
|
rm -v $bin/bin/{man,script,cmd}
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Git extension for versioning large files";
|
|
homepage = https://git-lfs.github.com/;
|
|
license = [ licenses.mit ];
|
|
maintainers = [ maintainers.twey ];
|
|
};
|
|
}
|