uade: rename from uade123, 3.01 -> 3.02
This commit is contained in:
parent
d6dbe27eb4
commit
e2f8343087
3 changed files with 20 additions and 4 deletions
|
@ -11,17 +11,19 @@
|
||||||
, lame
|
, lame
|
||||||
, flac
|
, flac
|
||||||
, vorbis-tools
|
, vorbis-tools
|
||||||
|
# https://gitlab.com/uade-music-player/uade/-/issues/38
|
||||||
|
, withWriteAudio ? !stdenv.hostPlatform.isDarwin
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "uade123";
|
pname = "uade";
|
||||||
version = "3.01";
|
version = "3.02";
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
owner = "uade-music-player";
|
owner = "uade-music-player";
|
||||||
repo = "uade";
|
repo = "uade";
|
||||||
rev = "uade-${version}";
|
rev = "uade-${version}";
|
||||||
sha256 = "0fam3g8mlzrirrac3iwcwsz9jmsqwdy7lkwwdr2q4pkq9cpmh8m5";
|
sha256 = "sha256-skPEXBQwyr326zCmZ2jwGxcBoTt3Y/h2hagDeeqbMpw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -31,12 +33,18 @@ stdenv.mkDerivation rec {
|
||||||
substituteInPlace src/frontends/mod2ogg/mod2ogg2.sh.in \
|
substituteInPlace src/frontends/mod2ogg/mod2ogg2.sh.in \
|
||||||
--replace '-e stat' '-n stat' \
|
--replace '-e stat' '-n stat' \
|
||||||
--replace '/usr/local' "$out"
|
--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 = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
pkg-config
|
||||||
which
|
which
|
||||||
makeWrapper
|
makeWrapper
|
||||||
|
] ++ lib.optionals withWriteAudio [
|
||||||
python3
|
python3
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -47,14 +55,19 @@ stdenv.mkDerivation rec {
|
||||||
lame
|
lame
|
||||||
flac
|
flac
|
||||||
vorbis-tools
|
vorbis-tools
|
||||||
|
] ++ lib.optionals withWriteAudio [
|
||||||
(python3.withPackages (p: with p; [
|
(python3.withPackages (p: with p; [
|
||||||
pillow
|
pillow
|
||||||
tqdm
|
tqdm
|
||||||
|
more-itertools
|
||||||
]))
|
]))
|
||||||
];
|
];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--bencode-tools-prefix=${bencodetools}"
|
"--bencode-tools-prefix=${bencodetools}"
|
||||||
|
"--with-text-scope"
|
||||||
|
] ++ lib.optionals (!withWriteAudio) [
|
||||||
|
"--without-write-audio"
|
||||||
];
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
@ -66,6 +79,7 @@ stdenv.mkDerivation rec {
|
||||||
--prefix PATH : $out/bin:${lib.makeBinPath [ sox lame flac vorbis-tools ]}
|
--prefix PATH : $out/bin:${lib.makeBinPath [ sox lame flac vorbis-tools ]}
|
||||||
# This is an old script, don't break expectations by renaming it
|
# This is an old script, don't break expectations by renaming it
|
||||||
ln -s $out/bin/mod2ogg2{.sh,}
|
ln -s $out/bin/mod2ogg2{.sh,}
|
||||||
|
'' + lib.optionalString withWriteAudio ''
|
||||||
wrapProgram $out/bin/generate_amiga_oscilloscope_view \
|
wrapProgram $out/bin/generate_amiga_oscilloscope_view \
|
||||||
--prefix PYTHONPATH : "$PYTHONPATH:$out/${python3.sitePackages}"
|
--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.
|
# Let's make it easy and flag the whole package as unfree.
|
||||||
license = licenses.unfree;
|
license = licenses.unfree;
|
||||||
maintainers = with maintainers; [ OPNA2608 ];
|
maintainers = with maintainers; [ OPNA2608 ];
|
||||||
|
mainProgram = "uade123";
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
|
@ -1439,6 +1439,7 @@ mapAliases ({
|
||||||
|
|
||||||
### U ###
|
### U ###
|
||||||
|
|
||||||
|
uade123 = uade; # Added 2022-07-30
|
||||||
uberwriter = apostrophe; # Added 2020-04-23
|
uberwriter = apostrophe; # Added 2020-04-23
|
||||||
ubootBeagleboneBlack = ubootAmx335xEVM; # Added 2020-01-21
|
ubootBeagleboneBlack = ubootAmx335xEVM; # Added 2020-01-21
|
||||||
uchiwa = throw "uchiwa is deprecated and archived by upstream"; # Added 2022-05-02
|
uchiwa = throw "uchiwa is deprecated and archived by upstream"; # Added 2022-05-02
|
||||||
|
|
|
@ -30478,7 +30478,7 @@ with pkgs;
|
||||||
inherit (gnome) zenity;
|
inherit (gnome) zenity;
|
||||||
};
|
};
|
||||||
|
|
||||||
uade123 = callPackage ../applications/audio/uade123 {};
|
uade = callPackage ../applications/audio/uade {};
|
||||||
|
|
||||||
udevil = callPackage ../applications/misc/udevil {};
|
udevil = callPackage ../applications/misc/udevil {};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue