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
, libusb1, qtbase, qttools, makeWrapper
, qmake, withEspeak ? false, espeak ? null
, qt5 }:
let inherit (lib) getDev; in
{ lib
, stdenv
, fetchurl
, cryptopp
, libusb1
, makeWrapper
, pkg-config
, qt5
, withEspeak ? false, espeak ? null
}:
stdenv.mkDerivation rec {
pname = "rockbox-utility";
@ -11,16 +15,27 @@ stdenv.mkDerivation rec {
src = fetchurl {
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 ]
++ lib.optional withEspeak espeak;
nativeBuildInputs = [ makeWrapper pkg-config qmake qt5.wrapQtAppsHook ];
nativeBuildInputs = [
makeWrapper
pkg-config
qt5.qmake
qt5.wrapQtAppsHook
];
buildInputs = [
cryptopp
libusb1
qt5.qtbase
qt5.qttools
]
++ lib.optional withEspeak espeak;
postPatch = ''
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 = ''
@ -48,10 +63,10 @@ stdenv.mkDerivation rec {
enableParallelBuilding = false;
meta = with lib; {
description = "Open source firmware for mp3 players";
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;
maintainers = with maintainers; [ goibhniu ];
};
}

View File

@ -1044,6 +1044,7 @@ mapAliases ({
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
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
rpiboot-unstable = rpiboot; # Added 2021-07-30
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 { };
rockbox_utility = libsForQt5.callPackage ../tools/misc/rockbox-utility { };
rockbox-utility = libsForQt5.callPackage ../tools/misc/rockbox-utility { };
rosegarden = libsForQt514.callPackage ../applications/audio/rosegarden { };