tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
pijul: fix build
authored by
Mario Rodas
and committed by
Jon
6 years ago
31a9f6a3
1a68d933
+13
-2
1 changed file
expand all
collapse all
unified
split
pkgs
applications
version-management
pijul
default.nix
+13
-2
pkgs/applications/version-management/pijul/default.nix
···
1
1
{ stdenv, fetchurl, rustPlatform, darwin, openssl, libsodium, nettle, clang, libclang, pkgconfig }:
2
2
3
3
-
rustPlatform.buildRustPackage rec {
3
3
+
let
4
4
+
# nettle-sys=1.0.1 requires the des-compat.h header, but it was removed in
5
5
+
# nettle 3.5. See https://nest.pijul.com/pijul_org/pijul/discussions/416
6
6
+
# Remove with the next release
7
7
+
nettle_34 = nettle.overrideAttrs (_oldAttrs: rec {
8
8
+
version = "3.4.1";
9
9
+
src = fetchurl {
10
10
+
url = "mirror://gnu/nettle/nettle-${version}.tar.gz";
11
11
+
sha256 = "1bcji95n1iz9p9vsgdgr26v6s7zhpsxfbjjwpqcihpfd6lawyhgr";
12
12
+
};
13
13
+
});
14
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
23
-
buildInputs = [ openssl libsodium nettle libclang ] ++ stdenv.lib.optionals stdenv.isDarwin
34
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;