summaryrefslogtreecommitdiffstats
path: root/examples/packages/example_1/pkgA/pkg.toml
blob: d82df021df9f5bcec9306b65d43b118ca84474a0 (plain)
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
name              = "pkgA"
version           = "1.0.0"

[dependencies]
runtime = [ "pkgB =1.0.0" ]

[[sources]]
url  = "http://somerandomthi.ng/foo/bar.tar.gz"
hash.type = "sha1"
hash.hash = "23465"

[phases]
# overwrites
install.script = '''
    ls /inputs
    [[ -e /inputs/pkgB-1.0.0.txt ]] || {
        echo "Not found: pkgB-1.0.0"
        exit 1
    }
    echo Overridden install phase in package pkgA

    mkdir -p /outputs
    touch /outputs/pkgA-1.0.0.txt
    ls /outputs
'''