rockbox_utility: rename to rockbox-utility

This commit is contained in:
AndersonTorres 2022-03-17 11:35:32 -03:00
parent 9cfedd0589
commit 704b775b65
3 changed files with 31 additions and 15 deletions

View File

@ -1,9 +1,13 @@
{ lib, stdenv, fetchurl, pkg-config, cryptopp { lib
, libusb1, qtbase, qttools, makeWrapper , stdenv
, qmake, withEspeak ? false, espeak ? null , fetchurl
, qt5 }: , cryptopp
, libusb1
let inherit (lib) getDev; in , makeWrapper
, pkg-config
, qt5
, withEspeak ? false, espeak ? null
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "rockbox-utility"; pname = "rockbox-utility";
@ -11,16 +15,27 @@ stdenv.mkDerivation rec {
src = fetchurl { src = fetchurl {
url = "https://download.rockbox.org/rbutil/source/RockboxUtility-v${version}-src.tar.bz2"; url = "https://download.rockbox.org/rbutil/source/RockboxUtility-v${version}-src.tar.bz2";
sha256 = "0zm9f01a810y7aq0nravbsl0vs9vargwvxnfl4iz9qsqygwlj69y"; hash = "sha256-PhlJ+fNY4/Qjoc72zV9WO+kNqF5bZQuwOh4EpAJwqX4=";
}; };
buildInputs = [ cryptopp libusb1 qtbase qttools ] nativeBuildInputs = [
++ lib.optional withEspeak espeak; makeWrapper
nativeBuildInputs = [ makeWrapper pkg-config qmake qt5.wrapQtAppsHook ]; pkg-config
qt5.qmake
qt5.wrapQtAppsHook
];
buildInputs = [
cryptopp
libusb1
qt5.qtbase
qt5.qttools
]
++ lib.optional withEspeak espeak;
postPatch = '' postPatch = ''
sed -i rbutil/rbutilqt/rbutilqt.pro \ sed -i rbutil/rbutilqt/rbutilqt.pro \
-e '/^lrelease.commands =/ s|$$\[QT_INSTALL_BINS\]/lrelease -silent|${getDev qttools}/bin/lrelease|' -e '/^lrelease.commands =/ s|$$\[QT_INSTALL_BINS\]/lrelease -silent|${lib.getDev qt5.qttools}/bin/lrelease|'
''; '';
preConfigure = '' preConfigure = ''
@ -48,10 +63,10 @@ stdenv.mkDerivation rec {
enableParallelBuilding = false; enableParallelBuilding = false;
meta = with lib; { meta = with lib; {
description = "Open source firmware for mp3 players";
homepage = "https://www.rockbox.org"; homepage = "https://www.rockbox.org";
license = licenses.gpl2; description = "Open source firmware for digital music players";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ AndersonTorres goibhniu ];
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ goibhniu ];
}; };
} }

View File

@ -1044,6 +1044,7 @@ mapAliases ({
rkt = throw "rkt was archived by upstream"; # Added 2020-05-16 rkt = throw "rkt was archived by upstream"; # Added 2020-05-16
rng_tools = throw "'rng_tools' has been renamed to/replaced by 'rng-tools'"; # Converted to throw 2022-02-22 rng_tools = throw "'rng_tools' has been renamed to/replaced by 'rng-tools'"; # Converted to throw 2022-02-22
robomongo = throw "'robomongo' has been renamed to/replaced by 'robo3t'"; # Converted to throw 2022-02-22 robomongo = throw "'robomongo' has been renamed to/replaced by 'robo3t'"; # Converted to throw 2022-02-22
rockbox_utility = rockbox-utility; # Added 2022-03-17
rocm-runtime-ext = throw "rocm-runtime-ext has been removed, since its functionality was added to rocm-runtime"; #added 2020-08-21 rocm-runtime-ext = throw "rocm-runtime-ext has been removed, since its functionality was added to rocm-runtime"; #added 2020-08-21
rpiboot-unstable = rpiboot; # Added 2021-07-30 rpiboot-unstable = rpiboot; # Added 2021-07-30
rssglx = throw "'rssglx' has been renamed to/replaced by 'rss-glx'"; # Converted to throw 2022-02-22 rssglx = throw "'rssglx' has been renamed to/replaced by 'rss-glx'"; # Converted to throw 2022-02-22

View File

@ -9546,7 +9546,7 @@ with pkgs;
roc-toolkit = callPackage ../development/libraries/audio/roc-toolkit { }; roc-toolkit = callPackage ../development/libraries/audio/roc-toolkit { };
rockbox_utility = libsForQt5.callPackage ../tools/misc/rockbox-utility { }; rockbox-utility = libsForQt5.callPackage ../tools/misc/rockbox-utility { };
rosegarden = libsForQt514.callPackage ../applications/audio/rosegarden { }; rosegarden = libsForQt514.callPackage ../applications/audio/rosegarden { };