35 lines
833 B
Nix
35 lines
833 B
Nix
{ lib
|
|
, python3
|
|
, fetchFromGitHub
|
|
, unstableGitUpdater
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication {
|
|
pname = "renode-dts2repl";
|
|
version = "unstable-2024-02-29";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "antmicro";
|
|
repo = "dts2repl";
|
|
rev = "a53f2f01039a462bdd7322d1fb315edd95033b6d";
|
|
hash = "sha256-DsHNS9pZu3ZWM3teG3pUi0EM+8znmCPTSGuzGmJ4IgU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
python3.pkgs.setuptools
|
|
python3.pkgs.wheel
|
|
];
|
|
|
|
pythonImportsCheck = [ "dts2repl" ];
|
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
meta = with lib; {
|
|
description = "A 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";
|
|
};
|
|
}
|