mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
57 lines
982 B
Nix
57 lines
982 B
Nix
{ fetchFromGitHub
|
|
, qtbase
|
|
, stdenv
|
|
, lib
|
|
, wrapQtAppsHook
|
|
, qmake
|
|
, qtcharts
|
|
, qtwebengine
|
|
, qtserialport
|
|
, qtwebchannel
|
|
, hamlib
|
|
, qtkeychain
|
|
, pkg-config
|
|
, cups
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "qlog";
|
|
version = "0.31.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "foldynl";
|
|
repo = "QLog";
|
|
rev = "v${version}";
|
|
hash = "sha256-tNTPT5AIQhKDyB+Pss+VdNeORcsHa+OSr15wLqID8PA=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
env.NIX_LDFLAGS = "-lhamlib";
|
|
|
|
buildInputs = [
|
|
qtbase
|
|
qtcharts
|
|
qtwebengine
|
|
qtserialport
|
|
qtwebchannel
|
|
hamlib
|
|
qtkeychain
|
|
] ++ (lib.optionals stdenv.isDarwin [
|
|
cups
|
|
]);
|
|
|
|
nativeBuildInputs = [
|
|
wrapQtAppsHook
|
|
qmake
|
|
pkg-config
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Amateur radio logbook software";
|
|
license = with licenses; [ gpl3Only ];
|
|
homepage = "https://github.com/foldynl/QLog";
|
|
maintainers = with maintainers; [ oliver-koss mkg20001 ];
|
|
platforms = with platforms; unix;
|
|
};
|
|
}
|