catimg: 2.7.0 -> 2.8.0 (#506618)
This commit is contained in:
@@ -2,31 +2,20 @@
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
cmake,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "catimg";
|
||||
version = "2.7.0";
|
||||
version = "2.8.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "posva";
|
||||
repo = "catimg";
|
||||
rev = finalAttrs.version;
|
||||
sha256 = "0a2dswbv4xddb2l2d55hc43lzvjwrjs5z9am7v6i0p0mi2fmc89s";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-TkUrDVg/EJQ3cAWosRDJ09pmOB0NANW7c/MFyH//Iok=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Update CMake minimum required version for CMake 4 compatibility
|
||||
# https://github.com/NixOS/nixpkgs/issues/449801
|
||||
# https://github.com/posva/catimg/pull/73
|
||||
(fetchpatch {
|
||||
url = "https://github.com/posva/catimg/commit/155786229230e2ddc2dd97e4e0219d1e2aa66099.patch";
|
||||
hash = "sha256-eDXYa8eGvhC7NGL6V+R3Ui5FBtx/APGUC6Sw9rv2ho4=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
env = lib.optionalAttrs (stdenv.hostPlatform.libc == "glibc") {
|
||||
|
||||
Reference in New Issue
Block a user