Files
nixpkgs/pkgs/by-name/qr/qrq/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

48 lines
973 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
ncurses,
pulseaudio,
}:
stdenv.mkDerivation rec {
pname = "qrq";
version = "0.3.5";
src = fetchFromGitHub {
owner = "dj1yfk";
repo = "qrq";
rev = "qrq-${version}";
hash = "sha256-uuETGbv5qm0Z+45+kK66SBHhQ0Puu6I5z+TWIh3iR2g=";
};
sourceRoot = "${src.name}/src";
buildInputs = [
ncurses
pulseaudio
];
makeFlags = [
"BUILD_INFO=nix"
"DESTDIR=${placeholder "out"}"
];
postPatch = ''
substituteInPlace qrq.c \
--replace-fail '[80]' '[4000]' \
--replace-fail '80,' '4000,'
'';
meta = {
description = "High Speed Morse trainer - mirror of https://git.fkurz.net/dj1yfk/qrq";
homepage = "https://github.com/dj1yfk/qrq";
changelog = "https://github.com/dj1yfk/qrq/blob/${src.rev}/ChangeLog";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ pkharvey ];
mainProgram = "qrq";
platforms = lib.platforms.all;
};
}