lomiri.mediascanner2: nixfmt, modernise abit

This commit is contained in:
OPNA2608 2024-10-09 21:37:37 +02:00
parent c707f731bf
commit de16f5ecfd

View File

@ -1,28 +1,29 @@
{ stdenv
, lib
, fetchFromGitLab
, gitUpdater
, testers
, boost
, cmake
, cmake-extras
, dbus
, dbus-cpp
, gdk-pixbuf
, glib
, gst_all_1
, gtest
, libapparmor
, libexif
, pkg-config
, properties-cpp
, qtbase
, qtdeclarative
, shared-mime-info
, sqlite
, taglib
, udisks
, wrapQtAppsHook
{
stdenv,
lib,
fetchFromGitLab,
gitUpdater,
testers,
boost,
cmake,
cmake-extras,
dbus,
dbus-cpp,
gdk-pixbuf,
glib,
gst_all_1,
gtest,
libapparmor,
libexif,
pkg-config,
properties-cpp,
qtbase,
qtdeclarative,
shared-mime-info,
sqlite,
taglib,
udisks,
wrapQtAppsHook,
}:
stdenv.mkDerivation (finalAttrs: {
@ -55,35 +56,33 @@ stdenv.mkDerivation (finalAttrs: {
wrapQtAppsHook
];
buildInputs = [
boost
cmake-extras
dbus
dbus-cpp
gdk-pixbuf
glib
libapparmor
libexif
properties-cpp
qtbase
qtdeclarative
shared-mime-info
sqlite
taglib
udisks
] ++ (with gst_all_1; [
gstreamer
gst-plugins-base
gst-plugins-good
]);
buildInputs =
[
boost
cmake-extras
dbus
dbus-cpp
gdk-pixbuf
glib
libapparmor
libexif
properties-cpp
qtbase
qtdeclarative
shared-mime-info
sqlite
taglib
udisks
]
++ (with gst_all_1; [
gstreamer
gst-plugins-base
gst-plugins-good
]);
checkInputs = [
gtest
];
checkInputs = [ gtest ];
cmakeFlags = [
"-DENABLE_TESTS=${lib.boolToString finalAttrs.finalPackage.doCheck}"
];
cmakeFlags = [ (lib.cmakeBool "ENABLE_TESTS" finalAttrs.finalPackage.doCheck) ];
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
@ -104,15 +103,13 @@ stdenv.mkDerivation (finalAttrs: {
updateScript = gitUpdater { };
};
meta = with lib; {
meta = {
description = "Media scanner service & access library";
homepage = "https://gitlab.com/ubports/development/core/mediascanner2";
license = licenses.gpl3Only;
maintainers = teams.lomiri.members;
license = lib.licenses.gpl3Only;
maintainers = lib.teams.lomiri.members;
mainProgram = "mediascanner-service-2.0";
platforms = platforms.linux;
pkgConfigModules = [
"mediascanner-2.0"
];
platforms = lib.platforms.linux;
pkgConfigModules = [ "mediascanner-2.0" ];
};
})