uade: 3.02 -> 3.05

This commit is contained in:
OPNA2608 2024-11-01 15:58:14 +01:00
parent cb171c5233
commit 35a5b6028f

View File

@ -2,10 +2,12 @@
lib, lib,
stdenv, stdenv,
fetchFromGitLab, fetchFromGitLab,
gitUpdater,
bencodetools, bencodetools,
flac, flac,
lame, lame,
libao, libao,
libzakalwe,
makeWrapper, makeWrapper,
python3, python3,
pkg-config, pkg-config,
@ -16,13 +18,13 @@
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "uade"; pname = "uade";
version = "3.02"; version = "3.05";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "uade-music-player"; owner = "uade-music-player";
repo = "uade"; repo = "uade";
rev = "uade-${finalAttrs.version}"; rev = "uade-${finalAttrs.version}";
hash = "sha256-skPEXBQwyr326zCmZ2jwGxcBoTt3Y/h2hagDeeqbMpw="; hash = "sha256-k6t8EQ/G8PbfRrBMXubn1XfBPvw1qDoMGh5xJKrcX+E=";
}; };
postPatch = '' postPatch = ''
@ -34,10 +36,6 @@ stdenv.mkDerivation (finalAttrs: {
substituteInPlace python/uade/generate_oscilloscope_view.py \ substituteInPlace python/uade/generate_oscilloscope_view.py \
--replace-fail "default='uade123'" "default='$out/bin/uade123'" --replace-fail "default='uade123'" "default='$out/bin/uade123'"
# https://gitlab.com/uade-music-player/uade/-/issues/37
substituteInPlace write_audio/Makefile.in \
--replace-fail 'g++' '${stdenv.cc.targetPrefix}c++'
''; '';
nativeBuildInputs = [ nativeBuildInputs = [
@ -51,12 +49,14 @@ stdenv.mkDerivation (finalAttrs: {
flac flac
lame lame
libao libao
libzakalwe
sox sox
vorbis-tools vorbis-tools
]; ];
configureFlags = [ configureFlags = [
"--bencode-tools-prefix=${bencodetools}" "--bencode-tools-prefix=${bencodetools}"
"--libzakalwe-prefix=${libzakalwe}"
(lib.strings.withFeature true "text-scope") (lib.strings.withFeature true "text-scope")
(lib.strings.withFeature false "write-audio") (lib.strings.withFeature false "write-audio")
]; ];
@ -80,6 +80,8 @@ stdenv.mkDerivation (finalAttrs: {
ln -s $out/bin/mod2ogg2{.sh,} ln -s $out/bin/mod2ogg2{.sh,}
''; '';
passthru.updateScript = gitUpdater { rev-prefix = "uade-"; };
meta = { meta = {
description = "Plays old Amiga tunes through UAE emulation and cloned m68k-assembler Eagleplayer API"; description = "Plays old Amiga tunes through UAE emulation and cloned m68k-assembler Eagleplayer API";
homepage = "https://zakalwe.fi/uade/"; homepage = "https://zakalwe.fi/uade/";