uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
59
pkgs/development/compilers/sagittarius-scheme/default.nix
Normal file
59
pkgs/development/compilers/sagittarius-scheme/default.nix
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
{ lib, stdenv
|
||||
, fetchurl
|
||||
, cmake
|
||||
, pkg-config
|
||||
, 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.8";
|
||||
src = fetchurl {
|
||||
url = "https://bitbucket.org/ktakashi/${pname}/downloads/sagittarius-${version}.tar.gz";
|
||||
sha256 = "sha256-CdnBpTq+c04JdipfhIiI8EkVFsCc00Gh+cA5zYENMqI=";
|
||||
};
|
||||
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;
|
||||
|
||||
meta = with lib; {
|
||||
broken = stdenv.isDarwin;
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue