Merge branch 'master' into staging-next
A couple thousand rebuilds have accumulated on master.
This commit is contained in:
@@ -1,54 +1,131 @@
|
||||
{ stdenv, fetchFromGitHub
|
||||
{ stdenv, fetchFromGitHub, fetchFromGitLab
|
||||
, llvmPackages
|
||||
, cmake, boehmgc, gmp, zlib, ncurses, boost
|
||||
, cmake, boehmgc, gmp, zlib, ncurses, boost, libelf
|
||||
, python, git, sbcl
|
||||
, wafHook
|
||||
}:
|
||||
let
|
||||
sicl = fetchFromGitHub {
|
||||
owner = "Bike";
|
||||
repo = "SICL";
|
||||
rev = "78052fb5f02a3814eb7295f3dcac09f21f98702b";
|
||||
sha256 = "0wnmp40310ls6q9gkr5ysfkj2qirq26ljjicnkqifc53mm0ghz4i";
|
||||
};
|
||||
cst = fetchFromGitHub {
|
||||
owner = "robert-strandh";
|
||||
repo = "Concrete-Syntax-Tree";
|
||||
rev = "8d8c5abf8f1690cb2b765241d81c2eb86d60d77e";
|
||||
sha256 = "1rs8a5nbfffdyli126sccd0z1a8h5axp222b4pgwvgfxsb9w7g3s";
|
||||
};
|
||||
c2mop = fetchFromGitHub {
|
||||
owner = "pcostanza";
|
||||
repo = "closer-mop";
|
||||
rev = "d4d1c7aa6aba9b4ac8b7bb78ff4902a52126633f";
|
||||
sha256 = "1amcv0f3vbsq0aqhai7ki5bi367giway1pbfxyc47r7q3hq5hw3c";
|
||||
};
|
||||
acclimation = fetchFromGitHub {
|
||||
owner = "robert-strandh";
|
||||
repo = "Acclimation";
|
||||
rev = "dd15c86b0866fc5d8b474be0da15c58a3c04c45c";
|
||||
sha256 = "0ql224qs3zgflvdhfbca621v3byhhqfb71kzy70bslyczxv1bsh2";
|
||||
};
|
||||
eclector = fetchFromGitHub {
|
||||
owner = "robert-strandh";
|
||||
repo = "Eclector";
|
||||
rev = "287ce817c0478668bd389051d2cc6b26ddc62ec9";
|
||||
sha256 = "0v7mgkq49ddyx5vvsradcp772y5l7cv9xrll3280hyginpm8w6q3";
|
||||
};
|
||||
alexandria = fetchFromGitHub {
|
||||
owner = "clasp-developers";
|
||||
repo = "alexandria";
|
||||
rev = "e5c54bc30b0887c237bde2827036d17315f88737";
|
||||
sha256 = "14h7a9fwimiw9gqxjm2h47d95bfhrm7b81f6si7x8vy18d78fn4g";
|
||||
};
|
||||
mps = fetchFromGitHub {
|
||||
owner = "Ravenbrook";
|
||||
repo = "mps";
|
||||
rev = "b8a05a3846430bc36c8200f24d248c8293801503";
|
||||
sha256 = "1q2xqdw832jrp0w9yhgr8xihria01j4z132ac16lr9ssqznkprv6";
|
||||
};
|
||||
asdf = fetchFromGitLab {
|
||||
domain = "gitlab.common-lisp.net";
|
||||
owner = "asdf";
|
||||
repo = "asdf";
|
||||
rev = "3.3.1.2";
|
||||
sha256 = "0ljr2vc0cb2wrijcyjmp9hcaj2bdhh05ci3zf4f43hdq6i2fgg6g";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "clasp";
|
||||
version = "0.4.99.20170801";
|
||||
version = "0.8.99.20181128";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "drmeister";
|
||||
repo = "clasp";
|
||||
rev = "525ce1cffff39311e3e7df6d0b71fa267779bdf5";
|
||||
sha256 = "1jqya04wybgxnski341p5sycy2gysxad0s5q8d59z0f6ckj3v8k1";
|
||||
rev = "2f2b52ccb750048460562b5987a7eaf7a1aa4445";
|
||||
sha256 = "0ra55vdnk59lygwzlxr5cg16vb9c45fmg59wahaxclwm461w7fwz";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake python git sbcl wafHook ];
|
||||
nativeBuildInputs = [ cmake python git sbcl wafHook ] ++
|
||||
(with llvmPackages; [ llvm clang ]);
|
||||
|
||||
buildInputs = with llvmPackages; (
|
||||
builtins.map (x: stdenv.lib.overrideDerivation x
|
||||
(x: {NIX_CFLAGS_COMPILE= (x.NIX_CFLAGS_COMPILE or "") + " -frtti"; }))
|
||||
[ llvm clang clang-unwrapped clang ]) ++
|
||||
buildInputs = with llvmPackages;
|
||||
(
|
||||
builtins.map (x: stdenv.lib.overrideDerivation x
|
||||
(x: {NIX_CFLAGS_COMPILE= (x.NIX_CFLAGS_COMPILE or "") + " -frtti"; }))
|
||||
[ llvm clang clang-unwrapped clang ]) ++
|
||||
[
|
||||
gmp zlib ncurses
|
||||
boost boehmgc
|
||||
boost boehmgc libelf
|
||||
(boost.override {enableStatic = true; enableShared = false;})
|
||||
(stdenv.lib.overrideDerivation boehmgc
|
||||
(x: {configureFlags = (x.configureFlags or []) ++ ["--enable-static"];}))
|
||||
];
|
||||
|
||||
NIX_CFLAGS_COMPILE = " -frtti ";
|
||||
NIX_CXXSTDLIB_COMPILE = " -frtti ";
|
||||
|
||||
postPatch = ''
|
||||
echo "
|
||||
INSTALL_PATH_PREFIX = '$out'
|
||||
PREFIX = '$out'
|
||||
" | sed -e 's/^ *//' > wscript.config
|
||||
|
||||
mkdir -p src/lisp/kernel/contrib/sicl
|
||||
mkdir -p src/lisp/kernel/contrib/Concrete-Syntax-Tree
|
||||
mkdir -p src/lisp/kernel/contrib/closer-mop
|
||||
mkdir -p src/lisp/kernel/contrib/Acclimation
|
||||
mkdir -p src/lisp/kernel/contrib/Eclector
|
||||
mkdir -p src/lisp/kernel/contrib/alexandria
|
||||
mkdir -p src/mps
|
||||
mkdir -p src/lisp/modules/asdf
|
||||
|
||||
cp -rfT "${sicl}" src/lisp/kernel/contrib/sicl
|
||||
cp -rfT "${cst}" src/lisp/kernel/contrib/Concrete-Syntax-Tree
|
||||
cp -rfT "${c2mop}" src/lisp/kernel/contrib/closer-mop
|
||||
cp -rfT "${acclimation}" src/lisp/kernel/contrib/Acclimation
|
||||
cp -rfT "${eclector}" src/lisp/kernel/contrib/Eclector
|
||||
cp -rfT "${alexandria}" src/lisp/kernel/contrib/alexandria
|
||||
cp -rfT "${mps}" src/mps
|
||||
cp -rfT "${asdf}" src/lisp/modules/asdf
|
||||
|
||||
chmod -R u+rwX src
|
||||
( cd src/lisp/modules/asdf; make )
|
||||
'';
|
||||
|
||||
buildTargets = "build_cboehm";
|
||||
installTargets = "install_cboehm";
|
||||
|
||||
CLASP_SRC_DONTTOUCH = "true";
|
||||
|
||||
meta = {
|
||||
inherit version;
|
||||
description = ''A Common Lisp implementation based on LLVM with C++ integration'';
|
||||
license = stdenv.lib.licenses.lgpl21Plus ;
|
||||
maintainers = [stdenv.lib.maintainers.raskin];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
# Large, long to build, a private build of clang is needed, a prerelease.
|
||||
hydraPlatforms = [];
|
||||
homepage = "https://github.com/drmeister/clasp";
|
||||
broken = true; # 2018-09-08, no successful build since 2018-01-03
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{ stdenv, fetchFromGitHub
|
||||
, makeWrapper, unzip, which
|
||||
, curl, tzdata, gdb, darwin
|
||||
, curl, tzdata, gdb, darwin, git
|
||||
, callPackage, targetPackages, ldc
|
||||
, version ? "2.083.1"
|
||||
, dmdSha256 ? "0b52yq7slgbrawb22kib9bk2x9xjiy6axwz1317fck5axl093d90"
|
||||
, druntimeSha256 ? "1hm9p59ih21yv8x7cqjhkyy94677q4f8wk9fs9i1rybx8x19njyn"
|
||||
, phobosSha256 ? "1zmz0f1wj0dgxy2cy63ljjc1sl2sgb7ij8bamlxw9nxrchwi3l43"
|
||||
, version ? "2.084.0"
|
||||
, dmdSha256 ? "1v61spdamncl8c1bzjc19b03p4jl0ih5zq9b7cqsy9ix7qaxmikf"
|
||||
, druntimeSha256 ? "0vp414j6s11l9s54v81np49mv60ywmd7nnk41idkbwrq0nz4sfrq"
|
||||
, phobosSha256 ? "1wp7z1x299b0w9ny1ah2wrfhrs05vc4bk51csgw9774l3dqcnv53"
|
||||
}:
|
||||
|
||||
let
|
||||
@@ -42,50 +42,22 @@ let
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
# https://issues.dlang.org/show_bug.cgi?id=19553
|
||||
hardeningDisable = [ "fortify" ];
|
||||
|
||||
postUnpack = ''
|
||||
patchShebangs .
|
||||
|
||||
# Remove cppa test for now because it doesn't work.
|
||||
rm dmd/test/runnable/cppa.d
|
||||
rm dmd/test/runnable/extra-files/cppb.cpp
|
||||
''
|
||||
|
||||
+ stdenv.lib.optionalString (stdenv.hostPlatform.isDarwin) ''
|
||||
rm dmd/test/runnable/test16096.sh
|
||||
'';
|
||||
|
||||
# Compile with PIC to prevent colliding modules with binutils 2.28.
|
||||
# https://issues.dlang.org/show_bug.cgi?id=17375
|
||||
usePIC = "-fPIC";
|
||||
|
||||
phobosPatches = ''
|
||||
# Ugly hack so the dlopen call has a chance to succeed.
|
||||
# https://issues.dlang.org/show_bug.cgi?id=15391
|
||||
substituteInPlace phobos/std/net/curl.d \
|
||||
--replace libcurl.so ${curl.out}/lib/libcurl.so
|
||||
|
||||
# phobos uses curl, so we need to patch the path to the lib.
|
||||
substituteInPlace phobos/posix.mak \
|
||||
--replace "-soname=libcurl.so.4" "-soname=${curl.out}/lib/libcurl.so.4"
|
||||
|
||||
'';
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace druntime/test/common.mak \
|
||||
--replace "DFLAGS:=" "DFLAGS:=${usePIC} "
|
||||
substituteInPlace dmd/test/compilable/extra-files/ddocYear.html \
|
||||
--replace "2018" "__YEAR__"
|
||||
|
||||
substituteInPlace dmd/src/posix.mak \
|
||||
--replace "DFLAGS :=" "DFLAGS += -link-defaultlib-shared=false"
|
||||
''
|
||||
|
||||
+ phobosPatches
|
||||
|
||||
+ stdenv.lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||
substituteInPlace dmd/posix.mak \
|
||||
--replace MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET_
|
||||
substituteInPlace dmd/test/runnable/test16096.sh \
|
||||
--replace "{EXT}" "{EXE}"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ ldc makeWrapper unzip which gdb ]
|
||||
nativeBuildInputs = [ ldc makeWrapper unzip which gdb git ]
|
||||
|
||||
++ stdenv.lib.optional stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [
|
||||
Foundation
|
||||
@@ -109,7 +81,8 @@ let
|
||||
make -j$NIX_BUILD_CORES -f posix.mak BUILD=release ENABLE_RELEASE=1 PIC=1 INSTALL_DIR=$out DMD=${pathToDmd}
|
||||
cd ../phobos
|
||||
echo ${tzdata}/share/zoneinfo/ > TZDatabaseDirFile
|
||||
make -j$NIX_BUILD_CORES -f posix.mak BUILD=release ENABLE_RELEASE=1 PIC=1 INSTALL_DIR=$out DMD=${pathToDmd} DFLAGS="-version=TZDatabaseDir -J$(pwd)"
|
||||
echo ${curl.out}/lib/libcurl.so > LibcurlPathFile
|
||||
make -j$NIX_BUILD_CORES -f posix.mak BUILD=release ENABLE_RELEASE=1 PIC=1 INSTALL_DIR=$out DMD=${pathToDmd} DFLAGS="-version=TZDatabaseDir -version=LibcurlPath -J$(pwd)"
|
||||
cd ..
|
||||
'';
|
||||
|
||||
@@ -119,7 +92,7 @@ let
|
||||
|
||||
checkPhase = ''
|
||||
cd dmd
|
||||
make -j$NIX_BUILD_CORES -C test -f Makefile PIC=1 DMD=${pathToDmd} BUILD=release SHARED=0 SHELL=$SHELL
|
||||
make -j$NIX_BUILD_CORES -C test -f Makefile PIC=1 CC=$CXX DMD=${pathToDmd} BUILD=release SHARED=0 SHELL=$SHELL
|
||||
cd ../druntime
|
||||
make -j$NIX_BUILD_CORES -f posix.mak unittest PIC=1 DMD=${pathToDmd} BUILD=release
|
||||
cd ..
|
||||
@@ -194,15 +167,14 @@ let
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
postPatch = dmdBuild.phobosPatches;
|
||||
|
||||
nativeBuildInputs = dmdBuild.nativeBuildInputs;
|
||||
buildInputs = dmdBuild.buildInputs;
|
||||
|
||||
buildPhase = ''
|
||||
cd phobos
|
||||
echo ${tzdata}/share/zoneinfo/ > TZDatabaseDirFile
|
||||
make -j$NIX_BUILD_CORES -f posix.mak unittest BUILD=release ENABLE_RELEASE=1 PIC=1 DMD=${dmdBuild}/bin/dmd DFLAGS="-version=TZDatabaseDir -J$(pwd)"
|
||||
echo ${curl.out}/lib/libcurl.so > LibcurlPathFile
|
||||
make -j$NIX_BUILD_CORES -f posix.mak unittest BUILD=release ENABLE_RELEASE=1 PIC=1 DMD=${dmdBuild}/bin/dmd DFLAGS="-version=TZDatabaseDir -version=LibcurlPath -J$(pwd)"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
|
||||
39
pkgs/development/compilers/gcc-arm-embedded/8/default.nix
Normal file
39
pkgs/development/compilers/gcc-arm-embedded/8/default.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{ stdenv, lib, fetchurl, ncurses5, python27 }:
|
||||
|
||||
with lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "gcc-arm-embedded-${version}";
|
||||
version = "8-2018-q4-major";
|
||||
subdir = "8-2018q4";
|
||||
|
||||
urlString = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${subdir}/gcc-arm-none-eabi-${version}-linux.tar.bz2";
|
||||
|
||||
src = fetchurl { url=urlString; sha256="fb31fbdfe08406ece43eef5df623c0b2deb8b53e405e2c878300f7a1f303ee52"; };
|
||||
|
||||
phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r * $out
|
||||
'';
|
||||
|
||||
dontPatchELF = true;
|
||||
dontStrip = true;
|
||||
|
||||
preFixup = ''
|
||||
find $out -type f | while read f; do
|
||||
patchelf $f > /dev/null 2>&1 || continue
|
||||
patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f" || true
|
||||
patchelf --set-rpath ${stdenv.lib.makeLibraryPath [ "$out" stdenv.cc.cc ncurses5 python27 ]} "$f" || true
|
||||
done
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Pre-built GNU toolchain from ARM Cortex-M & Cortex-R processors (Cortex-M0/M0+/M3/M4/M7, Cortex-R4/R5/R7/R8)";
|
||||
homepage = https://developer.arm.com/open-source/gnu-toolchain/gnu-rm;
|
||||
license = with licenses; [ bsd2 gpl2 gpl3 lgpl21 lgpl3 mit ];
|
||||
maintainers = with maintainers; [ prusnak ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user