Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
python3,
|
|
capnproto,
|
|
gtest,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "uhdm";
|
|
# When updating this package, also consider updating surelog
|
|
version = "1.86";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "chipsalliance";
|
|
repo = "UHDM";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-f7QJJEP/jL69DdMJOL5WQdDZU+kBnnLi2eX37AoaXls=";
|
|
fetchSubmodules = false; # we use all dependencies from nix
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
(python3.withPackages (p: with p; [ orderedmultidict ]))
|
|
gtest
|
|
];
|
|
|
|
buildInputs = [
|
|
capnproto
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DUHDM_USE_HOST_GTEST=On"
|
|
"-DUHDM_USE_HOST_CAPNP=On"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
make test
|
|
|
|
runHook postCheck
|
|
'';
|
|
|
|
meta = {
|
|
description = "Universal Hardware Data Model";
|
|
homepage = "https://github.com/chipsalliance/UHDM";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [
|
|
matthuszagh
|
|
hzeller
|
|
];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|