nono: 0.5.0 -> 0.35.0 (#509106)

This commit is contained in:
j-k
2026-04-15 10:23:24 +00:00
committed by GitHub
+33 -4
View File
@@ -1,25 +1,27 @@
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
pkg-config,
dbus,
writableTmpDirAsHomeHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "nono";
version = "0.5.0";
version = "0.35.0";
src = fetchFromGitHub {
owner = "always-further";
repo = "nono";
tag = "v${finalAttrs.version}";
hash = "sha256-32PiM84dwZ3dPIAIak1DL3iencguXCzehFCDsulDyhI=";
hash = "sha256-/bKquUbVMM1e/YPcuSb0vW4tX/3yNDUxmaBWHKFw+Qs=";
};
cargoHash = "sha256-nE0vVBThXnqo8VnFCkOyqhpZZ40MIkXSqUoJUZcDVhE=";
cargoHash = "sha256-ibGIpH6Ls9nxtF6rRl+dZBbbmVRXDQA6vpPI/jzpDqI=";
nativeBuildInputs = [
pkg-config
@@ -29,6 +31,33 @@ rustPlatform.buildRustPackage (finalAttrs: {
dbus
];
nativeCheckInputs = [
writableTmpDirAsHomeHook
];
checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [
# panics with "Deny-within-allow overlap on Linux ... Landlock cannot enforce this. ..."
# landlock is linux only
"--skip=policy::tests::test_all_groups_no_deny_within_allow_overlap"
# panics with "exact-path fallback must not recursively cover descendants"
"--skip=capability_ext::tests::test_from_profile_allow_file_falls_back_to_exact_directory_when_present"
# env_vars
# don't work inside of the /nix dir
# unsure why home is still under /nix with writableTmpDirAsHomeHook
# Sandbox initialization failed: Refusing to grant '/nix' (source: group:system_read_macos) because it overlaps protected nono state root '/nix/build/nix-<ID>/.home/.nono'.
"--skip=allow_net_overrides_profile_external_proxy"
"--skip=cli_flag_overrides_env_var"
"--skip=env_nono_allow_comma_separated"
"--skip=env_nono_block_net"
"--skip=env_nono_block_net_accepts_true"
"--skip=env_nono_network_profile"
"--skip=env_nono_profile"
"--skip=env_nono_upstream_bypass_comma_separated"
"--skip=env_nono_upstream_proxy"
"--skip=legacy_env_nono_net_block_still_works"
];
meta = {
description = "Secure, kernel-enforced sandbox for AI agents, MCP and LLM workloads";
homepage = "https://github.com/always-further/nono";