mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #332064 from otavio/renode-fix
renode: move to linux-dotnet build, renode-unstable: 1.15.1+20240627git66a08265a -> 1.15.1+20240801git19eb5fb22
This commit is contained in:
commit
06aa9d05cd
2 changed files with 28 additions and 22 deletions
|
@ -5,11 +5,11 @@
|
|||
|
||||
renode.overrideAttrs (finalAttrs: _: {
|
||||
pname = "renode-unstable";
|
||||
version = "1.15.1+20240716gita55a3d050";
|
||||
version = "1.15.1+20240801git19eb5fb22";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://builds.renode.io/renode-${finalAttrs.version}.linux-portable.tar.gz";
|
||||
hash = "sha256-cYK/PNXy+G6Cg6oY1U13MX03d2r0hwKVMp9f3LqpTd0=";
|
||||
url = "https://builds.renode.io/renode-${finalAttrs.version}.linux-dotnet.tar.gz";
|
||||
hash = "sha256-dIyMQtFXvHivlzC+Y3TrWsN81/cETKTaucZY5r/x5rU=";
|
||||
};
|
||||
|
||||
passthru.updateScript =
|
||||
|
@ -23,9 +23,9 @@ renode.overrideAttrs (finalAttrs: _: {
|
|||
latestVersion=$(
|
||||
curl -sS https://builds.renode.io \
|
||||
| pup 'a text{}' \
|
||||
| egrep 'renode-${versionRegex}\.linux-portable\.tar\.gz' \
|
||||
| egrep 'renode-${versionRegex}\.linux-dotnet\.tar\.gz' \
|
||||
| head -n1 \
|
||||
| sed -e 's,renode-\(.*\)\.linux-portable\.tar\.gz,\1,g'
|
||||
| sed -e 's,renode-\(.*\)\.linux-dotnet\.tar\.gz,\1,g'
|
||||
)
|
||||
|
||||
update-source-version ${finalAttrs.pname} "$latestVersion" \
|
||||
|
|
|
@ -7,9 +7,10 @@
|
|||
, nix-update-script
|
||||
, glibcLocales
|
||||
, python3Packages
|
||||
, gtk-sharp-2_0
|
||||
, gtk2-x11
|
||||
, screen
|
||||
, dotnetCorePackages
|
||||
, gtk-sharp-3_0
|
||||
, gtk3-x11
|
||||
, dconf
|
||||
}:
|
||||
|
||||
let
|
||||
|
@ -18,6 +19,13 @@ let
|
|||
psutil
|
||||
pyyaml
|
||||
requests
|
||||
tkinter
|
||||
|
||||
# from tools/csv2resd/requirements.txt
|
||||
construct
|
||||
|
||||
# from tools/execution_tracer/requirements.txt
|
||||
pyelftools
|
||||
|
||||
(robotframework.overrideDerivation (oldAttrs: {
|
||||
src = fetchFromGitHub {
|
||||
|
@ -34,8 +42,8 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
version = "1.15.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/renode/renode/releases/download/v${finalAttrs.version}/renode-${finalAttrs.version}.linux-portable.tar.gz";
|
||||
hash = "sha256-W+JtyaXcYZD+iaVEFX6eatxV3/Vr4aZrsCLm1Aj+ISs=";
|
||||
url = "https://github.com/renode/renode/releases/download/v${finalAttrs.version}/renode-${finalAttrs.version}.linux-dotnet.tar.gz";
|
||||
hash = "sha256-NrbdkHxZ5g4dhmkhOIWTSxuY3GA1h1FM5JkWVPuQjjc=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
@ -44,9 +52,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
gtk2-x11
|
||||
gtk-sharp-2_0
|
||||
screen
|
||||
gtk-sharp-3_0
|
||||
];
|
||||
|
||||
strictDeps = true;
|
||||
|
@ -58,17 +64,18 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
|
||||
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 PATH : "$out/libexec/renode:${lib.makeBinPath [ dotnetCorePackages.runtime_8_0 ]}" \
|
||||
--prefix GIO_EXTRA_MODULES : "${lib.getLib dconf}/lib/gio/modules" \
|
||||
--suffix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ gtk3-x11 ]}" \
|
||||
--prefix PYTHONPATH : "${pythonLibs}" \
|
||||
--set LOCALE_ARCHIVE "${glibcLocales}/lib/locale/locale-archive"
|
||||
makeWrapper "$out/libexec/renode/renode-test" "$out/bin/renode-test" \
|
||||
--prefix PATH : "$out/libexec/renode:${lib.makeBinPath [ dotnetCorePackages.runtime_8_0 ]}" \
|
||||
--prefix GIO_EXTRA_MODULES : "${lib.getLib dconf}/lib/gio/modules" \
|
||||
--suffix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ gtk3-x11 ]}" \
|
||||
--prefix PYTHONPATH : "${pythonLibs}" \
|
||||
--suffix LD_LIBRARY_PATH : "${gtk2-x11}/lib" \
|
||||
--set LOCALE_ARCHIVE "${glibcLocales}/lib/locale/locale-archive"
|
||||
|
||||
substituteInPlace "$out/libexec/renode/renode-test" \
|
||||
|
@ -82,7 +89,6 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
meta = {
|
||||
description = "Virtual development framework for complex embedded systems";
|
||||
homepage = "https://renode.io";
|
||||
changelog = "https://github.com/renode/renode/blob/v${finalAttrs.version}/CHANGELOG.rst";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ otavio ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
|
|
Loading…
Reference in a new issue