Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
49 lines
1.3 KiB
Nix
49 lines
1.3 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchzip,
|
|
}:
|
|
|
|
let
|
|
os = if stdenv.hostPlatform.isDarwin then "macos" else "linux";
|
|
arch = if stdenv.hostPlatform.isAarch64 then "aarch64" else "x86_64";
|
|
platform = "${os}-${arch}";
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "urbit";
|
|
version = "3.5";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/urbit/vere/releases/download/vere-v${version}/${platform}.tgz";
|
|
sha256 =
|
|
{
|
|
x86_64-linux = "sha256-eB80GuyNuVZbBsyNnek8UCtquZbNt5G4Co7IKqq7aeI=";
|
|
aarch64-linux = "sha256-imbzAsjjznLuxee9mWXpsG/dKEJxdEOTw+JFc4DbQ2Q=";
|
|
x86_64-darwin = "sha256-0c1ewdrVsfSUivrcLwVuxZdcyrOAKXF7P9W+B7o5aNU=";
|
|
aarch64-darwin = "sha256-j8PJ04zRz2sZdpetLyzwRasj0CkiRGY+GvzWXG90IaE=";
|
|
}
|
|
.${stdenv.hostPlatform.system} or (throw "unsupported system ${stdenv.hostPlatform.system}");
|
|
};
|
|
|
|
postInstall = ''
|
|
install -m755 -D vere-v${version}-${platform} $out/bin/urbit
|
|
'';
|
|
|
|
passthru.updateScript = ./update-bin.sh;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://urbit.org";
|
|
description = "Operating function";
|
|
platforms = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
"x86_64-darwin"
|
|
"aarch64-darwin"
|
|
];
|
|
maintainers = [ maintainers.matthew-levan ];
|
|
license = licenses.mit;
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
mainProgram = "urbit";
|
|
};
|
|
}
|