Merge pull request #253716 from felixalbrigtsen/patch-ripes-darwin

ripes: fix darwin build
This commit is contained in:
Weijia Wang 2023-09-07 00:46:26 +02:00 committed by GitHub
commit 0e95d29bf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,7 @@
, wrapQtAppsHook
, cmake
, python3
, stdenv
}:
mkDerivation rec {
@ -36,15 +37,23 @@ mkDerivation rec {
];
installPhase = ''
runHook preInstall
'' + lib.optionalString stdenv.isDarwin ''
mkdir -p $out/Applications
cp -r Ripes.app $out/Applications/
makeBinaryWrapper $out/Applications/Ripes.app/Contents/MacOS/Ripes $out/bin/Ripes
'' + lib.optionalString stdenv.isLinux ''
install -D Ripes $out/bin/Ripes
'' + ''
cp -r ${src}/appdir/usr/share $out/share
runHook postInstall
'';
meta = with lib; {
description = "A graphical processor simulator and assembly editor for the RISC-V ISA";
homepage = "https://github.com/mortbopet/Ripes";
license = licenses.mit;
platforms = platforms.linux;
platforms = platforms.unix;
maintainers = with maintainers; [ rewine ];
};
}