2021-08-05 21:33:18 +00:00
|
|
|
{ lib, stdenv, fetchsvn, wrapQtAppsHook, qtbase, qttools, qmake, bison, flex, ... }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "qtspim";
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "9.1.23";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
src = fetchsvn {
|
|
|
|
url = "https://svn.code.sf.net/p/spimsimulator/code/";
|
2022-03-05 16:20:37 +00:00
|
|
|
rev = "r749";
|
|
|
|
sha256 = "0iazl7mlcilrdbw8gb98v868a8ldw2lmkn1xs8hnfvr93l6aj0rp";
|
2021-08-05 21:33:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
cd QtSpim
|
|
|
|
|
|
|
|
substituteInPlace QtSpim.pro --replace /usr/lib/qtspim/lib $out/lib
|
|
|
|
substituteInPlace menu.cpp \
|
|
|
|
--replace /usr/lib/qtspim/bin/assistant ${qttools.dev}/bin/assistant \
|
|
|
|
--replace /usr/lib/qtspim/help/qtspim.qhc $out/share/help/qtspim.qhc
|
|
|
|
substituteInPlace ../Setup/qtspim_debian_deployment/qtspim.desktop \
|
|
|
|
--replace /usr/bin/qtspim qtspim \
|
|
|
|
--replace /usr/lib/qtspim/qtspim.png qtspim
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ wrapQtAppsHook qttools qmake bison flex ];
|
|
|
|
buildInputs = [ qtbase ];
|
|
|
|
QT_PLUGIN_PATH = "${qtbase}/${qtbase.qtPluginPrefix}";
|
|
|
|
|
|
|
|
qmakeFlags = [
|
|
|
|
"QtSpim.pro"
|
|
|
|
"-spec"
|
|
|
|
"linux-g++"
|
|
|
|
"CONFIG+=release"
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -D QtSpim $out/bin/qtspim
|
|
|
|
install -D ../Setup/qtspim_debian_deployment/copyright $out/share/licenses/qtspim/copyright
|
|
|
|
install -D ../Setup/qtspim_debian_deployment/qtspim.desktop $out/share/applications/qtspim.desktop
|
|
|
|
install -D ../Setup/NewIcon48x48.png $out/share/icons/hicolor/48x48/apps/qtspim.png
|
|
|
|
install -D ../Setup/NewIcon256x256.png $out/share/icons/hicolor/256x256/apps/qtspim.png
|
|
|
|
cp -r help $out/share/help
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "New user interface for spim, a MIPS simulator";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "qtspim";
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://spimsimulator.sourceforge.net/";
|
2021-08-05 21:33:18 +00:00
|
|
|
license = licenses.bsdOriginal;
|
2022-02-20 05:27:41 +00:00
|
|
|
maintainers = with maintainers; [ emilytrau ];
|
2021-08-05 21:33:18 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|