-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathurbit.ncl
More file actions
70 lines (59 loc) · 1.69 KB
/
urbit.ncl
File metadata and controls
70 lines (59 loc) · 1.69 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
# Package metadata
pname = "urbit",
version = "4.2",
# Platform-specific Data
platforms = {
"x86_64-linux" = {
os = "linux",
arch = "x86_64",
platform_string = "linux-x86_64",
},
},
# Source information
source = {
base_url = "https://github.com/urbit/vere/releases/download",
url_template = "vere-v{version}/{platform}.tgz",
# SHA256 hashes per platform
sha256_hashes = {
"x86_64-linux" = "sha256-UfQJgN1aMMzO1BRm8PZSrIX8EwdQAb4YVB/8tXouM1k=",
},
},
# Build/Install phases
# Note: This is a binary package, so no actual compilation
phases = {
# No buildPhase needed - this is a pre-built binary
buildPhase = null,
# Installation is just copying the binary
installPhase =
"install -m755 -D ./vere* $out/bin/urbit",
# Alternative install phase (commented in original)
# installPhase_old = fun version platform =>
# "install -m755 -D vere-v%{version}-%{platform} $out/bin/urbit",
},
# Dependencies
# This package has minimal dependencies since it's a binary
dependencies = {
# Runtime dependencies would go here
# For urbit binary, these are implicit system libs
buildInputs = [],
nativeBuildInputs = [],
},
# Passthru attributes
passthru = {
updateScript = "./update-bin.sh",
},
# Package metadata
meta = {
homepage = "https://urbit.org",
description = "A clean-slate OS and network for the 21st century.",
platforms | Array String = [
"x86_64-linux"
],
maintainers = ["nixpup"],
license = "mit",
# Source provenance markers
sourceProvenance = ["binaryNativeCode"],
mainProgram = "urbit",
},
}