Merge pull request #74743 from Ma27/bump-documize
documize-community: 3.5.0 -> 3.5.1
This commit is contained in:
commit
bfee3a4989
@ -1,37 +1,26 @@
|
||||
{ lib, buildGoPackage, fetchFromGitHub, go-bindata, go-bindata-assetfs }:
|
||||
{ lib, buildGoModule, fetchFromGitHub, go-bindata, go-bindata-assetfs }:
|
||||
|
||||
buildGoPackage rec {
|
||||
buildGoModule rec {
|
||||
pname = "documize-community";
|
||||
version = "3.5.0";
|
||||
version = "3.5.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "documize";
|
||||
repo = "community";
|
||||
rev = "v${version}";
|
||||
sha256 = "1y38lgkxhyrga44wj216vl08fzyv8wbk02a85flnihrb4b1092x0";
|
||||
sha256 = "1dnb5b24x50c258fk47i7vngv28gai0mywns6nvgm3q59zyzphbj";
|
||||
};
|
||||
|
||||
goPackagePath = "github.com/documize/community";
|
||||
modSha256 = "1z0v7n8klaxcqv7mvzf3jzgrp78zb4yiibx899ppk6i5qnj4xiv0";
|
||||
|
||||
buildInputs = [ go-bindata-assetfs go-bindata ];
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
subPackages = [ "edition/community.go" ];
|
||||
|
||||
pushd go/src/github.com/documize/community
|
||||
GO111MODULE=off go build -gcflags="all=-trimpath=$GOPATH" -o bin/documize ./edition/community.go
|
||||
popd
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $bin/bin
|
||||
cp go/src/github.com/documize/community/bin/documize $bin/bin
|
||||
|
||||
runHook postInstall
|
||||
postInstall = ''
|
||||
# `buildGoModule` calls `go install` (without `go build` first), so
|
||||
# `-o bin/documize` doesn't work.
|
||||
mv $out/bin/community $out/bin/documize
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user