uade: rename from uade123, 3.01 -> 3.02

This commit is contained in:
OPNA2608 2022-08-08 16:51:55 +02:00 committed by Rick van Schijndel
parent d6dbe27eb4
commit e2f8343087
3 changed files with 20 additions and 4 deletions

View file

@ -11,17 +11,19 @@
, lame
, flac
, vorbis-tools
# https://gitlab.com/uade-music-player/uade/-/issues/38
, withWriteAudio ? !stdenv.hostPlatform.isDarwin
}:
stdenv.mkDerivation rec {
pname = "uade123";
version = "3.01";
pname = "uade";
version = "3.02";
src = fetchFromGitLab {
owner = "uade-music-player";
repo = "uade";
rev = "uade-${version}";
sha256 = "0fam3g8mlzrirrac3iwcwsz9jmsqwdy7lkwwdr2q4pkq9cpmh8m5";
sha256 = "sha256-skPEXBQwyr326zCmZ2jwGxcBoTt3Y/h2hagDeeqbMpw=";
};
postPatch = ''
@ -31,12 +33,18 @@ stdenv.mkDerivation rec {
substituteInPlace src/frontends/mod2ogg/mod2ogg2.sh.in \
--replace '-e stat' '-n stat' \
--replace '/usr/local' "$out"
substituteInPlace python/uade/generate_oscilloscope_view.py \
--replace "default='uade123'" "default='$out/bin/uade123'"
# https://gitlab.com/uade-music-player/uade/-/issues/37
substituteInPlace write_audio/Makefile.in \
--replace 'g++' '${stdenv.cc.targetPrefix}c++'
'';
nativeBuildInputs = [
pkg-config
which
makeWrapper
] ++ lib.optionals withWriteAudio [
python3
];
@ -47,14 +55,19 @@ stdenv.mkDerivation rec {
lame
flac
vorbis-tools
] ++ lib.optionals withWriteAudio [
(python3.withPackages (p: with p; [
pillow
tqdm
more-itertools
]))
];
configureFlags = [
"--bencode-tools-prefix=${bencodetools}"
"--with-text-scope"
] ++ lib.optionals (!withWriteAudio) [
"--without-write-audio"
];
enableParallelBuilding = true;
@ -66,6 +79,7 @@ stdenv.mkDerivation rec {
--prefix PATH : $out/bin:${lib.makeBinPath [ sox lame flac vorbis-tools ]}
# This is an old script, don't break expectations by renaming it
ln -s $out/bin/mod2ogg2{.sh,}
'' + lib.optionalString withWriteAudio ''
wrapProgram $out/bin/generate_amiga_oscilloscope_view \
--prefix PYTHONPATH : "$PYTHONPATH:$out/${python3.sitePackages}"
'';
@ -79,6 +93,7 @@ stdenv.mkDerivation rec {
# Let's make it easy and flag the whole package as unfree.
license = licenses.unfree;
maintainers = with maintainers; [ OPNA2608 ];
mainProgram = "uade123";
platforms = platforms.unix;
};
}

View file

@ -1439,6 +1439,7 @@ mapAliases ({
### U ###
uade123 = uade; # Added 2022-07-30
uberwriter = apostrophe; # Added 2020-04-23
ubootBeagleboneBlack = ubootAmx335xEVM; # Added 2020-01-21
uchiwa = throw "uchiwa is deprecated and archived by upstream"; # Added 2022-05-02

View file

@ -30478,7 +30478,7 @@ with pkgs;
inherit (gnome) zenity;
};
uade123 = callPackage ../applications/audio/uade123 {};
uade = callPackage ../applications/audio/uade {};
udevil = callPackage ../applications/misc/udevil {};