Merge pull request #253716 from felixalbrigtsen/patch-ripes-darwin
ripes: fix darwin build
This commit is contained in:
commit
0e95d29bf3
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user