mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
jasterix: init at 0.1.4
This commit is contained in:
parent
1c60fcf543
commit
10ea2a71e2
1 changed files with 70 additions and 0 deletions
70
pkgs/by-name/ja/jasterix/package.nix
Normal file
70
pkgs/by-name/ja/jasterix/package.nix
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
{
|
||||
applyPatches,
|
||||
boost,
|
||||
catch2_3,
|
||||
cmake,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
libarchive,
|
||||
libpcap,
|
||||
log4cpp,
|
||||
onetbb,
|
||||
openssl,
|
||||
stdenv,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "jasterix";
|
||||
version = "0.1.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "OpenATSGmbH";
|
||||
repo = "jASTERIX";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-df5tByZwtQLdV0UlSo1WkgyoF3hReU/mN74V2WL6zoI=";
|
||||
};
|
||||
|
||||
# Disable boost-stacktrace_backtrace, which is an optional dependency and not yet available in Nix.
|
||||
postPatch = ''
|
||||
sed -i 's/\(find_package .*\) stacktrace_backtrace/\1/' CMakeLists.txt
|
||||
sed -i 's/BOOST_STACKTRACE_USE_BACKTRACE/#BOOST_STACKTRACE_USE_BACKTRACE/' CMakeLists.txt
|
||||
sed -i 's/BOOST_STACKTRACE_LINK/#BOOST_STACKTRACE_LINK/' CMakeLists.txt
|
||||
'';
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
"dev"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
cmakeFlags = [
|
||||
(lib.cmakeBool "BUILD_SHARED" (!stdenv.hostPlatform.isStatic))
|
||||
(lib.cmakeBool "BUILD_STATIC" stdenv.hostPlatform.isStatic)
|
||||
(lib.cmakeBool "WITH_UNIT_TESTS" finalAttrs.doCheck)
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
boost.dev
|
||||
catch2_3
|
||||
libarchive.dev
|
||||
libpcap
|
||||
log4cpp
|
||||
onetbb.dev
|
||||
openssl.dev
|
||||
];
|
||||
|
||||
doCheck = false; # The tests require ASTERIX files that are not publicly provided
|
||||
|
||||
strictDeps = true;
|
||||
__structuredAttrs = true;
|
||||
|
||||
meta = {
|
||||
description = "C++ Library for EUROCONTROL's ASTERIX to JSON conversion";
|
||||
homepage = "https://github.com/OpenATSGmbH/jASTERIX";
|
||||
changelog = "https://github.com/OpenATSGmbH/jASTERIX/releases/tag/v${finalAttrs.src.tag}";
|
||||
maintainers = [ lib.maintainers.vog ];
|
||||
license = lib.licenses.gpl3Plus;
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue