mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
83 lines
2.0 KiB
Nix
83 lines
2.0 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 ];
|
|
};
|
|
}
|