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