1 { lib, stdenv, fetchsvn, wrapQtAppsHook, qtbase, qttools, qmake, bison, flex, ... }:
2 stdenv.mkDerivation rec {
7 url = "https://svn.code.sf.net/p/spimsimulator/code/";
9 sha256 = "0iazl7mlcilrdbw8gb98v868a8ldw2lmkn1xs8hnfvr93l6aj0rp";
15 substituteInPlace QtSpim.pro --replace /usr/lib/qtspim/lib $out/lib
16 substituteInPlace menu.cpp \
17 --replace /usr/lib/qtspim/bin/assistant ${qttools.dev}/bin/assistant \
18 --replace /usr/lib/qtspim/help/qtspim.qhc $out/share/help/qtspim.qhc
19 substituteInPlace ../Setup/qtspim_debian_deployment/qtspim.desktop \
20 --replace /usr/bin/qtspim qtspim \
21 --replace /usr/lib/qtspim/qtspim.png qtspim
24 nativeBuildInputs = [ wrapQtAppsHook qttools qmake bison flex ];
25 buildInputs = [ qtbase ];
26 QT_PLUGIN_PATH = "${qtbase}/${qtbase.qtPluginPrefix}";
38 install -D QtSpim $out/bin/qtspim
39 install -D ../Setup/qtspim_debian_deployment/copyright $out/share/licenses/qtspim/copyright
40 install -D ../Setup/qtspim_debian_deployment/qtspim.desktop $out/share/applications/qtspim.desktop
41 install -D ../Setup/NewIcon48x48.png $out/share/icons/hicolor/48x48/apps/qtspim.png
42 install -D ../Setup/NewIcon256x256.png $out/share/icons/hicolor/256x256/apps/qtspim.png
43 cp -r help $out/share/help
49 description = "New user interface for spim, a MIPS simulator";
50 mainProgram = "qtspim";
51 homepage = "https://spimsimulator.sourceforge.net/";
52 license = licenses.bsdOriginal;
53 maintainers = with maintainers; [ emilytrau ];
54 platforms = platforms.linux;