depot/third_party/nixpkgs/pkgs/applications/science/logic/uhdm/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

47 lines
939 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, python3
, capnproto
, gtest
}:
stdenv.mkDerivation (finalAttrs: {
pname = "UHDM";
version = "1.74";
src = fetchFromGitHub {
owner = "chipsalliance";
repo = finalAttrs.pname;
rev = "v${finalAttrs.version}";
hash = "sha256-DiwLo/3RcXY+wG2+7aDx4p6UuQm/eNX/kG35TJzIbe0=";
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;
};
})