libreswan: add patch for aarch64

This commit is contained in:
rnhmjoj 2021-05-16 19:01:57 +02:00
parent 0de7e41520
commit 1e05d6d67f
No known key found for this signature in database
GPG key ID: BFBAF4C975F76450

View file

@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchurl
, fetchpatch
, nixosTests
, pkg-config
, systemd
@ -69,6 +70,14 @@ stdenv.mkDerivation rec {
python3 bash
] ++ 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 = ''
# Correct iproute2 path
sed -e 's|"/sbin/ip"|"${iproute2}/bin/ip"|' \