mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
dumpvdl2: init at 2.4.0 (#402481)
This commit is contained in:
55
pkgs/by-name/du/dumpvdl2/package.nix
Normal file
55
pkgs/by-name/du/dumpvdl2/package.nix
Normal file
@@ -0,0 +1,55 @@
|
||||
{
|
||||
stdenv,
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
versionCheckHook,
|
||||
cmake,
|
||||
pkg-config,
|
||||
glib,
|
||||
soapysdr,
|
||||
sdrplay,
|
||||
sdrplaySupport ? false,
|
||||
sqlite,
|
||||
zeromq,
|
||||
libacars,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "dumpvdl2";
|
||||
version = "2.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "szpajder";
|
||||
repo = "dumpvdl2";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-kb8FLVuG9tSZta8nmaKRCRZinF1yy4+NNxD5s7X82Wk=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
soapysdr
|
||||
sqlite
|
||||
zeromq
|
||||
libacars
|
||||
] ++ lib.optionals sdrplaySupport [ sdrplay ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
];
|
||||
|
||||
doInstallCheck = true;
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/szpajder/dumpvdl2";
|
||||
description = "VDL Mode 2 message decoder and protocol analyzer";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
platforms = with lib.platforms; linux ++ darwin;
|
||||
maintainers = [ lib.maintainers.mafo ];
|
||||
mainProgram = "dumpvdl2";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user