2024-01-02 11:29:13 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2024-04-21 15:54:59 +00:00
|
|
|
, fetchFromGitHub
|
2024-01-02 11:29:13 +00:00
|
|
|
, fetchurl
|
|
|
|
, autoPatchelfHook
|
|
|
|
, makeWrapper
|
2024-04-21 15:54:59 +00:00
|
|
|
, nix-update-script
|
2024-01-02 11:29:13 +00:00
|
|
|
, glibcLocales
|
|
|
|
, python3Packages
|
|
|
|
, gtk-sharp-2_0
|
|
|
|
, gtk2-x11
|
|
|
|
, screen
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pythonLibs = with python3Packages; makePythonPath [
|
|
|
|
construct
|
|
|
|
psutil
|
|
|
|
pyyaml
|
|
|
|
requests
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
(robotframework.overrideDerivation (oldAttrs: {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "robotframework";
|
|
|
|
repo = "robotframework";
|
2024-06-24 18:47:55 +00:00
|
|
|
rev = "v6.1";
|
|
|
|
hash = "sha256-l1VupBKi52UWqJMisT2CVnXph3fGxB63mBVvYdM1NWE=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
}))
|
2024-01-02 11:29:13 +00:00
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "renode";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "1.15.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-04-21 15:54:59 +00:00
|
|
|
url = "https://github.com/renode/renode/releases/download/v${finalAttrs.version}/renode-${finalAttrs.version}.linux-portable.tar.gz";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-W+JtyaXcYZD+iaVEFX6eatxV3/Vr4aZrsCLm1Aj+ISs=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoPatchelfHook
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
gtk2-x11
|
|
|
|
gtk-sharp-2_0
|
|
|
|
screen
|
|
|
|
];
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/{bin,libexec/renode}
|
|
|
|
|
|
|
|
mv * $out/libexec/renode
|
|
|
|
mv .renode-root $out/libexec/renode
|
|
|
|
chmod +x $out/libexec/renode/*.so
|
|
|
|
|
|
|
|
makeWrapper "$out/libexec/renode/renode" "$out/bin/renode" \
|
|
|
|
--prefix PATH : "$out/libexec/renode" \
|
|
|
|
--suffix LD_LIBRARY_PATH : "${gtk2-x11}/lib" \
|
|
|
|
--set LOCALE_ARCHIVE "${glibcLocales}/lib/locale/locale-archive"
|
|
|
|
|
|
|
|
makeWrapper "$out/libexec/renode/renode-test" "$out/bin/renode-test" \
|
|
|
|
--prefix PATH : "$out/libexec/renode" \
|
|
|
|
--prefix PYTHONPATH : "${pythonLibs}" \
|
|
|
|
--suffix LD_LIBRARY_PATH : "${gtk2-x11}/lib" \
|
|
|
|
--set LOCALE_ARCHIVE "${glibcLocales}/lib/locale/locale-archive"
|
|
|
|
|
|
|
|
substituteInPlace "$out/libexec/renode/renode-test" \
|
|
|
|
--replace '$PYTHON_RUNNER' '${python3Packages.python}/bin/python3'
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Virtual development framework for complex embedded systems";
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "https://renode.io";
|
2024-01-02 11:29:13 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ otavio ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
})
|