2023-11-19 01:10:06 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, qtbase
|
|
|
|
, stdenv
|
|
|
|
, lib
|
|
|
|
, wrapQtAppsHook
|
|
|
|
, qmake
|
|
|
|
, qtcharts
|
|
|
|
, qtwebengine
|
|
|
|
, qtserialport
|
|
|
|
, qtwebchannel
|
|
|
|
, hamlib
|
|
|
|
, qtkeychain
|
|
|
|
, pkg-config
|
2023-11-25 01:37:27 +00:00
|
|
|
, cups
|
2023-11-19 01:10:06 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "qlog";
|
2024-10-05 14:37:39 +00:00
|
|
|
version = "0.39.0";
|
2023-11-19 01:10:06 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "foldynl";
|
|
|
|
repo = "QLog";
|
|
|
|
rev = "v${version}";
|
2024-10-05 14:37:39 +00:00
|
|
|
hash = "sha256-W+Ftc97/lI49rUItVhCb9W9mxcCElED/oZxefgIDqyM=";
|
2023-11-19 01:10:06 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
env.NIX_LDFLAGS = "-lhamlib";
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
qtcharts
|
|
|
|
qtwebengine
|
|
|
|
qtserialport
|
|
|
|
qtwebchannel
|
|
|
|
hamlib
|
|
|
|
qtkeychain
|
2024-09-24 15:50:49 +00:00
|
|
|
] ++ (lib.optionals stdenv.hostPlatform.isDarwin [
|
2023-11-25 01:37:27 +00:00
|
|
|
cups
|
|
|
|
]);
|
2023-11-19 01:10:06 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
wrapQtAppsHook
|
|
|
|
qmake
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Amateur radio logbook software";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "qlog";
|
2023-11-19 01:10:06 +00:00
|
|
|
license = with licenses; [ gpl3Only ];
|
|
|
|
homepage = "https://github.com/foldynl/QLog";
|
2023-11-26 01:25:58 +00:00
|
|
|
maintainers = with maintainers; [ oliver-koss mkg20001 ];
|
2023-11-19 01:10:06 +00:00
|
|
|
platforms = with platforms; unix;
|
|
|
|
};
|
|
|
|
}
|