lotus/snap/snapcraft.yaml

65 lines
1.7 KiB
YAML
Raw Normal View History

2021-06-04 03:45:54 +00:00
name: lotus-filecoin
base: core20
version: latest
2021-05-06 22:36:11 +00:00
summary: filecoin daemon/client
2021-06-05 03:13:37 +00:00
icon: snap/local/icon.svg
2021-05-06 22:36:11 +00:00
description: |
Filecoin is a peer-to-peer network that stores files on the internet
with built-in economic incentives to ensure files are stored reliably over time
grade: devel
2021-06-04 03:45:54 +00:00
confinement: strict
2021-05-06 22:36:11 +00:00
parts:
2021-06-04 03:45:54 +00:00
lotus:
plugin: make
2021-05-06 22:36:11 +00:00
source: ./
2021-06-04 03:45:54 +00:00
build-snaps:
- go
- rustup
build-packages:
- git
- jq
- libhwloc-dev
- ocl-icd-opencl-dev
- pkg-config
2021-05-06 22:36:11 +00:00
stage-packages:
2021-06-04 03:45:54 +00:00
- libhwloc15
2021-05-06 22:36:11 +00:00
- ocl-icd-libopencl1
2021-06-04 03:45:54 +00:00
override-build: |
LDFLAGS="" make lotus lotus-miner lotus-worker
cp lotus lotus-miner lotus-worker $SNAPCRAFT_PART_INSTALL
2021-06-04 23:22:57 +00:00
2021-05-06 22:36:11 +00:00
apps:
lotus:
2021-06-04 03:45:54 +00:00
command: lotus
2021-06-04 23:22:57 +00:00
plugs:
- network
- network-bind
2021-06-05 03:13:37 +00:00
environment:
FIL_PROOFS_PARAMETER_CACHE: $SNAP_USER_COMMON/filecoin-proof-parameters
LOTUS_PATH: $SNAP_USER_COMMON/lotus
LOTUS_MINER_PATH: $SNAP_USER_COMMON/lotus-miner
LOTUS_WORKER_PATH: $SNAP_USER_COMMON/lotus-worker
2021-05-06 22:36:11 +00:00
lotus-miner:
2021-06-04 03:45:54 +00:00
command: lotus-miner
2021-06-04 23:22:57 +00:00
plugs:
- network
- network-bind
- opengl
2021-06-05 03:13:37 +00:00
environment:
FIL_PROOFS_PARAMETER_CACHE: $SNAP_USER_COMMON/filecoin-proof-parameters
LOTUS_PATH: $SNAP_USER_COMMON/lotus
LOTUS_MINER_PATH: $SNAP_USER_COMMON/lotus-miner
LOTUS_WORKER_PATH: $SNAP_USER_COMMON/lotus-worker
2021-05-06 22:36:11 +00:00
lotus-worker:
2021-06-04 03:45:54 +00:00
command: lotus-worker
2021-06-04 23:22:57 +00:00
plugs:
- network
- network-bind
- opengl
2021-06-05 03:13:37 +00:00
environment:
FIL_PROOFS_PARAMETER_CACHE: $SNAP_USER_COMMON/filecoin-proof-parameters
LOTUS_PATH: $SNAP_USER_COMMON/lotus
LOTUS_MINER_PATH: $SNAP_USER_COMMON/lotus-miner
LOTUS_WORKER_PATH: $SNAP_USER_COMMON/lotus-worker