john: unbreak on aarch64-darwin

This commit is contained in:
Weijia Wang 2022-12-27 10:35:11 +01:00 committed by Bjørn Forsman
parent 60facffaa9
commit f92ee1a512

View File

@ -21,6 +21,12 @@ stdenv.mkDerivation rec {
url = "https://github.com/openwall/john/commit/154ee1156d62dd207aff0052b04c61796a1fde3b.patch";
sha256 = "sha256-3rfS2tu/TF+KW2MQiR+bh4w/FVECciTooDQNTHNw31A=";
})
(fetchpatch {
name = "improve-apple-clang-pseudo-intrinsics-portability.patch";
url = "https://github.com/openwall/john/commit/c9825e688d1fb9fdd8942ceb0a6b4457b0f9f9b4.patch";
excludes = [ "doc/*" ];
sha256 = "sha256-hgoiz7IgR4f66fMP7bV1F8knJttY8g2Hxyk3QfkTu+g=";
})
];
postPatch = ''
@ -83,7 +89,5 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/openwall/john/";
maintainers = with maintainers; [ offline matthewbauer ];
platforms = platforms.unix;
# never built on aarch64-darwin since first introduction in nixpkgs
broken = stdenv.isDarwin && stdenv.isAarch64;
};
}