From 7ec65f335437c5ad70c885cea0d907688e472f2f Mon Sep 17 00:00:00 2001 From: Will Jones Date: Fri, 14 Jan 2022 13:50:31 +0000 Subject: [PATCH] git-lfs: Build subcommands The current version of `git-lfs` doesn't work very well due to a missing code-generation step in its build process. This commit fixes its derivation so that this step is run. --- pkgs/applications/version-management/git-lfs/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/version-management/git-lfs/default.nix b/pkgs/applications/version-management/git-lfs/default.nix index c5422d9a6c6c..78a393eb5e44 100644 --- a/pkgs/applications/version-management/git-lfs/default.nix +++ b/pkgs/applications/version-management/git-lfs/default.nix @@ -19,6 +19,12 @@ buildGoPackage rec { subPackages = [ "." ]; + preBuild = '' + pushd go/src/github.com/git-lfs/git-lfs + go generate ./commands + popd + ''; + postBuild = '' make -C go/src/${goPackagePath} man '';