36 lines
833 B
Nix
36 lines
833 B
Nix
|
{ lib
|
||
|
, python3
|
||
|
, fetchFromGitHub
|
||
|
, unstableGitUpdater
|
||
|
}:
|
||
|
|
||
|
python3.pkgs.buildPythonApplication {
|
||
|
pname = "renode-dts2repl";
|
||
|
version = "unstable-2024-01-09";
|
||
|
pyproject = true;
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "antmicro";
|
||
|
repo = "dts2repl";
|
||
|
rev = "429ebc65e0bcbd967ccfe1f9a970abd5b5b6258f";
|
||
|
hash = "sha256-/62KAVIMCM6VNhW4rDqnKXOFrAO0cHpybGS3lconCqY=";
|
||
|
};
|
||
|
|
||
|
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";
|
||
|
};
|
||
|
}
|