nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 64 lines 2.0 kB view raw
1{ lib 2, fetchurl 3, stdenv 4, bzip2 5, gdbm 6, gnum4 7, gzip 8, libffi 9, openssl 10, readline 11, sqlite 12, tcl 13, xz 14, zlib 15}: 16 17stdenv.mkDerivation rec { 18 pname = "snobol4"; 19 version = "2.3.1"; 20 21 src = fetchurl { 22 urls = [ 23 "https://ftp.regressive.org/snobol4/snobol4-${version}.tar.gz" 24 # fallback for when the current version is moved to the old folder 25 "https://ftp.regressive.org/snobol4/old/snobol4-${version}.tar.gz" 26 ]; 27 hash = "sha256-kSRNZ9TinSqtzlZVvUOC/6tExiSn6krWQRQn86vxdTU="; 28 }; 29 30 outputs = [ "out" "man" "doc" ]; 31 32 # gzip used by Makefile to compress man pages 33 nativeBuildInputs = [ gnum4 gzip ]; 34 # enable all features (undocumented, based on manual review of configure script) 35 buildInputs = [ bzip2 libffi openssl readline sqlite tcl xz zlib ] 36 # ndbm compat library 37 ++ lib.optional stdenv.isLinux gdbm; 38 configureFlags = lib.optional (tcl != null) "--with-tcl=${tcl}/lib/tclConfig.sh"; 39 40 # INSTALL says "parallel make will fail" 41 enableParallelBuilding = false; 42 43 patches = [ ./fix-paths.patch ]; 44 45 # configure does not support --sbindir and the likes (as introduced by multiple-outputs.sh) 46 # so man, doc outputs must be handled manually 47 preConfigurePhases = [ "prePreConfigurePhase" ]; 48 prePreConfigurePhase = '' 49 preConfigureHooks="''${preConfigureHooks//_multioutConfig/}" 50 prependToVar configureFlags --mandir="$man"/share/man 51 ''; 52 53 meta = with lib; { 54 description = "The Macro Implementation of SNOBOL4 in C"; 55 longDescription = '' 56 An open source port of Macro SNOBOL4 (The original Bell Telephone Labs implementation, written in SIL macros) by Phil Budne. 57 Supports full SNOBOL4 language plus SPITBOL, [Blocks](https://www.regressive.org/snobol4/blocks/) and other extensions. 58 ''; 59 homepage = "https://www.regressive.org/snobol4/csnobol4/"; 60 license = licenses.bsd2; 61 platforms = platforms.all; 62 maintainers = with maintainers; [ xworld21 ]; 63 }; 64}