mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #191755 from NickCao/clevis
clevis: fix build with openssl_3
This commit is contained in:
commit
49f07e866c
1 changed files with 9 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, fetchurl
|
||||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
|
@ -29,6 +30,14 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sha256-m1UhyjD5ydSgCTBu6sECLlxFx0rnQxFnBA7frbdUqU8=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# sss: use BN_set_word(x, 0) instead of BN_zero(), fixes build issue with different versions of openssl
|
||||
(fetchurl {
|
||||
url = "https://github.com/latchset/clevis/commit/ee1dfedb9baca107e66a0fec76693c9d479dcfd9.patch";
|
||||
sha256 = "sha256-GeklrWWlAMALDLdnn6+0Bi0l+bXrIbYkgIyI94WEybM=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
for f in $(find src/ -type f); do
|
||||
grep -q "/bin/cat" "$f" && substituteInPlace "$f" \
|
||||
|
|
Loading…
Reference in a new issue