2022-10-30 15:09:59 +00:00
|
|
|
{ lib, stdenv, fetchsvn, imake, bison, flex, xorg }:
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xspim";
|
|
|
|
version = "9.1.22";
|
|
|
|
|
|
|
|
src = fetchsvn {
|
|
|
|
url = "https://svn.code.sf.net/p/spimsimulator/code/";
|
|
|
|
rev = "r739";
|
|
|
|
sha256 = "1kazfgrbmi4xq7nrkmnqw1280rhdyc1hmr82flrsa3g1b1rlmj1s";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ imake bison flex ];
|
2022-10-30 15:09:59 +00:00
|
|
|
buildInputs = [
|
|
|
|
xorg.libICE
|
|
|
|
xorg.libSM
|
|
|
|
xorg.libX11
|
|
|
|
xorg.libXaw
|
|
|
|
xorg.libXext
|
|
|
|
xorg.libXmu
|
|
|
|
xorg.libXpm
|
|
|
|
xorg.libXt
|
|
|
|
];
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cd xspim
|
|
|
|
xmkmf
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"BIN_DIR=${placeholder "out"}/bin"
|
|
|
|
"EXCEPTION_DIR=${placeholder "out"}/share/spim"
|
|
|
|
"MAN_DIR=${placeholder "out"}/share/man/man1"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
preCheck = ''
|
|
|
|
pushd ../spim
|
|
|
|
'';
|
|
|
|
postCheck = ''
|
|
|
|
popd
|
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/share/spim
|
|
|
|
install -D ../spim/spim $out/bin/spim
|
|
|
|
install -D ../Documentation/spim.man $out/share/man/man1/spim.1
|
|
|
|
install -D ../Documentation/xspim.man $out/share/man/man1/xspim.1
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A MIPS32 simulator";
|
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;
|
|
|
|
};
|
|
|
|
}
|