mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
571c71e6f7
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.
65 lines
1.9 KiB
Nix
65 lines
1.9 KiB
Nix
{ lib
|
|
, fetchurl
|
|
, stdenv
|
|
, bzip2
|
|
, gdbm
|
|
, gnum4
|
|
, gzip
|
|
, libffi
|
|
, openssl
|
|
, readline
|
|
, sqlite
|
|
, tcl
|
|
, xz
|
|
, zlib
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "snobol4";
|
|
version = "2.3.2";
|
|
|
|
src = fetchurl {
|
|
urls = [
|
|
"https://ftp.regressive.org/snobol4/snobol4-${version}.tar.gz"
|
|
# fallback for when the current version is moved to the old folder
|
|
"https://ftp.regressive.org/snobol4/old/snobol4-${version}.tar.gz"
|
|
];
|
|
hash = "sha256-QeMB6d0YDXARfWTzaU+d1U+e2QmjajJYfIvthatorBU=";
|
|
};
|
|
|
|
outputs = [ "out" "man" "doc" ];
|
|
|
|
# gzip used by Makefile to compress man pages
|
|
nativeBuildInputs = [ gnum4 gzip ];
|
|
# enable all features (undocumented, based on manual review of configure script)
|
|
buildInputs = [ bzip2 libffi openssl readline sqlite tcl xz zlib ]
|
|
# ndbm compat library
|
|
++ lib.optional stdenv.hostPlatform.isLinux gdbm;
|
|
configureFlags = lib.optional (tcl != null) "--with-tcl=${tcl}/lib/tclConfig.sh";
|
|
|
|
# INSTALL says "parallel make will fail"
|
|
enableParallelBuilding = false;
|
|
|
|
patches = [ ./fix-paths.patch ];
|
|
|
|
# configure does not support --sbindir and the likes (as introduced by multiple-outputs.sh)
|
|
# so man, doc outputs must be handled manually
|
|
preConfigurePhases = [ "prePreConfigurePhase" ];
|
|
prePreConfigurePhase = ''
|
|
preConfigureHooks="''${preConfigureHooks//_multioutConfig/}"
|
|
prependToVar configureFlags --mandir="$man"/share/man
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Macro Implementation of SNOBOL4 in C";
|
|
longDescription = ''
|
|
An open source port of Macro SNOBOL4 (The original Bell Telephone Labs implementation, written in SIL macros) by Phil Budne.
|
|
Supports full SNOBOL4 language plus SPITBOL, [Blocks](https://www.regressive.org/snobol4/blocks/) and other extensions.
|
|
'';
|
|
homepage = "https://www.regressive.org/snobol4/csnobol4/";
|
|
license = licenses.bsd2;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ xworld21 ];
|
|
};
|
|
}
|