mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 07:01:54 +00:00
pijul: fix build
This commit is contained in:
parent
1a68d9330d
commit
31a9f6a341
@ -1,6 +1,17 @@
|
||||
{ stdenv, fetchurl, rustPlatform, darwin, openssl, libsodium, nettle, clang, libclang, pkgconfig }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
let
|
||||
# nettle-sys=1.0.1 requires the des-compat.h header, but it was removed in
|
||||
# nettle 3.5. See https://nest.pijul.com/pijul_org/pijul/discussions/416
|
||||
# Remove with the next release
|
||||
nettle_34 = nettle.overrideAttrs (_oldAttrs: rec {
|
||||
version = "3.4.1";
|
||||
src = fetchurl {
|
||||
url = "mirror://gnu/nettle/nettle-${version}.tar.gz";
|
||||
sha256 = "1bcji95n1iz9p9vsgdgr26v6s7zhpsxfbjjwpqcihpfd6lawyhgr";
|
||||
};
|
||||
});
|
||||
in rustPlatform.buildRustPackage rec {
|
||||
pname = "pijul";
|
||||
version = "0.12.0";
|
||||
|
||||
@ -20,7 +31,7 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
LIBCLANG_PATH = libclang + "/lib";
|
||||
|
||||
buildInputs = [ openssl libsodium nettle libclang ] ++ stdenv.lib.optionals stdenv.isDarwin
|
||||
buildInputs = [ openssl libsodium nettle_34 libclang ] ++ stdenv.lib.optionals stdenv.isDarwin
|
||||
(with darwin.apple_sdk.frameworks; [ CoreServices Security ]);
|
||||
|
||||
doCheck = false;
|
||||
|
Loading…
Reference in New Issue
Block a user