lol
at 24.11-pre 45 lines 1.3 kB view raw
1{ buildOctavePackage 2, stdenv 3, lib 4, fetchurl 5, pkg-config 6, pcre2 7}: 8 9buildOctavePackage rec { 10 pname = "strings"; 11 version = "1.3.1"; 12 13 src = fetchurl { 14 url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz"; 15 sha256 = "sha256-9l5eYgzw5K85trRAJW9eMYZxvf0RDNxDlD0MtwrSCLc="; 16 }; 17 18 nativeBuildInputs = [ 19 pkg-config 20 ]; 21 22 buildInputs = [ 23 pcre2 24 ]; 25 26 # The gripes library no longer exists. 27 # https://build.opensuse.org/package/view_file/openSUSE:Backports:SLE-15-SP3/octave-forge-strings/octave-forge-strings.spec 28 # toascii is a deprecated function. Has been fixed in recent commits, but has 29 # not been released yet. 30 # https://sourceforge.net/p/octave/strings/ci/2db1dbb75557eef94605cb4ac682783ab78ac8d8/ 31 patchPhase = '' 32 sed -i -s -e 's/gripes.h/errwarn.h/' -e 's/gripe_/err_/g' src/*.cc 33 sed -i s/toascii/double/g inst/*.m 34 ''; 35 36 meta = with lib; { 37 homepage = "https://octave.sourceforge.io/strings/index.html"; 38 license = licenses.gpl3Plus; 39 # Claims to have a freebsd license, but I found none. 40 maintainers = with maintainers; [ KarlJoad ]; 41 description = "Additional functions for manipulation and analysis of strings"; 42 # Some pcre symbols claimed to be missing 43 broken = stdenv.isDarwin; 44 }; 45}