diff options
author | Ashish SHUKLA <ashish.is@lostca.se> | 2019-08-11 21:47:41 +0530 |
---|---|---|
committer | Ashish SHUKLA <ashish.is@lostca.se> | 2019-08-11 21:47:41 +0530 |
commit | 8c32ecd1f411a6f1f6769d15de15c8e5d12e70d8 (patch) | |
tree | 42e922b3d9cdd9fcabc212180c21f4d2d3a453e6 /pkgs/development/compilers/sagittarius-scheme/default.nix | |
parent | 3aa7b21b34aee42e963d8c64dcb5c53f49208742 (diff) | |
download | nixpkgs-8c32ecd1f411a6f1f6769d15de15c8e5d12e70d8.tar nixpkgs-8c32ecd1f411a6f1f6769d15de15c8e5d12e70d8.tar.gz nixpkgs-8c32ecd1f411a6f1f6769d15de15c8e5d12e70d8.tar.bz2 nixpkgs-8c32ecd1f411a6f1f6769d15de15c8e5d12e70d8.tar.lz nixpkgs-8c32ecd1f411a6f1f6769d15de15c8e5d12e70d8.tar.xz nixpkgs-8c32ecd1f411a6f1f6769d15de15c8e5d12e70d8.tar.zst nixpkgs-8c32ecd1f411a6f1f6769d15de15c8e5d12e70d8.zip |
sagittarius-scheme: init at 0.9.6
Diffstat (limited to 'pkgs/development/compilers/sagittarius-scheme/default.nix')
-rw-r--r-- | pkgs/development/compilers/sagittarius-scheme/default.nix | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/pkgs/development/compilers/sagittarius-scheme/default.nix b/pkgs/development/compilers/sagittarius-scheme/default.nix new file mode 100644 index 00000000000..4b1358b7247 --- /dev/null +++ b/pkgs/development/compilers/sagittarius-scheme/default.nix @@ -0,0 +1,58 @@ +{ stdenv +, fetchurl +, cmake +, pkgconfig +, libffi +, boehmgc +, openssl +, zlib +, odbcSupport ? true +, libiodbc +}: + +let platformLdLibraryPath = if stdenv.isDarwin then "DYLD_FALLBACK_LIBRARY_PATH" + else if (stdenv.isLinux or stdenv.isBSD) then "LD_LIBRARY_PATH" + else throw "unsupported platform"; +in +stdenv.mkDerivation rec { + pname = "sagittarius-scheme"; + version = "0.9.6"; + src = fetchurl { + url = "https://bitbucket.org/ktakashi/${pname}/downloads/sagittarius-${version}.tar.gz"; + sha256 = "03nvvvfd4gdlvq244zpnikxxajp6w8jj3ymw4bcq83x7zilb2imr"; + }; + preBuild = '' + # since we lack rpath during build, need to explicitly add build path + # to LD_LIBRARY_PATH so we can load libsagittarius.so as required to + # build extensions + export ${platformLdLibraryPath}="$(pwd)/build" + ''; + nativeBuildInputs = [ pkgconfig cmake ]; + + buildInputs = [ libffi boehmgc openssl zlib ] ++ stdenv.lib.optional odbcSupport libiodbc; + + meta = with stdenv.lib; { + description = "An R6RS/R7RS Scheme system"; + longDescription = '' + Sagittarius Scheme is a free Scheme implementation supporting + R6RS/R7RS specification. + + Features: + + - Builtin CLOS. + - Common Lisp like reader macro. + - Cryptographic libraries. + - Customisable cipher and hash algorithm. + - Custom codec mechanism. + - CL like keyword lambda syntax (taken from Gauche). + - Constant definition form. (define-constant form). + - Builtin regular expression + - mostly works O(n) + - Replaceable reader + ''; + homepage = "https://bitbucket.org/ktakashi/sagittarius-scheme"; + license = licenses.bsd2; + platforms = platforms.all; + maintainers = with maintainers; [ abbe ]; + }; +} |