libkrunfw: 3.11.0 -> 4.0.0

drops darwin support due to upstream no longer providing prebuilt images

Diff: https://github.com/containers/libkrunfw/compare/v3.11.0...v4.0.0

Nick Cao 80d9a1ea 5c9959ed

+24 -20
+24 -20
pkgs/development/libraries/libkrunfw/default.nix
··· 10 10 , sevVariant ? false 11 11 }: 12 12 13 - assert sevVariant -> stdenv.isx86_64; 14 13 stdenv.mkDerivation rec { 15 14 pname = "libkrunfw"; 16 - version = "3.11.0"; 15 + version = "4.0.0"; 17 16 18 - src = if stdenv.isLinux then fetchFromGitHub { 17 + src = fetchFromGitHub { 19 18 owner = "containers"; 20 - repo = pname; 21 - rev = "v${version}"; 22 - hash = "sha256-p5z3Dc7o/Ja3K0VlOWIPc0qOIU5p+JSxWe7QiVQNkjs="; 23 - } else fetchurl { 24 - url = "https://github.com/containers/libkrunfw/releases/download/v${version}/v${version}-with_macos_prebuilts.tar.gz"; 25 - hash = "sha256-XcdsK8L5NwMgelSMhE2YKYxaAin/3p/+GrljGGZpK5Y="; 19 + repo = "libkrunfw"; 20 + rev = "refs/tags/v${version}"; 21 + hash = "sha256-9oVl4mlJE7QHeehG86pbh7KdShZNUGwlnO75k/F/PQ0="; 26 22 }; 27 23 28 24 kernelSrc = fetchurl { 29 - url = "https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.2.9.tar.xz"; 30 - hash = "sha256-kDRJwWTAPw50KqzJIOGFY1heB6KMbLeeD9bDZpX9Q/U="; 25 + url = "https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.4.7.tar.xz"; 26 + hash = "sha256-3hQ8th3Kp1bAX1b/NRRDFtgQYVgZUYoz40dU8GTEp9g="; 31 27 }; 32 28 33 - preBuild = '' 29 + postPatch = '' 34 30 substituteInPlace Makefile \ 35 - --replace 'curl $(KERNEL_REMOTE) -o $(KERNEL_TARBALL)' 'ln -s $(kernelSrc) $(KERNEL_TARBALL)' \ 36 - --replace 'gcc' '$(CC)' 31 + --replace 'curl $(KERNEL_REMOTE) -o $(KERNEL_TARBALL)' 'ln -s $(kernelSrc) $(KERNEL_TARBALL)' 37 32 ''; 38 33 39 - nativeBuildInputs = [ flex bison bc python3 python3.pkgs.pyelftools ]; 40 - buildInputs = lib.optionals stdenv.isLinux [ elfutils ]; 34 + nativeBuildInputs = [ 35 + flex 36 + bison 37 + bc 38 + python3 39 + python3.pkgs.pyelftools 40 + ]; 41 + 42 + buildInputs = [ 43 + elfutils 44 + ]; 41 45 42 46 makeFlags = [ 43 47 "PREFIX=${placeholder "out"}" 44 - "SONAME_Darwin=-Wl,-install_name,${placeholder "out"}/lib/libkrunfw.dylib" 45 - ] ++ lib.optional sevVariant "SEV=1"; 48 + ] ++ lib.optionals sevVariant [ 49 + "SEV=1" 50 + ]; 46 51 47 52 enableParallelBuilding = true; 48 53 ··· 51 56 homepage = "https://github.com/containers/libkrunfw"; 52 57 license = with licenses; [ lgpl2Only lgpl21Only ]; 53 58 maintainers = with maintainers; [ nickcao ]; 54 - platforms = [ "x86_64-linux" "aarch64-darwin" ]; 55 - sourceProvenance = with sourceTypes; lib.optionals stdenv.isDarwin [ binaryNativeCode ]; 59 + platforms = [ "x86_64-linux" ]; 56 60 }; 57 61 }