nixpkgs/pkgs/by-name/xs/xspim/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

59 lines
1.2 KiB
Nix

{ lib, stdenv, fetchsvn, imake, bison, flex, xorg }:
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 = [
xorg.libICE
xorg.libSM
xorg.libX11
xorg.libXaw
xorg.libXext
xorg.libXmu
xorg.libXpm
xorg.libXt
];
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 = "MIPS32 simulator";
homepage = "https://spimsimulator.sourceforge.net/";
license = licenses.bsdOriginal;
maintainers = with maintainers; [ emilytrau ];
platforms = platforms.linux;
};
}