diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2021-07-28 21:43:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-28 21:43:39 +0200 |
commit | 842e5428b9e38b6055cdcec90c7fbdf7d2bf7628 (patch) | |
tree | 4a7dbbb77b2113b09321d1ef5add5bdfaabec2a2 /pkgs/development | |
parent | 3dd4a9eeec88cf9ad3460bb2dc9a8b5b66e29dd6 (diff) | |
parent | 51252b83d2011ab3607b898c50ba8d74d8cfc005 (diff) | |
download | nixpkgs-842e5428b9e38b6055cdcec90c7fbdf7d2bf7628.tar nixpkgs-842e5428b9e38b6055cdcec90c7fbdf7d2bf7628.tar.gz nixpkgs-842e5428b9e38b6055cdcec90c7fbdf7d2bf7628.tar.bz2 nixpkgs-842e5428b9e38b6055cdcec90c7fbdf7d2bf7628.tar.lz nixpkgs-842e5428b9e38b6055cdcec90c7fbdf7d2bf7628.tar.xz nixpkgs-842e5428b9e38b6055cdcec90c7fbdf7d2bf7628.tar.zst nixpkgs-842e5428b9e38b6055cdcec90c7fbdf7d2bf7628.zip |
Merge pull request #131417 from angustrau/xspim
xspim: init at 9.1.22
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/tools/misc/xspim/default.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/xspim/default.nix b/pkgs/development/tools/misc/xspim/default.nix new file mode 100644 index 00000000000..2e6e3e3eb10 --- /dev/null +++ b/pkgs/development/tools/misc/xspim/default.nix @@ -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; + }; +} |