Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

pijul: fix build

authored by Mario Rodas and committed by Jon 31a9f6a3 1a68d933

+13 -2
+13 -2
pkgs/applications/version-management/pijul/default.nix
··· 1 { stdenv, fetchurl, rustPlatform, darwin, openssl, libsodium, nettle, clang, libclang, pkgconfig }: 2 3 - rustPlatform.buildRustPackage rec { 4 pname = "pijul"; 5 version = "0.12.0"; 6 ··· 20 21 LIBCLANG_PATH = libclang + "/lib"; 22 23 - buildInputs = [ openssl libsodium nettle libclang ] ++ stdenv.lib.optionals stdenv.isDarwin 24 (with darwin.apple_sdk.frameworks; [ CoreServices Security ]); 25 26 doCheck = false;
··· 1 { stdenv, fetchurl, rustPlatform, darwin, openssl, libsodium, nettle, clang, libclang, pkgconfig }: 2 3 + let 4 + # nettle-sys=1.0.1 requires the des-compat.h header, but it was removed in 5 + # nettle 3.5. See https://nest.pijul.com/pijul_org/pijul/discussions/416 6 + # Remove with the next release 7 + nettle_34 = nettle.overrideAttrs (_oldAttrs: rec { 8 + version = "3.4.1"; 9 + src = fetchurl { 10 + url = "mirror://gnu/nettle/nettle-${version}.tar.gz"; 11 + sha256 = "1bcji95n1iz9p9vsgdgr26v6s7zhpsxfbjjwpqcihpfd6lawyhgr"; 12 + }; 13 + }); 14 + in rustPlatform.buildRustPackage rec { 15 pname = "pijul"; 16 version = "0.12.0"; 17 ··· 31 32 LIBCLANG_PATH = libclang + "/lib"; 33 34 + buildInputs = [ openssl libsodium nettle_34 libclang ] ++ stdenv.lib.optionals stdenv.isDarwin 35 (with darwin.apple_sdk.frameworks; [ CoreServices Security ]); 36 37 doCheck = false;