Files
nixpkgs/pkgs/by-name/ql/qlog/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

62 lines
1.2 KiB
Nix

{
fetchFromGitHub,
stdenv,
lib,
cups,
hamlib,
pkg-config,
qt6,
qt6Packages,
}:
stdenv.mkDerivation rec {
pname = "qlog";
version = "0.46.1";
src = fetchFromGitHub {
owner = "foldynl";
repo = "QLog";
tag = "v${version}";
hash = "sha256-0oMkD13M81DZY1yHW6mPWr7QMuCsxSqGYw/TMghDKd0=";
fetchSubmodules = true;
};
env.NIX_LDFLAGS = "-lhamlib";
buildInputs = [
hamlib
qt6.qtbase
qt6.qtcharts
qt6.qtserialport
qt6.qtwebchannel
qt6.qtwebengine
qt6Packages.qtkeychain
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
cups
];
nativeBuildInputs = [
pkg-config
qt6.qmake
qt6.wrapQtAppsHook
];
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
mkdir -p $out/{Applications,bin}
mv $out/{qlog.app,Applications}
ln -s $out/Applications/qlog.app/Contents/MacOS/qlog $out/bin/qlog
'';
meta = {
description = "Amateur radio logbook software";
mainProgram = "qlog";
license = with lib.licenses; [ gpl3Only ];
homepage = "https://github.com/foldynl/QLog";
maintainers = with lib.maintainers; [
oliver-koss
];
platforms = with lib.platforms; unix;
};
}