mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 11:23:29 +00:00
74 lines
1.3 KiB
Nix
74 lines
1.3 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 = lib.teams.ngi.members;
|
|
mainProgram = "naja_edit";
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|