go-modules: Update files to use vendorSha256
This commit is contained in:
@@ -4,6 +4,8 @@ buildGoModule rec {
|
||||
pname = "documize-community";
|
||||
version = "3.7.0";
|
||||
|
||||
patches = [ ./vendor.patch ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "documize";
|
||||
repo = "community";
|
||||
@@ -11,18 +13,21 @@ buildGoModule rec {
|
||||
sha256 = "1pcldf9lqvpb2h2a3kr3mahj2v1jasjwrszj6czjmkyml7x2sz7c";
|
||||
};
|
||||
|
||||
modSha256 = "1z0v7n8klaxcqv7mvzf3jzgrp78zb4yiibx899ppk6i5qnj4xiv0";
|
||||
vendorSha256 = null;
|
||||
|
||||
nativeBuildInputs = [ go-bindata go-bindata-assetfs ];
|
||||
|
||||
subPackages = [ "edition/community.go" ];
|
||||
# This is really weird, but they've managed to screw up
|
||||
# their folder structure enough, you can only build by
|
||||
# literally cding into this folder.
|
||||
preBuild = "cd edition";
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
passthru.tests = { inherit (nixosTests) documize; };
|
||||
|
||||
postInstall = ''
|
||||
# `buildGoModule` calls `go install` (without `go build` first), so
|
||||
# `-o bin/documize` doesn't work.
|
||||
mv $out/bin/community $out/bin/documize
|
||||
mv $out/bin/edition $out/bin/documize
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
Reference in New Issue
Block a user