Merge pull request #155500 from IvarWithoutBones/bump/nx2elf

nx2elf: unstable-2020-05-26 -> unstable-2021-11-21
This commit is contained in:
Renaud 2022-02-10 19:24:16 +01:00 committed by GitHub
commit 02349ccfc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,23 +2,19 @@
stdenv.mkDerivation rec {
pname = "nx2elf";
version = "unstable-2020-05-26";
version = "unstable-2021-11-21";
src = fetchFromGitHub {
owner = "shuffle2";
repo = "nx2elf";
rev = "7212e82a77b84fcc18ef2d050970350dbf63649b";
sha256 = "1j4k5s86c6ixa3wdqh4cfm31fxabwn6jcjc6pippx8mii98ac806";
rev = "735aaa0648a5a6c996b48add9465db86524999f6";
sha256 = "sha256-cS8FFIEgDWva0j9JXhS+s7Y4Oh+mNhFaKRI7BF2hqvs=";
};
buildInputs = [ lz4 ];
postPatch = ''
# This project does not comply with C++14 standards, and compilation on that fails.
# This does however succesfully compile with the gnu++20 standard.
substituteInPlace Makefile --replace "c++14" "gnu++20"
# pkg-config is not supported, so we'll manually use a non-ancient version of lz4
# pkg-config is not supported, so we'll manually devendor lz4
cp ${lz4.src}/lib/lz4.{h,c} .
'';