{libsForQt5,qt6Packages}.timed: init at 3.6.23
This commit is contained in:
parent
30b29a8ae2
commit
fc17b8e77f
120
pkgs/applications/system/timed/default.nix
Normal file
120
pkgs/applications/system/timed/default.nix
Normal file
@ -0,0 +1,120 @@
|
|||||||
|
{
|
||||||
|
stdenv,
|
||||||
|
lib,
|
||||||
|
fetchFromGitHub,
|
||||||
|
gitUpdater,
|
||||||
|
testers,
|
||||||
|
libiodata,
|
||||||
|
pcre-cpp,
|
||||||
|
pkg-config,
|
||||||
|
qmake,
|
||||||
|
qtbase,
|
||||||
|
sailfish-access-control,
|
||||||
|
tzdata,
|
||||||
|
wrapQtAppsHook,
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "timed";
|
||||||
|
version = "3.6.23";
|
||||||
|
|
||||||
|
outputs = [
|
||||||
|
"out"
|
||||||
|
"lib"
|
||||||
|
"dev"
|
||||||
|
];
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "sailfishos";
|
||||||
|
repo = "timed";
|
||||||
|
tag = finalAttrs.version;
|
||||||
|
hash = "sha256-EJ0xxAkrISQfylBneYAEOINRvMUTWWw4E5GKjbq67aU=";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace src/{lib/lib,voland/voland}.pro \
|
||||||
|
--replace-fail '$$[QT_INSTALL_LIBS]' "$lib/lib" \
|
||||||
|
--replace-fail '/usr/include' "$dev/include" \
|
||||||
|
--replace-fail '$$[QT_INSTALL_DATA]' "$dev"
|
||||||
|
|
||||||
|
substituteInPlace src/server/server.pro \
|
||||||
|
--replace-fail '/usr/bin' "$out/bin" \
|
||||||
|
--replace-fail '/etc' "$out/etc" \
|
||||||
|
--replace-fail '/usr/lib' "$out/lib"
|
||||||
|
|
||||||
|
substituteInPlace tests/tests.pro \
|
||||||
|
--replace-fail '/opt' "$dev/opt" \
|
||||||
|
|
||||||
|
substituteInPlace tests/ut_networktime/ut_networktime.pro \
|
||||||
|
--replace-fail '/opt' "$dev/opt" \
|
||||||
|
--replace-fail '/etc' "$dev/etc"
|
||||||
|
|
||||||
|
substituteInPlace tests/tst_events/tst_events.pro \
|
||||||
|
--replace-fail '/opt' "$dev/opt"
|
||||||
|
|
||||||
|
substituteInPlace tools/timedclient/timedclient.pro \
|
||||||
|
--replace-fail '/usr/bin' "$out/bin"
|
||||||
|
|
||||||
|
substituteInPlace \
|
||||||
|
src/lib/aliases.cpp \
|
||||||
|
src/server/settings.cpp \
|
||||||
|
--replace-fail '/usr/share/zoneinfo' '${tzdata}/share/zoneinfo'
|
||||||
|
'';
|
||||||
|
|
||||||
|
# QMake doesn't handle this well
|
||||||
|
strictDeps = false;
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkg-config
|
||||||
|
qmake
|
||||||
|
wrapQtAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
libiodata
|
||||||
|
pcre-cpp
|
||||||
|
sailfish-access-control
|
||||||
|
];
|
||||||
|
|
||||||
|
# Do all configuring now, not during build
|
||||||
|
postConfigure = ''
|
||||||
|
make qmake_all
|
||||||
|
'';
|
||||||
|
|
||||||
|
env = {
|
||||||
|
TIMED_VERSION = "${finalAttrs.version}";
|
||||||
|
|
||||||
|
# Other subprojects expect library to already be present
|
||||||
|
NIX_CFLAGS_COMPILE = "-isystem ${placeholder "dev"}/include";
|
||||||
|
NIX_LDFLAGS = "-L${placeholder "out"}/lib";
|
||||||
|
};
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
pushd src/lib
|
||||||
|
make ''${enableParallelBuilding:+-j$NIX_BUILD_CORES}
|
||||||
|
make install
|
||||||
|
popd
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
updateScript = gitUpdater { };
|
||||||
|
tests.pkg-config = testers.hasPkgConfigModules {
|
||||||
|
package = finalAttrs.finalPackage;
|
||||||
|
# Version fields exclude patch-level
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Time daemon managing system time, time zone and settings";
|
||||||
|
homepage = "https://github.com/sailfishos/timed";
|
||||||
|
changelog = "https://github.com/sailfishos/timed/releases/tag/${finalAttrs.version}";
|
||||||
|
license = lib.licenses.lgpl21Only;
|
||||||
|
mainProgram = "timed";
|
||||||
|
maintainers = lib.teams.lomiri.members;
|
||||||
|
platforms = lib.platforms.linux;
|
||||||
|
pkgConfigModules = [
|
||||||
|
"timed-qt${lib.versions.major qtbase.version}"
|
||||||
|
"timed-voland-qt${lib.versions.major qtbase.version}"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
})
|
||||||
@ -291,6 +291,8 @@ in (noExtraAttrs (kdeFrameworks // plasmaMobileGear // plasma5 // plasma5.thirdP
|
|||||||
|
|
||||||
soundkonverter = callPackage ../applications/audio/soundkonverter {};
|
soundkonverter = callPackage ../applications/audio/soundkonverter {};
|
||||||
|
|
||||||
|
timed = callPackage ../applications/system/timed { };
|
||||||
|
|
||||||
xp-pen-deco-01-v2-driver = callPackage ../os-specific/linux/xp-pen-drivers/deco-01-v2 { };
|
xp-pen-deco-01-v2-driver = callPackage ../os-specific/linux/xp-pen-drivers/deco-01-v2 { };
|
||||||
|
|
||||||
xp-pen-g430-driver = callPackage ../os-specific/linux/xp-pen-drivers/g430 { };
|
xp-pen-g430-driver = callPackage ../os-specific/linux/xp-pen-drivers/g430 { };
|
||||||
|
|||||||
@ -124,6 +124,8 @@ makeScopeWithSplicing' {
|
|||||||
|
|
||||||
signond = callPackage ../development/libraries/signond {};
|
signond = callPackage ../development/libraries/signond {};
|
||||||
|
|
||||||
|
timed = callPackage ../applications/system/timed { };
|
||||||
|
|
||||||
waylib = callPackage ../development/libraries/waylib { };
|
waylib = callPackage ../development/libraries/waylib { };
|
||||||
|
|
||||||
wayqt = callPackage ../development/libraries/wayqt { };
|
wayqt = callPackage ../development/libraries/wayqt { };
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user