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 1 { stdenv, fetchurl, rustPlatform, darwin, openssl, libsodium, nettle, clang, libclang, pkgconfig }: 2 2 3 - rustPlatform.buildRustPackage rec { 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 { 4 15 pname = "pijul"; 5 16 version = "0.12.0"; 6 17 ··· 20 31 21 32 LIBCLANG_PATH = libclang + "/lib"; 22 33 23 - buildInputs = [ openssl libsodium nettle libclang ] ++ stdenv.lib.optionals stdenv.isDarwin 34 + buildInputs = [ openssl libsodium nettle_34 libclang ] ++ stdenv.lib.optionals stdenv.isDarwin 24 35 (with darwin.apple_sdk.frameworks; [ CoreServices Security ]); 25 36 26 37 doCheck = false;