This commit is contained in:
Charlotte 🦝 Delenk 2023-05-10 08:48:09 +01:00
parent 0ef8e78af8
commit d3f7bb6a5b
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
3 changed files with 29 additions and 0 deletions

View file

@ -22,6 +22,7 @@
chmod -R +w $out
cp ${./go.mod} go.mod
cp ${./go.sum} go.sum
cp ${./preload.go} plugin/loader/preload.go
echo -e "\nstorjds storj.io/ipfs-go-ds-storj/plugin 0" >> plugin/loader/preload_list
patchShebangs .
'';

27
ipfs/kubo/preload.go Normal file
View file

@ -0,0 +1,27 @@
package loader
import (
pluginbadgerds "github.com/ipfs/kubo/plugin/plugins/badgerds"
pluginiplddagjose "github.com/ipfs/kubo/plugin/plugins/dagjose"
pluginflatfs "github.com/ipfs/kubo/plugin/plugins/flatfs"
pluginfxtest "github.com/ipfs/kubo/plugin/plugins/fxtest"
pluginipldgit "github.com/ipfs/kubo/plugin/plugins/git"
pluginlevelds "github.com/ipfs/kubo/plugin/plugins/levelds"
pluginpeerlog "github.com/ipfs/kubo/plugin/plugins/peerlog"
pluginstorjds "storj.io/ipfs-go-ds-storj/plugin"
)
// DO NOT EDIT THIS FILE
// This file is being generated as part of plugin build process
// To change it, modify the plugin/loader/preload.sh
func init() {
Preload(pluginipldgit.Plugins...)
Preload(pluginiplddagjose.Plugins...)
Preload(pluginbadgerds.Plugins...)
Preload(pluginflatfs.Plugins...)
Preload(pluginlevelds.Plugins...)
Preload(pluginpeerlog.Plugins...)
Preload(pluginfxtest.Plugins...)
Preload(pluginstorjds.Plugins[0])
}

View file

@ -31,5 +31,6 @@ done
make build
cp go.mod go.sum $WRITE_PATH
cp plugin/loader/preload.go $WRITE_PATH
nix run github:nix-community/gomod2nix -- --dir $SOURCE_EXTRACTED --outdir $WRITE_PATH