File: Singularity

package info (click to toggle)
bali-phy 4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 15,392 kB
  • sloc: cpp: 120,442; xml: 13,966; haskell: 9,975; python: 2,936; yacc: 1,328; perl: 1,169; lex: 912; sh: 343; makefile: 26
file content (34 lines) | stat: -rw-r--r-- 914 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
BootStrap: docker
From: ubuntu:24.04

%post

    export DEBIAN_FRONTEND=noninteractive

    echo "Installing required packages..."

    # bali-phy dependencies
    apt-get update -y
    apt-get install -y build-essential git cmake pandoc ccache python3-full pkg-config
    python3 -m venv /venv
    /venv/bin/pip install meson ninja

    apt-get install -y libboost-all-dev nlohmann-json3-dev librange-v3-dev libeigen3-dev libcairo2-dev

    # For run-time environment.
    apt-get install -y gnuplot r-base

%environment
    export PATH=$PATH:/scif/apps/bali-phy/bin

%appinstall bali-phy
    export PATH=$PATH:/venv/bin
    mkdir /bali-phy
    cd /bali-phy
    git clone https://github.com/bredelings/BAli-Phy.git git
    ( cd git; git checkout {{ version }} )
    meson setup git build --prefix=${SCIF_APPROOT} --buildtype=release
    ninja -C build install

%labels
    MAINTAINER benjamin.redelings@gmail.com