libreswan: add patch for aarch64
This commit is contained in:
parent
0de7e41520
commit
1e05d6d67f
@ -1,6 +1,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchurl
|
, fetchurl
|
||||||
|
, fetchpatch
|
||||||
, nixosTests
|
, nixosTests
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, systemd
|
, systemd
|
||||||
@ -69,6 +70,14 @@ stdenv.mkDerivation rec {
|
|||||||
python3 bash
|
python3 bash
|
||||||
] ++ lib.optional stdenv.isLinux libselinux;
|
] ++ lib.optional stdenv.isLinux libselinux;
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Fix compilation on aarch64, remove on next update
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/libreswan/libreswan/commit/ea50d36d2886e44317ba5ba841de1d1bf91aee6c.patch";
|
||||||
|
sha256 = "1jp89rm9jp55zmiyimyhg7yadj0fwwxaw7i5gyclrs38w3y1aacj";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
# Correct iproute2 path
|
# Correct iproute2 path
|
||||||
sed -e 's|"/sbin/ip"|"${iproute2}/bin/ip"|' \
|
sed -e 's|"/sbin/ip"|"${iproute2}/bin/ip"|' \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user