depot/third_party/nixpkgs/pkgs/by-name/na/naja/package.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

75 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
bison,
boost,
capnproto,
doxygen,
flex,
libdwarf-lite,
pkg-config,
python3,
tbb_2021_11,
}:
stdenv.mkDerivation {
pname = "naja";
version = "0-unstable-2024-08-27";
src = fetchFromGitHub {
owner = "najaeda";
repo = "naja";
rev = "ca7a544d16abb31d6992e702ccbd97be3a644c08";
hash = "sha256-lmgXv2nmmjKph0Tf9ZvV3kQBtbiGXYA7jrE77cgM+KU=";
fetchSubmodules = true;
};
outputs = [
"out"
"lib"
"dev"
];
strictDeps = true;
nativeBuildInputs = [
bison
capnproto
cmake
doxygen
flex
pkg-config
python3
];
buildInputs = [
boost
capnproto # cmake modules
flex # include dir
libdwarf-lite
tbb_2021_11
];
cmakeFlags =
[
(lib.cmakeBool "CPPTRACE_USE_EXTERNAL_LIBDWARF" true)
(lib.cmakeBool "CPPTRACE_USE_EXTERNAL_ZSTD" true)
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
(lib.cmakeFeature "CMAKE_OSX_DEPLOYMENT_TARGET" "10.14") # For aligned allocation
];
doCheck = true;
meta = {
description = "Structural Netlist API (and more) for EDA post synthesis flow development";
homepage = "https://github.com/najaeda/naja";
license = lib.licenses.asl20;
maintainers = [
# maintained by the team working on NGI-supported software, no group for this yet
];
mainProgram = "naja_edit";
platforms = lib.platforms.all;
};
}