dosbox-staging: 0.81.1 -> 0.82.1 (#400173)

This commit is contained in:
Peder Bergebakken Sundt 2025-04-24 22:19:26 +02:00 committed by GitHub
commit 3f45558b50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,11 +1,9 @@
{ {
lib, lib,
SDL2, SDL2,
SDL2_image,
SDL2_net, SDL2_net,
alsa-lib, alsa-lib,
fetchFromGitHub, fetchFromGitHub,
fetchpatch,
fluidsynth, fluidsynth,
gitUpdater, gitUpdater,
glib, glib,
@ -33,23 +31,16 @@
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "dosbox-staging"; pname = "dosbox-staging";
version = "0.81.1"; version = "0.82.1";
shortRev = "13441a2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "dosbox-staging"; owner = "dosbox-staging";
repo = "dosbox-staging"; repo = "dosbox-staging";
rev = "v${finalAttrs.version}"; rev = "v${finalAttrs.version}";
hash = "sha256-XGssEyX+AVv7/ixgGTRtPFjsUSX0FT0fhP+TXsFl2fY="; hash = "sha256-BVeFBKqTQiEftWVvMkSYBjC6dCYI4juWD4A6Bx8E8/Y=";
}; };
patches = [
(fetchpatch {
name = "darwin-allow-bypass-wraps.patch";
url = "https://github.com/dosbox-staging/dosbox-staging/commit/9f0fc1dc762010e5f7471d01c504d817a066cae3.patch";
hash = "sha256-IzxRE1Vr+M8I5hdy80UwebjJ5R1IlH9ymaYgs6VwAO4=";
})
];
nativeBuildInputs = [ nativeBuildInputs = [
gtest gtest
makeWrapper makeWrapper
@ -60,7 +51,6 @@ stdenv.mkDerivation (finalAttrs: {
buildInputs = [ buildInputs = [
SDL2 SDL2
SDL2_image
SDL2_net SDL2_net
fluidsynth fluidsynth
glib glib
@ -84,8 +74,18 @@ stdenv.mkDerivation (finalAttrs: {
"man" "man"
]; ];
# replace instances of the get-version.sh script that uses git in meson.build with manual values
postPatch = ''
substituteInPlace meson.build \
--replace-fail "meson.project_source_root() + '/scripts/get-version.sh'," "'printf'," \
--replace-fail "'version', check: true," "'${finalAttrs.version}', check: true," \
--replace-fail "'./scripts/get-version.sh', 'hash'," "'printf', '${
builtins.substring 0 5 finalAttrs.shortRev
}',"
'';
postInstall = '' postInstall = ''
install -Dm644 $src/contrib/linux/dosbox-staging.desktop $out/share/applications/ install -Dm644 $src/contrib/linux/org.dosbox-staging.dosbox-staging.desktop $out/share/applications/
''; '';
# Rename binary, add a wrapper, and copy manual to avoid conflict with # Rename binary, add a wrapper, and copy manual to avoid conflict with
@ -125,6 +125,7 @@ stdenv.mkDerivation (finalAttrs: {
license = lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ maintainers = with lib.maintainers; [
joshuafern joshuafern
Zaechus
]; ];
platforms = lib.platforms.unix; platforms = lib.platforms.unix;
priority = 101; priority = 101;