depot/third_party/nixpkgs/pkgs/applications/science/logic/uhdm/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

48 lines
1,006 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.83";
src = fetchFromGitHub {
owner = "chipsalliance";
repo = "UHDM";
rev = "v${finalAttrs.version}";
hash = "sha256-va8qAzsg589C6rLmG1uIMDr4X30qpBgRO1ZVKdEs5ok=";
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;
};
})