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-07-26 16:33:47 +00:00
|
|
|
version = "0.37.2";
|
2023-11-19 01:10:06 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "foldynl";
|
|
|
|
repo = "QLog";
|
|
|
|
rev = "v${version}";
|
2024-07-26 16:33:47 +00:00
|
|
|
hash = "sha256-cphbM9dl+Ls2i3H5QjOugW0nXqa9bp5LpcnE9ACjqWM=";
|
2023-11-19 01:10:06 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
env.NIX_LDFLAGS = "-lhamlib";
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
qtcharts
|
|
|
|
qtwebengine
|
|
|
|
qtserialport
|
|
|
|
qtwebchannel
|
|
|
|
hamlib
|
|
|
|
qtkeychain
|
2023-11-25 01:37:27 +00:00
|
|
|
] ++ (lib.optionals stdenv.isDarwin [
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|