~ach/hermes

hermes/release.hpkg -rw-r--r-- 729 bytes
b2599991Andrew Chambers Add pkg_tree builtin. 3 years ago
                                                                                
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
hpkgs = fetch(
  url = "https://git.sr.ht/~ach/linux-hpkgs/archive/2a5cbe1f1ae7ee84809c6f0ab7ddfa9e9bbbd92b.tar.gz",
  hash = "sha256:9e1db740d4db1389eb28a8f777bf435e3cbd3f805c12d831c5ebac8b77867894",
  unpack = True,
  unpack_unwrap = True,
)

load(`@{hpkgs}/core/core.hpkg`, "core_env")
load(`@{hpkgs}/community/go.hpkg`, "go")

hermes_src = fetch("./")

hermes = {
  "name" : "hermes",
  "builder" : `
    #! @{core_env}/bin/bash
    set -eux
    . @{core_env}/activate.sh
    export PATH="$PATH:@{go}/bin"
    cp -r "@{hermes_src}"/ ./src
    chmod +w -R ./src
    mkdir home
    export HOME="$(pwd)/home"
    export CC=gcc
    cd src
    ./configure --prefix="$out"
    bash ./support/do -c install
  `,
}

default = hermes