package guile { description = "a programming language"; website = "https://www.gnu.org/software/guile"; anitya = 1277; version# = "3.0.11"; source = remoteTar { url = "https://codeberg.org/guile/guile/archive/v"+version+".tar.gz"; checksum = "Ta7GIA0MBn5_sG089hJJ8W5QFrHqv9UKXR3D5arIEndeRjGlWCCWj_nIwFyTXcQN"; compress = gzip; }; patches = [ "failing-filesys-test.patch", "failing-encoding-test.patch", "disable-broken-tests-musl.patch", "disable-broken-tests-zfs.patch", ]; early = ` echo '`+version+`' > .tarball-version `; exec = make { generate = "./autogen.sh"; _prefix# = prefix+"/"+arch+prefix; configure = { "with-libgmp-prefix": arch { default = unset; cross = _prefix; }; "with-libunistring-prefix": arch { default = unset; cross = _prefix; }; "with-libiconv-prefix": arch { default = unset; cross = _prefix; }; "CFLAGS": arch { default = unset; riscv64 = `"${CFLAGS:-} -D__clear_cache=__builtin___clear_cache"`; }; }; }; inputs = [ gmp, libunistring, libffi, bdwgc, libiconv, ]; tools = [ automake, libtool, gettext, gzip, tar, flex, texinfo, gperf, pkgconf, ]; native = [ guile ]; }