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
51 lines
940 B
Nix
51 lines
940 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
protobuf,
|
|
icu,
|
|
csdr,
|
|
codecserver,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "digiham";
|
|
version = "0.6.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jketterl";
|
|
repo = "digiham";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-v7qp6Lv94Ec0yzHsc08YDfE5OU54nglosRLWb98yDiQ=";
|
|
};
|
|
|
|
patches = [
|
|
# libicu headers require C++ 17, remove `set(CMAKE_CXX_STANDARD 11)`
|
|
./cpp-17.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
buildInputs = [
|
|
codecserver
|
|
protobuf
|
|
csdr
|
|
icu
|
|
];
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
versionCheckProgram = "${placeholder "out"}/bin/dmr_decoder";
|
|
doInstallCheck = true;
|
|
|
|
meta = {
|
|
homepage = "https://github.com/jketterl/digiham";
|
|
description = "Tools for decoding digital ham communication";
|
|
license = lib.licenses.gpl3Only;
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|