nixpkgs/pkgs/by-name/st/stalin/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

47 lines
1.2 KiB
Nix

{ fetchurl, lib, stdenv, ncompress, libX11 }:
stdenv.mkDerivation rec {
pname = "stalin";
version = "0.11";
src = fetchurl {
url = "ftp://ftp.ecn.purdue.edu/qobi/stalin.tar.Z";
sha256 = "0lz8riccpigdixwf6dswwva6s4kxaz3dzxhkqhcxgwmffy30vw8s";
};
buildInputs = [ ncompress libX11 ];
buildPhase = "./build ";
installPhase = ''
mkdir -p "$out/bin"
cp stalin "$out/bin"
mkdir -p "$out/man/man1"
cp stalin.1 "$out/man/man1"
mkdir -p "$out/share/emacs/site-lisp"
cp stalin.el "$out/share/emacs/site-lisp"
mkdir -p "$out/doc/stalin-${version}"
cp README "$out/doc/stalin-${version}"
mkdir -p "$out/share/stalin-${version}/include"
cp "include/"* "$out/share/stalin-${version}/include"
substituteInPlace "$out/bin/stalin" \
--replace "$PWD/include/stalin" "$out/share/stalin-${version}/include/stalin"
substituteInPlace "$out/bin/stalin" \
--replace "$PWD/include" "$out/share/stalin-${version}/include"
'';
meta = {
homepage = "http://www.ece.purdue.edu/~qobi/software.html";
license = lib.licenses.gpl2Plus;
description = "Optimizing Scheme compiler";
maintainers = [ ];
platforms = ["i686-linux"]; # doesn't want to work on 64-bit platforms
};
}