mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
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";
|
pname = "documize-community";
|
||||||
version = "3.5.0";
|
version = "3.5.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "documize";
|
owner = "documize";
|
||||||
repo = "community";
|
repo = "community";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1y38lgkxhyrga44wj216vl08fzyv8wbk02a85flnihrb4b1092x0";
|
sha256 = "1dnb5b24x50c258fk47i7vngv28gai0mywns6nvgm3q59zyzphbj";
|
||||||
};
|
};
|
||||||
|
|
||||||
goPackagePath = "github.com/documize/community";
|
modSha256 = "1z0v7n8klaxcqv7mvzf3jzgrp78zb4yiibx899ppk6i5qnj4xiv0";
|
||||||
|
|
||||||
buildInputs = [ go-bindata-assetfs go-bindata ];
|
buildInputs = [ go-bindata-assetfs go-bindata ];
|
||||||
|
|
||||||
buildPhase = ''
|
subPackages = [ "edition/community.go" ];
|
||||||
runHook preBuild
|
|
||||||
|
|
||||||
pushd go/src/github.com/documize/community
|
postInstall = ''
|
||||||
GO111MODULE=off go build -gcflags="all=-trimpath=$GOPATH" -o bin/documize ./edition/community.go
|
# `buildGoModule` calls `go install` (without `go build` first), so
|
||||||
popd
|
# `-o bin/documize` doesn't work.
|
||||||
|
mv $out/bin/community $out/bin/documize
|
||||||
runHook postBuild
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
|
|
||||||
mkdir -p $bin/bin
|
|
||||||
cp go/src/github.com/documize/community/bin/documize $bin/bin
|
|
||||||
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user