lol

xemu: 0.7.135 -> 0.8.96; adopt (#418536)

authored by

Peder Bergebakken Sundt and committed by
GitHub
67e13db9 b4e691ba

+28 -12
+28 -12
pkgs/by-name/xe/xemu/package.nix
··· 6 gettext, 7 glib, 8 gtk3, 9 - libGLU, 10 libdrm, 11 libepoxy, 12 libpcap, 13 libsamplerate, 14 libslirp, 15 libgbm, 16 meson, 17 ninja, 18 openssl, ··· 23 vte, 24 which, 25 wrapGAppsHook3, 26 }: 27 28 stdenv.mkDerivation (finalAttrs: { 29 pname = "xemu"; 30 - version = "0.7.135"; 31 32 src = fetchFromGitHub { 33 owner = "xemu-project"; 34 repo = "xemu"; 35 tag = "v${finalAttrs.version}"; 36 fetchSubmodules = true; 37 - hash = "sha256-lTZ5j5ULh4GFW4zlQy4l7e4zr8TEIvenGNC59O6G0Wg="; 38 }; 39 40 nativeBuildInputs = [ 41 SDL2 42 meson 43 ninja 44 perl 45 pkg-config ··· 57 gettext 58 glib 59 gtk3 60 - libGLU 61 libdrm 62 libepoxy 63 libpcap ··· 66 libgbm 67 openssl 68 vte 69 ]; 70 71 configureFlags = [ 72 "--disable-strip" 73 - "--meson=meson" 74 "--target-list=i386-softmmu" 75 "--disable-werror" 76 ]; ··· 80 separateDebugInfo = true; 81 82 dontUseMesonConfigure = true; 83 84 setOutputFlags = false; 85 ··· 87 88 postPatch = '' 89 patchShebangs . 90 substituteInPlace ./scripts/xemu-version.sh \ 91 - --replace 'date -u' "date -d @$SOURCE_DATE_EPOCH '+%Y-%m-%d %H:%M:%S'" 92 ''; 93 94 preConfigure = '' 95 configureFlagsArray+=("--extra-cflags=-DXBOX=1 -Wno-error=redundant-decls") 96 - '' 97 - + 98 # When the data below can't be obtained through git, the build process tries 99 # to run `XEMU_COMMIT=$(cat XEMU_COMMIT)` (and similar) 100 - '' 101 - echo '${finalAttrs.version}' > XEMU_VERSION 102 - ''; 103 104 preBuild = '' 105 cd build ··· 145 changelog = "https://github.com/xemu-project/xemu/releases/tag/v${finalAttrs.version}"; 146 license = lib.licenses.gpl2Plus; 147 mainProgram = "xemu"; 148 - maintainers = with lib.maintainers; [ ]; 149 platforms = lib.platforms.linux; 150 }; 151 })
··· 6 gettext, 7 glib, 8 gtk3, 9 + cmake, 10 + curl, 11 libdrm, 12 libepoxy, 13 libpcap, 14 libsamplerate, 15 libslirp, 16 libgbm, 17 + vulkan-headers, 18 + vulkan-loader, 19 meson, 20 ninja, 21 openssl, ··· 26 vte, 27 which, 28 wrapGAppsHook3, 29 + cacert, 30 }: 31 32 stdenv.mkDerivation (finalAttrs: { 33 pname = "xemu"; 34 + version = "0.8.96"; 35 36 src = fetchFromGitHub { 37 owner = "xemu-project"; 38 repo = "xemu"; 39 tag = "v${finalAttrs.version}"; 40 + hash = "sha256-42DnlnaSWVazmct9AL1/QaVqNgYe5NCMVHRJY6axo98="; 41 fetchSubmodules = true; 42 + 43 + # also fetch required git submodules 44 + postFetch = '' 45 + cd "$out" 46 + export NIX_SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt 47 + 48 + ${lib.getExe meson} subprojects download \ 49 + SPIRV-Reflect VulkanMemoryAllocator berkeley-softfloat-3 berkeley-testfloat-3 genconfig glslang imgui \ 50 + implot json keycodemapdb nv2a_vsh_cpu tomlplusplus volk xxhash || true 51 + find subprojects -type d -name .git -prune -execdir rm -r {} + 52 + ''; 53 }; 54 55 nativeBuildInputs = [ 56 SDL2 57 meson 58 + cmake 59 ninja 60 perl 61 pkg-config ··· 73 gettext 74 glib 75 gtk3 76 + curl 77 libdrm 78 libepoxy 79 libpcap ··· 82 libgbm 83 openssl 84 vte 85 + vulkan-headers 86 + vulkan-loader 87 ]; 88 89 configureFlags = [ 90 "--disable-strip" 91 "--target-list=i386-softmmu" 92 "--disable-werror" 93 ]; ··· 97 separateDebugInfo = true; 98 99 dontUseMesonConfigure = true; 100 + dontUseCmakeConfigure = true; 101 102 setOutputFlags = false; 103 ··· 105 106 postPatch = '' 107 patchShebangs . 108 + 109 substituteInPlace ./scripts/xemu-version.sh \ 110 + --replace-fail 'date -u' "date -d @$SOURCE_DATE_EPOCH '+%Y-%m-%d %H:%M:%S'" 111 ''; 112 113 preConfigure = '' 114 configureFlagsArray+=("--extra-cflags=-DXBOX=1 -Wno-error=redundant-decls") 115 # When the data below can't be obtained through git, the build process tries 116 # to run `XEMU_COMMIT=$(cat XEMU_COMMIT)` (and similar) 117 + echo '${finalAttrs.version}' > XEMU_VERSION 118 + ''; 119 120 preBuild = '' 121 cd build ··· 161 changelog = "https://github.com/xemu-project/xemu/releases/tag/v${finalAttrs.version}"; 162 license = lib.licenses.gpl2Plus; 163 mainProgram = "xemu"; 164 + maintainers = with lib.maintainers; [ marcin-serwin ]; 165 platforms = lib.platforms.linux; 166 }; 167 })