mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
Merge pull request #330385 from eljamm/naja
naja: init at 0-unstable-2024-07-21
This commit is contained in:
commit
3b821b4b16
39
pkgs/by-name/li/libdwarf-lite/package.nix
Normal file
39
pkgs/by-name/li/libdwarf-lite/package.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
cmake,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "libdwarf-lite";
|
||||
version = "0.10.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jeremy-rifkin";
|
||||
repo = "libdwarf-lite";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-ouhYapiqBFPJwoUIyiuEtsezF2wR63WZL7VwvnDExoU=";
|
||||
};
|
||||
|
||||
outputs = [
|
||||
"dev"
|
||||
"lib"
|
||||
"out"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
cmakeFlags = [
|
||||
(lib.cmakeBool "BUILD_DWARFDUMP" false)
|
||||
(lib.cmakeBool "PIC_ALWAYS" true)
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Minimal libdwarf mirror for faster cloning and configuration";
|
||||
homepage = "https://github.com/jeremy-rifkin/libdwarf-lite";
|
||||
license = lib.licenses.lgpl21Only;
|
||||
maintainers = [ ];
|
||||
mainProgram = "libdwarf-lite";
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
})
|
73
pkgs/by-name/na/naja/package.nix
Normal file
73
pkgs/by-name/na/naja/package.nix
Normal file
|
@ -0,0 +1,73 @@
|
|||
{
|
||||
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-07-21";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "najaeda";
|
||||
repo = "naja";
|
||||
rev = "8c068f3bd1bbd57b851547f191a58a375fd35cda";
|
||||
hash = "sha256-aUYPJGr4D5n92fp0namPT6I/gMRZoF7YHnB7GoRzwYI=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
outputs = [
|
||||
"dev"
|
||||
"lib"
|
||||
"out"
|
||||
];
|
||||
|
||||
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)
|
||||
];
|
||||
|
||||
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;
|
||||
# "aligned deallocation function of type [...] is only available on macOS 10.13 or newer" even with 11.0 SDK
|
||||
broken = stdenv.hostPlatform.isDarwin;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue