From ae89ef24aac04cfe533ceec65aa7220ca94a6102 Mon Sep 17 00:00:00 2001 From: Mitsuhiro Nakamura Date: Fri, 18 May 2018 18:45:46 +0900 Subject: [PATCH] gauche: init at 0.9.5 --- .../interpreters/gauche/default.nix | 38 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/interpreters/gauche/default.nix diff --git a/pkgs/development/interpreters/gauche/default.nix b/pkgs/development/interpreters/gauche/default.nix new file mode 100644 index 000000000000..c13a26204e26 --- /dev/null +++ b/pkgs/development/interpreters/gauche/default.nix @@ -0,0 +1,38 @@ +{ stdenv, fetchurl, pkgconfig, texinfo, libiconv, gdbm, openssl, zlib }: + +stdenv.mkDerivation rec { + name = "gauche-${version}"; + version = "0.9.5"; + + src = fetchurl { + url = "mirror://sourceforge/gauche/Gauche-${version}.tgz"; + sha256 = "0g77nik15whm5frxb7l0pwzd95qlq949dym5pn5p04p17lhm72jc"; + }; + + nativeBuildInputs = [ pkgconfig texinfo ]; + + buildInputs = [ libiconv gdbm openssl zlib ]; + + configureFlags = [ + "--enable-multibyte=utf-8" + "--with-iconv=${libiconv}" + "--with-dbm=gdbm" + "--with-zlib=${zlib}" + # TODO: Enable slib + # Current slib in nixpkgs is specialized to Guile + # "--with-slib=${slibGuile}/lib/slib" + ]; + + enableParallelBuilding = true; + + # TODO: Fix tests that fail in sandbox build + doCheck = false; + + meta = with stdenv.lib; { + description = "R7RS Scheme scripting engine"; + homepage = https://practical-scheme.net/gauche/; + maintainers = with maintainers; [ mnacamura ]; + license = licenses.bsd3; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2129477e4b6f..6d4876da2914 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15748,6 +15748,8 @@ with pkgs; ganttproject-bin = callPackage ../applications/misc/ganttproject-bin { }; + gauche = callPackage ../development/interpreters/gauche { }; + gcal = callPackage ../applications/misc/gcal { }; geany = callPackage ../applications/editors/geany { };