mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
84 lines
2.1 KiB
Nix
84 lines
2.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
cmake,
|
|
pkg-config,
|
|
libffi,
|
|
boehmgc,
|
|
openssl,
|
|
zlib,
|
|
odbcSupport ? !stdenv.hostPlatform.isDarwin,
|
|
libiodbc,
|
|
}:
|
|
|
|
let
|
|
platformLdLibraryPath =
|
|
if stdenv.hostPlatform.isDarwin then
|
|
"DYLD_FALLBACK_LIBRARY_PATH"
|
|
else if (stdenv.hostPlatform.isLinux or stdenv.hostPlatform.isBSD) then
|
|
"LD_LIBRARY_PATH"
|
|
else
|
|
throw "unsupported platform";
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "sagittarius-scheme";
|
|
version = "0.9.12";
|
|
src = fetchurl {
|
|
url = "https://bitbucket.org/ktakashi/${pname}/downloads/sagittarius-${version}.tar.gz";
|
|
hash = "sha256-w6aQkC7/vKO8exvDpsSsLyLXrm4FSKh8XYGJgseEII0=";
|
|
};
|
|
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 = [
|
|
pkg-config
|
|
cmake
|
|
];
|
|
|
|
buildInputs = [
|
|
libffi
|
|
boehmgc
|
|
openssl
|
|
zlib
|
|
] ++ lib.optional odbcSupport libiodbc;
|
|
|
|
env.NIX_CFLAGS_COMPILE = toString (
|
|
lib.optionals stdenv.hostPlatform.isDarwin [
|
|
"-Wno-error=int-conversion"
|
|
]
|
|
++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [
|
|
# error: '__builtin_ia32_aeskeygenassist128' needs target feature aes
|
|
"-maes"
|
|
]
|
|
);
|
|
|
|
meta = with lib; {
|
|
description = "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 ];
|
|
};
|
|
}
|