Skip to content

Commit

Permalink
Merge pull request #313227 from emilylange/forgejo-fixup
Browse files Browse the repository at this point in the history
forgejo: remove no longer needed preBuild phase (noop)
  • Loading branch information
NickCao committed May 21, 2024
2 parents 348be3c + 215eb32 commit 6cde993
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pkgs/by-name/fo/forgejo/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ buildGoModule rec {
export ldflags+=" -X main.ForgejoVersion=$(GITEA_VERSION=${version} make show-version-api)"
'';

preBuild = ''
go run build/merge-forgejo-locales.go
'';

postInstall = ''
mkdir $data
cp -R ./{templates,options} ${frontend}/public $data
Expand All @@ -93,10 +89,9 @@ buildGoModule rec {
--prefix PATH : ${lib.makeBinPath [ bash git gzip openssh ]}
'';

# $data is not available in goModules.drv and preBuild isn't needed
# $data is not available in goModules.drv
overrideModAttrs = (_: {
postPatch = null;
preBuild = null;
});

passthru = {
Expand Down

0 comments on commit 6cde993

Please sign in to comment.