beecrypt: fix build with gcc 14, modernize (#388495)

This commit is contained in:
Arne Keller
2025-03-09 23:23:26 +01:00
committed by GitHub
+12 -4
View File
@@ -5,22 +5,30 @@
m4,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "beecrypt";
version = "4.2.1";
src = fetchurl {
url = "mirror://sourceforge/beecrypt/beecrypt-${version}.tar.gz";
sha256 = "0pf5k1c4nsj77jfq5ip0ra1gzx2q47xaa0s008fnn6hd11b1yvr8";
url = "mirror://sourceforge/beecrypt/beecrypt-${finalAttrs.version}.tar.gz";
hash = "sha256-KG8fVggNGmsdAkADpfohWPT/gsrgxoKdPEdqS1iYxV0=";
};
postPatch = ''
sed -i '33i #include "beecrypt/endianness.h"' blockmode.c
'';
buildInputs = [ m4 ];
configureFlags = [
"--disable-optimized"
"--enable-static"
];
meta = {
description = "Strong and fast cryptography toolkit library";
platforms = lib.platforms.linux;
license = lib.licenses.lgpl2;
maintainers = [ ];
};
}
})