1 { lib, stdenv, fetchsvn, imake, bison, flex, xorg }:
3 stdenv.mkDerivation rec {
8 url = "https://svn.code.sf.net/p/spimsimulator/code/";
10 sha256 = "1kazfgrbmi4xq7nrkmnqw1280rhdyc1hmr82flrsa3g1b1rlmj1s";
13 nativeBuildInputs = [ imake bison flex ];
31 "BIN_DIR=${placeholder "out"}/bin"
32 "EXCEPTION_DIR=${placeholder "out"}/share/spim"
33 "MAN_DIR=${placeholder "out"}/share/man/man1"
45 mkdir -p $out/share/spim
46 install -D ../spim/spim $out/bin/spim
47 install -D ../Documentation/spim.man $out/share/man/man1/spim.1
48 install -D ../Documentation/xspim.man $out/share/man/man1/xspim.1
52 description = "A MIPS32 simulator";
53 homepage = "https://spimsimulator.sourceforge.net/";
54 license = licenses.bsdOriginal;
55 maintainers = with maintainers; [ emilytrau ];
56 platforms = platforms.linux;