36 lines
839 B
Nix
36 lines
839 B
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchFromGitHub,
|
|
unstableGitUpdater,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication {
|
|
pname = "renode-dts2repl";
|
|
version = "0-unstable-2024-11-27";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "antmicro";
|
|
repo = "dts2repl";
|
|
rev = "fd2d207bf88d5a97256d858cd01cd46159f404b2";
|
|
hash = "sha256-+4WEhmuPGPtHBIoG87b+B2sxn+38YD3gtFC7R1+Y1/4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
python3.pkgs.setuptools
|
|
python3.pkgs.wheel
|
|
];
|
|
|
|
pythonImportsCheck = [ "dts2repl" ];
|
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
meta = with lib; {
|
|
description = "Tool for converting device tree sources into Renode's .repl files";
|
|
homepage = "https://github.com/antmicro/dts2repl";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ otavio ];
|
|
mainProgram = "dts2repl";
|
|
};
|
|
}
|