Skip to content

Commit

Permalink
vde2: fix build with latest openssl
Browse files Browse the repository at this point in the history
(cherry picked from commit 06238ce)
  • Loading branch information
worldofpeace authored and flokli committed Feb 25, 2020
1 parent 1a450f0 commit c5e6fbd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
15 changes: 11 additions & 4 deletions pkgs/tools/networking/vde2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,19 @@ stdenv.mkDerivation rec {
sha256 = "14xga0ib6p1wrv3hkl4sa89yzjxv7f1vfqaxsch87j6scdm59pr2";
};

patches = stdenv.lib.optional stdenv.hostPlatform.isMusl (
fetchpatch {
patches = [
# Fix build with openssl 1.1.0
(fetchpatch {
name = "vde_cryptcab-compile-against-openssl-1.1.0.patch";
url = "https://git.archlinux.org/svntogit/packages.git/plain/trunk/vde_cryptcab-compile-against-openssl-1.1.0.patch?h=packages/vde2&id=15b11be49997fa94b603e366064690b7cc6bce61";
sha256 = "07z1yabwigq35mkwzqa934n7vjnjlqz5xfzq8cfj87lgyjjp00qi";
})
] ++ stdenv.lib.optional stdenv.hostPlatform.isMusl [
(fetchpatch {
url = "https://git.alpinelinux.org/cgit/aports/plain/main/vde2/musl-build-fix.patch?id=ddee2f86a48e087867d4a2c12849b2e3baccc238";
sha256 = "0b5382v541bkxhqylilcy34bh83ag96g71f39m070jzvi84kx8af";
}
);
})
];

configureFlags = stdenv.lib.optional (!withPython) "--disable-python";

Expand Down
4 changes: 1 addition & 3 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7060,9 +7060,7 @@ in

vbetool = callPackage ../tools/system/vbetool { };

vde2 = callPackage ../tools/networking/vde2 {
openssl = openssl_1_0_2;
};
vde2 = callPackage ../tools/networking/vde2 { };

vboot_reference = callPackage ../tools/system/vboot_reference {};

Expand Down

0 comments on commit c5e6fbd

Please sign in to comment.