Merge pull request #212710 from nebulka1/rvvm
rvvm: init at 0.5-20230125.4de27d7
This commit is contained in:
commit
1364520531
3 changed files with 48 additions and 0 deletions
|
@ -10079,6 +10079,12 @@
|
|||
githubId = 137805;
|
||||
name = "Alexander Tsvyashchenko";
|
||||
};
|
||||
nebulka = {
|
||||
email = "arapun@proton.me";
|
||||
github = "nebulka1";
|
||||
githubId = 121920704;
|
||||
name = "Nebulka";
|
||||
};
|
||||
Necior = {
|
||||
email = "adrian@sadlocha.eu";
|
||||
github = "Necior";
|
||||
|
|
40
pkgs/applications/virtualization/rvvm/default.nix
Normal file
40
pkgs/applications/virtualization/rvvm/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ lib, stdenv, fetchFromGitHub, SDL_compat }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "rvvm";
|
||||
version = "unstable-2023-01-25";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "LekKit";
|
||||
repo = "RVVM";
|
||||
rev = "4de27d7083db34bd074b4f056d6eb3871ccf5c10";
|
||||
sha256 = "sha256-FjEcXfweL6FzA6iLxl9XnKaD4Fh/wZuRTJzZzHkc/B4=";
|
||||
};
|
||||
|
||||
buildInputs = [ SDL_compat ];
|
||||
|
||||
makeFlags =
|
||||
[ "BUILDDIR=out" "BINARY=rvvm" "USE_SDL=1" "GIT_COMMIT=${src.rev}" "all" "lib" ]
|
||||
# work around https://github.com/NixOS/nixpkgs/issues/19098
|
||||
++ lib.optional (stdenv.cc.isClang && stdenv.isDarwin) "CFLAGS=-fno-lto";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -d $out/{bin,lib,include/devices}
|
||||
install -m755 out/rvvm -t $out/bin
|
||||
install -m755 out/librvvm.{a,so} -t $out/lib
|
||||
install -m644 src/rvvmlib.h -t $out/include
|
||||
install -m644 src/devices/*.h -t $out/include/devices
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/LekKit/RVVM";
|
||||
description = "The RISC-V Virtual Machine";
|
||||
license = with licenses; [ gpl3 /* or */ mpl20 ];
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
maintainers = with maintainers; [ nebulka ];
|
||||
};
|
||||
}
|
|
@ -26355,6 +26355,8 @@ with pkgs;
|
|||
|
||||
rtw89-firmware = callPackage ../os-specific/linux/firmware/rtw89-firmware { };
|
||||
|
||||
rvvm = callPackage ../applications/virtualization/rvvm { };
|
||||
|
||||
s3ql = callPackage ../tools/backup/s3ql { };
|
||||
|
||||
sasutils = callPackage ../os-specific/linux/sasutils { };
|
||||
|
|
Loading…
Reference in a new issue