504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
48 lines
1,016 B
Nix
48 lines
1,016 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, python3
|
|
, capnproto
|
|
, gtest
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "UHDM";
|
|
# When updating this package, also consider updating science/logic/surelog
|
|
version = "1.80";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "chipsalliance";
|
|
repo = finalAttrs.pname;
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-/aWiN+DPlIjI89u5kx6QoyrGD4DOJTHXxIZ0qHJNDls=";
|
|
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 = "make test";
|
|
|
|
meta = {
|
|
description = "Universal Hardware Data Model";
|
|
homepage = "https://github.com/chipsalliance/UHDM";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ matthuszagh ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|