···
···
rustPlatform.buildRustPackage rec {
24
-
rev = "cjdns-v${version}";
25
-
sha256 = "sha256-vI3uHZwmbFqxGasKqgCl0PLEEO8RNEhwkn5ZA8K7bxU=";
23
+
tag = "cjdns-v${version}";
24
+
hash = "sha256-0imQrkcvIA+2Eq/zlC65USMR7T3OUKwQxrB1KtVexyU=";
(replaceVars ./system-libsodium.patch {
libsodium_include_dir = "${libsodium.dev}/include";
31
+
# Remove mkpasswd since it is failing the build
33
+
url = "https://github.com/cjdelisle/cjdns/commit/6391dba3f5fdab45df4b4b6b71dbe9620286ce32.patch";
34
+
hash = "sha256-XVA4tdTVMLrV6zuGoBCkOgQq6NXh0x7u8HgmaxFeoRI=";
37
+
url = "https://github.com/cjdelisle/cjdns/commit/436d9a9784bae85734992c2561c778fbd2f5ac32.patch";
38
+
hash = "sha256-THcYNGVbMx/xf3/5UIxEhz3OlODE0qiYgDBOlHunhj8=";
34
-
cargoHash = "sha256-LJEKjhyAsK6b7mKObX8tNJdKt53iagMD/YLzoY5GVPw=";
42
+
cargoHash = "sha256-f96y6ZW0HxC+73ts5re8GIo2aigQgK3gXyF7fMrcJ0o=";
···
lib.optional stdenv.hostPlatform.isLinux util-linux;
53
+
buildInputs = [ libsodium ];
env.SODIUM_USE_PKG_CONFIG = 1;
env.NIX_CFLAGS_COMPILE = toString (
···
69
+
# don't run doctests since they fail with "cannot find type `Ctx` in this scope"
76
+
# Tests don't seem to work - "called `Result::unwrap()` on an `Err` value: DecryptErr: NO_SESSION"
77
+
"--skip=crypto::crypto_auth::tests::test_wireguard_iface_encrypt_decrypt"
78
+
"--skip=crypto::crypto_auth::tests::test_wireguard_iface_encrypt_decrypt_with_auth"
passthru.tests.basic = nixosTests.cjdns;
67
-
broken = true; # outdated, incompatible with supported python versions
homepage = "https://github.com/cjdelisle/cjdns";
description = "Encrypted networking for regular people";
license = licenses.gpl3Plus;