Skip to content

Commit

Permalink
Merge pull request NixOS#131417 from angustrau/xspim
Browse files Browse the repository at this point in the history
xspim: init at 9.1.22
  • Loading branch information
fpletz authored Jul 28, 2021
2 parents 3dd4a9e + 51252b8 commit 842e542
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
49 changes: 49 additions & 0 deletions pkgs/development/tools/misc/xspim/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{ lib, stdenv, fetchsvn, imake, bison, flex, xlibsWrapper, libXaw, libXpm, ... }:

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 ];
buildInputs = [ xlibsWrapper libXaw libXpm ];

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";
homepage = "http://spimsimulator.sourceforge.net/";
license = licenses.bsdOriginal;
maintainers = with maintainers; [ angustrau ];
platforms = platforms.linux;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10048,6 +10048,8 @@ in

xsensors = callPackage ../os-specific/linux/xsensors { };

xspim = callPackage ../development/tools/misc/xspim { };

xcruiser = callPackage ../applications/misc/xcruiser { };

xwallpaper = callPackage ../tools/X11/xwallpaper { };
Expand Down

0 comments on commit 842e542

Please sign in to comment.