Merge staging into staging-next
This commit is contained in:
commit
c5f3c184a7
@ -30,7 +30,7 @@ mkDerivation rec {
|
|||||||
# libraries. These reside in build/lib, and are not found by
|
# libraries. These reside in build/lib, and are not found by
|
||||||
# default.
|
# default.
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/lib:$PWD/VTK/ThirdParty/vtkm/vtk-m/lib
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/lib:$PWD/VTK/ThirdParty/vtkm/vtk-m/lib
|
||||||
'';
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
@ -11,9 +11,9 @@ stdenv.mkDerivation rec {
|
|||||||
outputs = [ "out" "doc" ]; # headers are just two and very small
|
outputs = [ "out" "doc" ]; # headers are just two and very small
|
||||||
|
|
||||||
preConfigure = if stdenv.isDarwin then ''
|
preConfigure = if stdenv.isDarwin then ''
|
||||||
export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:"`pwd`/build/src
|
export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}"`pwd`/build/src
|
||||||
'' else ''
|
'' else ''
|
||||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:"`pwd`/build/src
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}"`pwd`/build/src
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
@ -18,11 +18,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "filezilla";
|
pname = "filezilla";
|
||||||
version = "3.46.0";
|
version = "3.46.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://download.filezilla-project.org/client/FileZilla_${version}_src.tar.bz2";
|
url = "https://download.filezilla-project.org/client/FileZilla_${version}_src.tar.bz2";
|
||||||
sha256 = "0v7656p7b6w88a96wj8058b13yxbwi186l092i9whrisngnv2pnf";
|
sha256 = "15bkg9qs07h4pzkxba1gymp8f264dk0zrzd9brx48fcwm7qbzigi";
|
||||||
};
|
};
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
|
@ -28,6 +28,11 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ cmake flex bison makeWrapper ];
|
nativeBuildInputs = [ cmake flex bison makeWrapper ];
|
||||||
buildInputs = [ openssl libedit qt4 nettools iproute ];
|
buildInputs = [ openssl libedit qt4 nettools iproute ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# fix build with bison3
|
||||||
|
sed -i 's/define "parser_class_name"/define parser_class_name/' source/iked/conf.parse.yy
|
||||||
|
'';
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
mkdir -p $out/{bin,sbin,lib}
|
mkdir -p $out/{bin,sbin,lib}
|
||||||
cmake -DQTGUI=YES -DETCDIR=$out/etc -DLIBDIR=$out/lib -DSBINDIR=$out/sbin -DBINDIR=$out/bin \
|
cmake -DQTGUI=YES -DETCDIR=$out/etc -DLIBDIR=$out/lib -DSBINDIR=$out/sbin -DBINDIR=$out/bin \
|
||||||
|
@ -43,7 +43,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
# autotools check tries to dlopen libpython as a requirement for the python plugin
|
# autotools check tries to dlopen libpython as a requirement for the python plugin
|
||||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${python}/lib
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}${python}/lib
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -79,7 +79,7 @@ stdenv.mkDerivation rec {
|
|||||||
# 80 - test-gnc-module-scm-module (Failed)
|
# 80 - test-gnc-module-scm-module (Failed)
|
||||||
# 81 - test-gnc-module-scm-multi (Failed)
|
# 81 - test-gnc-module-scm-multi (Failed)
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export LD_LIBRARY_PATH=$PWD/lib:$PWD/lib/gnucash:$PWD/lib/gnucash/test:$LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH=$PWD/lib:$PWD/lib/gnucash:$PWD/lib/gnucash/test''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH
|
||||||
export NIX_CFLAGS_LINK="-lgtest -lgtest_main"
|
export NIX_CFLAGS_LINK="-lgtest -lgtest_main"
|
||||||
'';
|
'';
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
libsamplerate, libpulseaudio, libXinerama, gettext, pkgconfig, alsaLib }:
|
libsamplerate, libpulseaudio, libXinerama, gettext, pkgconfig, alsaLib }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "4.1.08";
|
version = "4.1.08.51";
|
||||||
pname = "fldigi";
|
pname = "fldigi";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
|
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
|
||||||
sha256 = "0jbk03w0wfvd9lxh1wdazim9gwxm1lkhc5xzi3h8ag7h9zx58jq0";
|
sha256 = "0wki9d19q8rkjxcd3dz3k0a395gmbnji4fxlhw6dpcyqpfw88fcs";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ libXinerama gettext hamlib fltk13 libjpeg libpng portaudio
|
buildInputs = [ libXinerama gettext hamlib fltk13 libjpeg libpng portaudio
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchgit, bison2, flex }:
|
{ stdenv, fetchgit, bison, flex }:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
makeFlags = [ "DESTDIR= BINDIR=$(out)/bin" ];
|
makeFlags = [ "DESTDIR= BINDIR=$(out)/bin" ];
|
||||||
buildInputs = [ bison2 flex ];
|
buildInputs = [ bison flex ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://pcalc.sourceforge.net/;
|
homepage = http://pcalc.sourceforge.net/;
|
||||||
|
@ -177,7 +177,7 @@ writeTextFile rec {
|
|||||||
export SAGE_EXTCODE='${sagelib.src}/src/ext'
|
export SAGE_EXTCODE='${sagelib.src}/src/ext'
|
||||||
|
|
||||||
# for find_library
|
# for find_library
|
||||||
export DYLD_LIBRARY_PATH="${lib.makeLibraryPath [stdenv.cc.libc singular]}:$DYLD_LIBRARY_PATH"
|
export DYLD_LIBRARY_PATH="${lib.makeLibraryPath [stdenv.cc.libc singular]}''${DYLD_LIBRARY_PATH:+:}$DYLD_LIBRARY_PATH"
|
||||||
'';
|
'';
|
||||||
} // {
|
} // {
|
||||||
lib = sagelib; # equivalent of `passthru`, which `writeTextFile` doesn't support
|
lib = sagelib; # equivalent of `passthru`, which `writeTextFile` doesn't support
|
||||||
|
@ -21,7 +21,7 @@ assert sendEmailSupport -> perlSupport;
|
|||||||
assert svnSupport -> perlSupport;
|
assert svnSupport -> perlSupport;
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "2.24.1";
|
version = "2.25.0";
|
||||||
svn = subversionClient.override { perlBindings = perlSupport; };
|
svn = subversionClient.override { perlBindings = perlSupport; };
|
||||||
|
|
||||||
gitwebPerlLibs = with perlPackages; [ CGI HTMLParser CGIFast FCGI FCGIProcManager HTMLTagCloud ];
|
gitwebPerlLibs = with perlPackages; [ CGI HTMLParser CGIFast FCGI FCGIProcManager HTMLTagCloud ];
|
||||||
@ -33,7 +33,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz";
|
url = "https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz";
|
||||||
sha256 = "0ql5z31vgl7b785gwrf00m129mg7zi9pa65n12ij3mpxx3f28gvj";
|
sha256 = "1l58v42aazj0x9276gk8r9mwyl9pgp9w99aakz4xfhzv7wd2jq60";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" ];
|
outputs = [ "out" ];
|
||||||
|
@ -66,7 +66,7 @@ stdenv.mkDerivation rec {
|
|||||||
cd "$sourceRoot"
|
cd "$sourceRoot"
|
||||||
patchPhase
|
patchPhase
|
||||||
|
|
||||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${libXext}/lib"
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}${libXext}/lib"
|
||||||
${stdenv.shell} bootStrap.bash \
|
${stdenv.shell} bootStrap.bash \
|
||||||
--with-core \
|
--with-core \
|
||||||
${if withQT then "--with-qt" else "--without-qt"} \
|
${if withQT then "--with-qt" else "--without-qt"} \
|
||||||
|
@ -52,7 +52,7 @@ let
|
|||||||
etcProfile = writeText "profile" ''
|
etcProfile = writeText "profile" ''
|
||||||
export PS1='${name}-chrootenv:\u@\h:\w\$ '
|
export PS1='${name}-chrootenv:\u@\h:\w\$ '
|
||||||
export LOCALE_ARCHIVE='/usr/lib/locale/locale-archive'
|
export LOCALE_ARCHIVE='/usr/lib/locale/locale-archive'
|
||||||
export LD_LIBRARY_PATH="/run/opengl-driver/lib:/run/opengl-driver-32/lib:/usr/lib:/usr/lib32:$LD_LIBRARY_PATH"
|
export LD_LIBRARY_PATH="/run/opengl-driver/lib:/run/opengl-driver-32/lib:/usr/lib:/usr/lib32''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
|
||||||
export PATH="/run/wrappers/bin:/usr/bin:/usr/sbin:$PATH"
|
export PATH="/run/wrappers/bin:/usr/bin:/usr/sbin:$PATH"
|
||||||
export TZDIR='/etc/zoneinfo'
|
export TZDIR='/etc/zoneinfo'
|
||||||
|
|
||||||
|
28
pkgs/build-support/setup-hooks/make-symlinks-relative.sh
Normal file
28
pkgs/build-support/setup-hooks/make-symlinks-relative.sh
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
fixupOutputHooks+=(_makeSymlinksRelative)
|
||||||
|
|
||||||
|
# For every symlink in $output that refers to another file in $output
|
||||||
|
# ensure that the symlink is relative. This removes references to the output
|
||||||
|
# has from the resulting store paths and thus the NAR files.
|
||||||
|
_makeSymlinksRelative() {
|
||||||
|
local symlinkTarget
|
||||||
|
|
||||||
|
if [ -n "${dontRewriteSymlinks-}" ]; then
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
while IFS= read -r -d $'\0' f; do
|
||||||
|
symlinkTarget=$(readlink "$f")
|
||||||
|
if [[ "$symlinkTarget"/ != "$prefix"/* ]]; then
|
||||||
|
# skip this symlink as it doesn't point to $prefix
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -e "$symlinkTarget" ]; then
|
||||||
|
echo "the symlink $f is broken, it points to $symlinkTarget (which is missing)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "rewriting symlink $f to be relative to $prefix"
|
||||||
|
ln -snrf "$symlinkTarget" "$f"
|
||||||
|
|
||||||
|
done < <(find $prefix -type l -print0)
|
||||||
|
}
|
@ -228,8 +228,8 @@ mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${zlib}/lib";
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}${zlib}/lib";
|
||||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${libX11}/lib";
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}${libX11}/lib";
|
||||||
'';
|
'';
|
||||||
|
|
||||||
dontWrapQtApps = true;
|
dontWrapQtApps = true;
|
||||||
|
@ -123,7 +123,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
# allow ecore_con to find libcurl.so, which is a runtime dependency (it is dlopened)
|
# allow ecore_con to find libcurl.so, which is a runtime dependency (it is dlopened)
|
||||||
export LD_LIBRARY_PATH="${curl.out}/lib:$LD_LIBRARY_PATH"
|
export LD_LIBRARY_PATH="${curl.out}/lib''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
|
||||||
|
|
||||||
source "$setupHook"
|
source "$setupHook"
|
||||||
'';
|
'';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, gtk2, gettext, libxml2, intltool, libart_lgpl
|
{ stdenv, fetchurl, fetchpatch, pkgconfig, gtk2, gettext, libxml2, intltool, libart_lgpl
|
||||||
, libgnomecups, bison2, flex }:
|
, libgnomecups, bison, flex }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libgnomeprint-2.18.8";
|
name = "libgnomeprint-2.18.8";
|
||||||
@ -9,10 +9,17 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1034ec8651051f84d2424e7a1da61c530422cc20ce5b2d9e107e1e46778d9691";
|
sha256 = "1034ec8651051f84d2424e7a1da61c530422cc20ce5b2d9e107e1e46778d9691";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./bug653388.patch ];
|
patches = [
|
||||||
|
./bug653388.patch
|
||||||
|
# Fix compatibility with bison 3
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/pld-linux/libgnomeprint/raw/54c0f9c3675b86c53f6d77a5bc526ce9ef0e38cd/bison3.patch";
|
||||||
|
sha256 = "1sp04jbv34i1gcwf377hhmwdsmqzig70dd06rjz1isb6zwh4y01l";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ gtk2 gettext intltool libart_lgpl libgnomecups bison2 flex ];
|
buildInputs = [ gtk2 gettext intltool libart_lgpl libgnomecups bison flex ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ libxml2 ];
|
propagatedBuildInputs = [ libxml2 ];
|
||||||
|
|
||||||
|
@ -6,13 +6,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "evolution-data-server";
|
pname = "evolution-data-server";
|
||||||
version = "3.34.2";
|
version = "3.34.3";
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/evolution-data-server/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/evolution-data-server/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "16z85y6hhazcrp5ngw47w4x9r0j8zrj7awv5im58hhp0xs19zf1y";
|
sha256 = "1af3f218i5h3df81xkjdij0n9knsw355fsmhzdrfh1bflxfarpyj";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -29,7 +29,7 @@ in llvmPackages.stdenv.mkDerivation {
|
|||||||
# To handle the lack of 'local' RPATH; required, as they call one of
|
# To handle the lack of 'local' RPATH; required, as they call one of
|
||||||
# their built binaries requiring their libs, in the build process.
|
# their built binaries requiring their libs, in the build process.
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
export LD_LIBRARY_PATH="$(pwd)/lib:$LD_LIBRARY_PATH"
|
export LD_LIBRARY_PATH="$(pwd)/lib''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetch, cmake, libxml2, llvm, version, release_version, clang-tools-extra_src, python
|
{ stdenv, fetch, cmake, libxml2, llvm, version, release_version, clang-tools-extra_src, python3
|
||||||
, fixDarwinDylibNames
|
, fixDarwinDylibNames
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
}:
|
}:
|
||||||
@ -19,8 +19,8 @@ let
|
|||||||
mv clang-tools-extra-* $sourceRoot/tools/extra
|
mv clang-tools-extra-* $sourceRoot/tools/extra
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python ]
|
nativeBuildInputs = [ cmake python3 ]
|
||||||
++ stdenv.lib.optional enableManpages python.pkgs.sphinx;
|
++ stdenv.lib.optional enableManpages python3.pkgs.sphinx;
|
||||||
|
|
||||||
buildInputs = [ libxml2 llvm ]
|
buildInputs = [ libxml2 llvm ]
|
||||||
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ lowPrio, newScope, pkgs, stdenv, cmake, libstdcxxHook
|
{ lowPrio, newScope, pkgs, stdenv, cmake, libstdcxxHook
|
||||||
, libxml2, python, isl, fetchurl, overrideCC, wrapCCWith
|
, libxml2, python3, isl, fetchurl, overrideCC, wrapCCWith
|
||||||
, buildLlvmTools # tools, but from the previous stage, for cross
|
, buildLlvmTools # tools, but from the previous stage, for cross
|
||||||
, targetLlvmLibraries # libraries, but from the next stage, for cross
|
, targetLlvmLibraries # libraries, but from the next stage, for cross
|
||||||
}:
|
}:
|
||||||
@ -17,7 +17,7 @@ let
|
|||||||
clang-tools-extra_src = fetch "clang-tools-extra" "1dhmp7ccfpr42bmvk3kp37ngjpf3a9m5d4kkpsn7d00hzi7fdl9m";
|
clang-tools-extra_src = fetch "clang-tools-extra" "1dhmp7ccfpr42bmvk3kp37ngjpf3a9m5d4kkpsn7d00hzi7fdl9m";
|
||||||
|
|
||||||
tools = stdenv.lib.makeExtensible (tools: let
|
tools = stdenv.lib.makeExtensible (tools: let
|
||||||
callPackage = newScope (tools // { inherit stdenv cmake libxml2 python isl release_version version fetch; });
|
callPackage = newScope (tools // { inherit stdenv cmake libxml2 python3 isl release_version version fetch; });
|
||||||
in {
|
in {
|
||||||
|
|
||||||
llvm = callPackage ./llvm.nix {
|
llvm = callPackage ./llvm.nix {
|
||||||
@ -29,12 +29,12 @@ let
|
|||||||
|
|
||||||
llvm-manpages = lowPrio (tools.llvm.override {
|
llvm-manpages = lowPrio (tools.llvm.override {
|
||||||
enableManpages = true;
|
enableManpages = true;
|
||||||
python = pkgs.python; # don't use python-boot
|
python3 = pkgs.python3; # don't use python-boot
|
||||||
});
|
});
|
||||||
|
|
||||||
clang-manpages = lowPrio (tools.clang-unwrapped.override {
|
clang-manpages = lowPrio (tools.clang-unwrapped.override {
|
||||||
enableManpages = true;
|
enableManpages = true;
|
||||||
python = pkgs.python; # don't use python-boot
|
python3 = pkgs.python3; # don't use python-boot
|
||||||
});
|
});
|
||||||
|
|
||||||
libclang = tools.clang-unwrapped.lib;
|
libclang = tools.clang-unwrapped.lib;
|
||||||
@ -57,7 +57,7 @@ let
|
|||||||
});
|
});
|
||||||
|
|
||||||
libraries = stdenv.lib.makeExtensible (libraries: let
|
libraries = stdenv.lib.makeExtensible (libraries: let
|
||||||
callPackage = newScope (libraries // buildLlvmTools // { inherit stdenv cmake libxml2 python isl release_version version fetch; });
|
callPackage = newScope (libraries // buildLlvmTools // { inherit stdenv cmake libxml2 python3 isl release_version version fetch; });
|
||||||
in {
|
in {
|
||||||
|
|
||||||
stdenv = overrideCC stdenv buildLlvmTools.clang;
|
stdenv = overrideCC stdenv buildLlvmTools.clang;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, fetch, cmake, python, libcxxabi, fixDarwinDylibNames, version }:
|
{ lib, stdenv, fetch, cmake, python3, libcxxabi, fixDarwinDylibNames, version }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "libc++";
|
pname = "libc++";
|
||||||
@ -31,7 +31,7 @@ stdenv.mkDerivation {
|
|||||||
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||||
patchShebangs utils/cat_files.py
|
patchShebangs utils/cat_files.py
|
||||||
'';
|
'';
|
||||||
nativeBuildInputs = [ cmake ] ++ stdenv.lib.optional stdenv.hostPlatform.isMusl python;
|
nativeBuildInputs = [ cmake ] ++ stdenv.lib.optional stdenv.hostPlatform.isMusl python3;
|
||||||
|
|
||||||
buildInputs = [ libcxxabi ] ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
buildInputs = [ libcxxabi ] ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
, libxml2
|
, libxml2
|
||||||
, llvm
|
, llvm
|
||||||
, clang-unwrapped
|
, clang-unwrapped
|
||||||
, python
|
, python3
|
||||||
, version
|
, version
|
||||||
, darwin
|
, darwin
|
||||||
}:
|
}:
|
||||||
@ -31,7 +31,7 @@ stdenv.mkDerivation {
|
|||||||
cmake/modules/LLDBStandalone.cmake
|
cmake/modules/LLDBStandalone.cmake
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python which swig ];
|
nativeBuildInputs = [ cmake python3 which swig ];
|
||||||
buildInputs = [ ncurses zlib libedit libxml2 llvm ]
|
buildInputs = [ ncurses zlib libedit libxml2 llvm ]
|
||||||
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc darwin.apple_sdk.frameworks.Foundation darwin.bootstrap_cmds darwin.apple_sdk.frameworks.Carbon darwin.apple_sdk.frameworks.Cocoa ];
|
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc darwin.apple_sdk.frameworks.Foundation darwin.bootstrap_cmds darwin.apple_sdk.frameworks.Carbon darwin.apple_sdk.frameworks.Cocoa ];
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
, fetch
|
, fetch
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
, cmake
|
, cmake
|
||||||
, python
|
, python3
|
||||||
, libffi
|
, libffi
|
||||||
, libbfd
|
, libbfd
|
||||||
, libxml2
|
, libxml2
|
||||||
@ -40,8 +40,8 @@ stdenv.mkDerivation ({
|
|||||||
outputs = [ "out" ]
|
outputs = [ "out" ]
|
||||||
++ stdenv.lib.optional enableSharedLibraries "lib";
|
++ stdenv.lib.optional enableSharedLibraries "lib";
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python ]
|
nativeBuildInputs = [ cmake python3 ]
|
||||||
++ stdenv.lib.optional enableManpages python.pkgs.sphinx;
|
++ stdenv.lib.optional enableManpages python3.pkgs.sphinx;
|
||||||
|
|
||||||
buildInputs = [ libxml2 libffi ];
|
buildInputs = [ libxml2 libffi ];
|
||||||
|
|
||||||
@ -143,7 +143,7 @@ stdenv.mkDerivation ({
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/lib
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/lib
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = stdenv.lib.optionalString enableSharedLibraries ''
|
postInstall = stdenv.lib.optionalString enableSharedLibraries ''
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetch, cmake, libxml2, llvm, version, clang-tools-extra_src, python
|
{ stdenv, fetch, cmake, libxml2, llvm, version, clang-tools-extra_src, python3
|
||||||
, fixDarwinDylibNames
|
, fixDarwinDylibNames
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
}:
|
}:
|
||||||
@ -19,8 +19,8 @@ let
|
|||||||
mv clang-tools-extra-* $sourceRoot/tools/extra
|
mv clang-tools-extra-* $sourceRoot/tools/extra
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python ]
|
nativeBuildInputs = [ cmake python3 ]
|
||||||
++ stdenv.lib.optional enableManpages python.pkgs.sphinx;
|
++ stdenv.lib.optional enableManpages python3.pkgs.sphinx;
|
||||||
|
|
||||||
buildInputs = [ libxml2 llvm ]
|
buildInputs = [ libxml2 llvm ]
|
||||||
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
{ stdenv, version, fetch, cmake, python, llvm, libcxxabi }:
|
{ stdenv, version, fetch, cmake, python3, llvm, libcxxabi }:
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "compiler-rt";
|
pname = "compiler-rt";
|
||||||
inherit version;
|
inherit version;
|
||||||
src = fetch "compiler-rt" "0ipd4jdxpczgr2w6lzrabymz6dhzj69ywmyybjjc1q397zgrvziy";
|
src = fetch "compiler-rt" "0ipd4jdxpczgr2w6lzrabymz6dhzj69ywmyybjjc1q397zgrvziy";
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python llvm ];
|
nativeBuildInputs = [ cmake python3 llvm ];
|
||||||
buildInputs = stdenv.lib.optional stdenv.hostPlatform.isDarwin libcxxabi;
|
buildInputs = stdenv.lib.optional stdenv.hostPlatform.isDarwin libcxxabi;
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ lowPrio, newScope, pkgs, stdenv, cmake, libstdcxxHook
|
{ lowPrio, newScope, pkgs, stdenv, cmake, libstdcxxHook
|
||||||
, libxml2, python, isl, fetchurl, overrideCC, wrapCCWith
|
, libxml2, python3, isl, fetchurl, overrideCC, wrapCCWith
|
||||||
, buildLlvmTools # tools, but from the previous stage, for cross
|
, buildLlvmTools # tools, but from the previous stage, for cross
|
||||||
, targetLlvmLibraries # libraries, but from the next stage, for cross
|
, targetLlvmLibraries # libraries, but from the next stage, for cross
|
||||||
}:
|
}:
|
||||||
@ -16,7 +16,7 @@ let
|
|||||||
clang-tools-extra_src = fetch "clang-tools-extra" "018b3fiwah8f8br5i26qmzh6sjvzchpn358sn8v079m49f2jldm3";
|
clang-tools-extra_src = fetch "clang-tools-extra" "018b3fiwah8f8br5i26qmzh6sjvzchpn358sn8v079m49f2jldm3";
|
||||||
|
|
||||||
tools = stdenv.lib.makeExtensible (tools: let
|
tools = stdenv.lib.makeExtensible (tools: let
|
||||||
callPackage = newScope (tools // { inherit stdenv cmake libxml2 python isl release_version version fetch; });
|
callPackage = newScope (tools // { inherit stdenv cmake libxml2 python3 isl release_version version fetch; });
|
||||||
mkExtraBuildCommands = cc: ''
|
mkExtraBuildCommands = cc: ''
|
||||||
rsrc="$out/resource-root"
|
rsrc="$out/resource-root"
|
||||||
mkdir "$rsrc"
|
mkdir "$rsrc"
|
||||||
@ -36,12 +36,12 @@ let
|
|||||||
|
|
||||||
llvm-manpages = lowPrio (tools.llvm.override {
|
llvm-manpages = lowPrio (tools.llvm.override {
|
||||||
enableManpages = true;
|
enableManpages = true;
|
||||||
python = pkgs.python; # don't use python-boot
|
python3 = pkgs.python3; # don't use python-boot
|
||||||
});
|
});
|
||||||
|
|
||||||
clang-manpages = lowPrio (tools.clang-unwrapped.override {
|
clang-manpages = lowPrio (tools.clang-unwrapped.override {
|
||||||
enableManpages = true;
|
enableManpages = true;
|
||||||
python = pkgs.python; # don't use python-boot
|
python3 = pkgs.python3; # don't use python-boot
|
||||||
});
|
});
|
||||||
|
|
||||||
libclang = tools.clang-unwrapped.lib;
|
libclang = tools.clang-unwrapped.lib;
|
||||||
@ -74,7 +74,7 @@ let
|
|||||||
});
|
});
|
||||||
|
|
||||||
libraries = stdenv.lib.makeExtensible (libraries: let
|
libraries = stdenv.lib.makeExtensible (libraries: let
|
||||||
callPackage = newScope (libraries // buildLlvmTools // { inherit stdenv cmake libxml2 python isl release_version version fetch; });
|
callPackage = newScope (libraries // buildLlvmTools // { inherit stdenv cmake libxml2 python3 isl release_version version fetch; });
|
||||||
in {
|
in {
|
||||||
|
|
||||||
compiler-rt = callPackage ./compiler-rt.nix {};
|
compiler-rt = callPackage ./compiler-rt.nix {};
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, fetch, cmake, python, libcxxabi, fixDarwinDylibNames, version }:
|
{ lib, stdenv, fetch, cmake, python3, libcxxabi, fixDarwinDylibNames, version }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "libc++";
|
pname = "libc++";
|
||||||
@ -25,7 +25,7 @@ stdenv.mkDerivation {
|
|||||||
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||||
patchShebangs utils/cat_files.py
|
patchShebangs utils/cat_files.py
|
||||||
'';
|
'';
|
||||||
nativeBuildInputs = [ cmake ] ++ stdenv.lib.optional stdenv.hostPlatform.isMusl python;
|
nativeBuildInputs = [ cmake ] ++ stdenv.lib.optional stdenv.hostPlatform.isMusl python3;
|
||||||
|
|
||||||
buildInputs = [ libcxxabi ] ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
buildInputs = [ libcxxabi ] ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
, libxml2
|
, libxml2
|
||||||
, llvm
|
, llvm
|
||||||
, clang-unwrapped
|
, clang-unwrapped
|
||||||
, python
|
, python3
|
||||||
, version
|
, version
|
||||||
, darwin
|
, darwin
|
||||||
}:
|
}:
|
||||||
@ -30,7 +30,7 @@ stdenv.mkDerivation {
|
|||||||
cmake/modules/LLDBStandalone.cmake
|
cmake/modules/LLDBStandalone.cmake
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python which swig ];
|
nativeBuildInputs = [ cmake python3 which swig ];
|
||||||
buildInputs = [ ncurses zlib libedit libxml2 llvm ]
|
buildInputs = [ ncurses zlib libedit libxml2 llvm ]
|
||||||
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc darwin.apple_sdk.frameworks.Foundation darwin.bootstrap_cmds darwin.apple_sdk.frameworks.Carbon darwin.apple_sdk.frameworks.Cocoa ];
|
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc darwin.apple_sdk.frameworks.Foundation darwin.bootstrap_cmds darwin.apple_sdk.frameworks.Carbon darwin.apple_sdk.frameworks.Cocoa ];
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
, fetch
|
, fetch
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
, cmake
|
, cmake
|
||||||
, python
|
, python3
|
||||||
, libffi
|
, libffi
|
||||||
, libbfd
|
, libbfd
|
||||||
, libxml2
|
, libxml2
|
||||||
@ -37,8 +37,8 @@ stdenv.mkDerivation ({
|
|||||||
outputs = [ "out" "python" ]
|
outputs = [ "out" "python" ]
|
||||||
++ stdenv.lib.optional enableSharedLibraries "lib";
|
++ stdenv.lib.optional enableSharedLibraries "lib";
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python ]
|
nativeBuildInputs = [ cmake python3 ]
|
||||||
++ stdenv.lib.optional enableManpages python.pkgs.sphinx;
|
++ stdenv.lib.optional enableManpages python3.pkgs.sphinx;
|
||||||
|
|
||||||
buildInputs = [ libxml2 libffi ];
|
buildInputs = [ libxml2 libffi ];
|
||||||
|
|
||||||
@ -119,7 +119,7 @@ stdenv.mkDerivation ({
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/lib
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/lib
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetch, cmake, libxml2, llvm, version, clang-tools-extra_src, python
|
{ stdenv, fetch, cmake, libxml2, llvm, version, clang-tools-extra_src, python3
|
||||||
, fixDarwinDylibNames
|
, fixDarwinDylibNames
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
}:
|
}:
|
||||||
@ -19,8 +19,8 @@ let
|
|||||||
mv clang-tools-extra-* $sourceRoot/tools/extra
|
mv clang-tools-extra-* $sourceRoot/tools/extra
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python ]
|
nativeBuildInputs = [ cmake python3 ]
|
||||||
++ stdenv.lib.optional enableManpages python.pkgs.sphinx;
|
++ stdenv.lib.optional enableManpages python3.pkgs.sphinx;
|
||||||
|
|
||||||
buildInputs = [ libxml2 llvm ]
|
buildInputs = [ libxml2 llvm ]
|
||||||
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
{ stdenv, version, fetch, cmake, python, llvm, libcxxabi }:
|
{ stdenv, version, fetch, cmake, python3, llvm, libcxxabi }:
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "compiler-rt";
|
pname = "compiler-rt";
|
||||||
inherit version;
|
inherit version;
|
||||||
src = fetch "compiler-rt" "1fcr3jn24yr8lh36nc0c4ikli4744i2q9m1ik67p1jymwwaixkgl";
|
src = fetch "compiler-rt" "1fcr3jn24yr8lh36nc0c4ikli4744i2q9m1ik67p1jymwwaixkgl";
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python llvm ];
|
nativeBuildInputs = [ cmake python3 llvm ];
|
||||||
buildInputs = stdenv.lib.optional stdenv.hostPlatform.isDarwin libcxxabi;
|
buildInputs = stdenv.lib.optional stdenv.hostPlatform.isDarwin libcxxabi;
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ lowPrio, newScope, pkgs, stdenv, cmake, libstdcxxHook
|
{ lowPrio, newScope, pkgs, stdenv, cmake, libstdcxxHook
|
||||||
, libxml2, python, isl, fetchurl, overrideCC, wrapCCWith
|
, libxml2, python3, isl, fetchurl, overrideCC, wrapCCWith
|
||||||
, buildLlvmTools # tools, but from the previous stage, for cross
|
, buildLlvmTools # tools, but from the previous stage, for cross
|
||||||
, targetLlvmLibraries # libraries, but from the next stage, for cross
|
, targetLlvmLibraries # libraries, but from the next stage, for cross
|
||||||
}:
|
}:
|
||||||
@ -16,7 +16,7 @@ let
|
|||||||
clang-tools-extra_src = fetch "clang-tools-extra" "1w8ml7fyn4vyxmy59n2qm4r1k1kgwgwkaldp6m45fdv4g0kkfbhd";
|
clang-tools-extra_src = fetch "clang-tools-extra" "1w8ml7fyn4vyxmy59n2qm4r1k1kgwgwkaldp6m45fdv4g0kkfbhd";
|
||||||
|
|
||||||
tools = stdenv.lib.makeExtensible (tools: let
|
tools = stdenv.lib.makeExtensible (tools: let
|
||||||
callPackage = newScope (tools // { inherit stdenv cmake libxml2 python isl release_version version fetch; });
|
callPackage = newScope (tools // { inherit stdenv cmake libxml2 python3 isl release_version version fetch; });
|
||||||
mkExtraBuildCommands = cc: ''
|
mkExtraBuildCommands = cc: ''
|
||||||
rsrc="$out/resource-root"
|
rsrc="$out/resource-root"
|
||||||
mkdir "$rsrc"
|
mkdir "$rsrc"
|
||||||
@ -36,12 +36,12 @@ let
|
|||||||
|
|
||||||
llvm-manpages = lowPrio (tools.llvm.override {
|
llvm-manpages = lowPrio (tools.llvm.override {
|
||||||
enableManpages = true;
|
enableManpages = true;
|
||||||
python = pkgs.python; # don't use python-boot
|
python3 = pkgs.python3; # don't use python-boot
|
||||||
});
|
});
|
||||||
|
|
||||||
clang-manpages = lowPrio (tools.clang-unwrapped.override {
|
clang-manpages = lowPrio (tools.clang-unwrapped.override {
|
||||||
enableManpages = true;
|
enableManpages = true;
|
||||||
python = pkgs.python; # don't use python-boot
|
python3 = pkgs.python3; # don't use python-boot
|
||||||
});
|
});
|
||||||
|
|
||||||
libclang = tools.clang-unwrapped.lib;
|
libclang = tools.clang-unwrapped.lib;
|
||||||
@ -74,7 +74,7 @@ let
|
|||||||
});
|
});
|
||||||
|
|
||||||
libraries = stdenv.lib.makeExtensible (libraries: let
|
libraries = stdenv.lib.makeExtensible (libraries: let
|
||||||
callPackage = newScope (libraries // buildLlvmTools // { inherit stdenv cmake libxml2 python isl release_version version fetch; });
|
callPackage = newScope (libraries // buildLlvmTools // { inherit stdenv cmake libxml2 python3 isl release_version version fetch; });
|
||||||
in {
|
in {
|
||||||
|
|
||||||
compiler-rt = callPackage ./compiler-rt.nix {};
|
compiler-rt = callPackage ./compiler-rt.nix {};
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, fetch, cmake, python, libcxxabi, fixDarwinDylibNames, version }:
|
{ lib, stdenv, fetch, cmake, python3, libcxxabi, fixDarwinDylibNames, version }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "libc++";
|
pname = "libc++";
|
||||||
@ -25,7 +25,7 @@ stdenv.mkDerivation {
|
|||||||
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||||
patchShebangs utils/cat_files.py
|
patchShebangs utils/cat_files.py
|
||||||
'';
|
'';
|
||||||
nativeBuildInputs = [ cmake ] ++ stdenv.lib.optional stdenv.hostPlatform.isMusl python;
|
nativeBuildInputs = [ cmake ] ++ stdenv.lib.optional stdenv.hostPlatform.isMusl python3;
|
||||||
|
|
||||||
buildInputs = [ libcxxabi ] ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
buildInputs = [ libcxxabi ] ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
, libxml2
|
, libxml2
|
||||||
, llvm
|
, llvm
|
||||||
, clang-unwrapped
|
, clang-unwrapped
|
||||||
, python
|
, python3
|
||||||
, version
|
, version
|
||||||
, darwin
|
, darwin
|
||||||
}:
|
}:
|
||||||
@ -30,7 +30,7 @@ stdenv.mkDerivation {
|
|||||||
cmake/modules/LLDBStandalone.cmake
|
cmake/modules/LLDBStandalone.cmake
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python which swig ];
|
nativeBuildInputs = [ cmake python3 which swig ];
|
||||||
buildInputs = [ ncurses zlib libedit libxml2 llvm ]
|
buildInputs = [ ncurses zlib libedit libxml2 llvm ]
|
||||||
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc darwin.apple_sdk.frameworks.Foundation darwin.bootstrap_cmds darwin.apple_sdk.frameworks.Carbon darwin.apple_sdk.frameworks.Cocoa ];
|
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc darwin.apple_sdk.frameworks.Foundation darwin.bootstrap_cmds darwin.apple_sdk.frameworks.Carbon darwin.apple_sdk.frameworks.Cocoa ];
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, fetch
|
, fetch
|
||||||
, cmake
|
, cmake
|
||||||
, python
|
, python3
|
||||||
, libffi
|
, libffi
|
||||||
, libbfd
|
, libbfd
|
||||||
, libxml2
|
, libxml2
|
||||||
@ -40,8 +40,8 @@ stdenv.mkDerivation ({
|
|||||||
outputs = [ "out" "python" ]
|
outputs = [ "out" "python" ]
|
||||||
++ optional enableSharedLibraries "lib";
|
++ optional enableSharedLibraries "lib";
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python ]
|
nativeBuildInputs = [ cmake python3 ]
|
||||||
++ optional enableManpages python.pkgs.sphinx;
|
++ optional enableManpages python3.pkgs.sphinx;
|
||||||
|
|
||||||
buildInputs = [ libxml2 libffi ];
|
buildInputs = [ libxml2 libffi ];
|
||||||
|
|
||||||
@ -120,7 +120,7 @@ stdenv.mkDerivation ({
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/lib
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/lib
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetch, cmake, libxml2, llvm, version, clang-tools-extra_src, python
|
{ stdenv, fetch, cmake, libxml2, llvm, version, clang-tools-extra_src, python3
|
||||||
, fixDarwinDylibNames
|
, fixDarwinDylibNames
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
, enablePolly ? false # TODO: get this info from llvm (passthru?)
|
, enablePolly ? false # TODO: get this info from llvm (passthru?)
|
||||||
@ -19,8 +19,8 @@ let
|
|||||||
mv clang-tools-extra-* $sourceRoot/tools/extra
|
mv clang-tools-extra-* $sourceRoot/tools/extra
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python ]
|
nativeBuildInputs = [ cmake python3 ]
|
||||||
++ stdenv.lib.optional enableManpages python.pkgs.sphinx;
|
++ stdenv.lib.optional enableManpages python3.pkgs.sphinx;
|
||||||
|
|
||||||
buildInputs = [ libxml2 llvm ]
|
buildInputs = [ libxml2 llvm ]
|
||||||
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{ stdenv, version, fetch, cmake, python, llvm, libcxxabi }:
|
{ stdenv, version, fetch, cmake, python3, llvm, libcxxabi }:
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "compiler-rt";
|
pname = "compiler-rt";
|
||||||
inherit version;
|
inherit version;
|
||||||
src = fetch "compiler-rt" "1n48p8gjarihkws0i2bay5w9bdwyxyxxbpwyng7ba58jb30dlyq5";
|
src = fetch "compiler-rt" "1n48p8gjarihkws0i2bay5w9bdwyxyxxbpwyng7ba58jb30dlyq5";
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python llvm ];
|
nativeBuildInputs = [ cmake python3 llvm ];
|
||||||
buildInputs = stdenv.lib.optional stdenv.hostPlatform.isDarwin libcxxabi;
|
buildInputs = stdenv.lib.optional stdenv.hostPlatform.isDarwin libcxxabi;
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = [
|
NIX_CFLAGS_COMPILE = [
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ lowPrio, newScope, pkgs, stdenv, cmake, libstdcxxHook
|
{ lowPrio, newScope, pkgs, stdenv, cmake, libstdcxxHook
|
||||||
, libxml2, python, isl, fetchurl, overrideCC, wrapCCWith, wrapBintoolsWith
|
, libxml2, python3, isl, fetchurl, overrideCC, wrapCCWith, wrapBintoolsWith
|
||||||
, buildLlvmTools # tools, but from the previous stage, for cross
|
, buildLlvmTools # tools, but from the previous stage, for cross
|
||||||
, targetLlvmLibraries # libraries, but from the next stage, for cross
|
, targetLlvmLibraries # libraries, but from the next stage, for cross
|
||||||
}:
|
}:
|
||||||
@ -16,7 +16,7 @@ let
|
|||||||
clang-tools-extra_src = fetch "clang-tools-extra" "0lb4kdh7j2fhfz8kd6iv5df7m3pikiryk1vvwsf87spc90n09q0w";
|
clang-tools-extra_src = fetch "clang-tools-extra" "0lb4kdh7j2fhfz8kd6iv5df7m3pikiryk1vvwsf87spc90n09q0w";
|
||||||
|
|
||||||
tools = stdenv.lib.makeExtensible (tools: let
|
tools = stdenv.lib.makeExtensible (tools: let
|
||||||
callPackage = newScope (tools // { inherit stdenv cmake libxml2 python isl release_version version fetch; });
|
callPackage = newScope (tools // { inherit stdenv cmake libxml2 python3 isl release_version version fetch; });
|
||||||
mkExtraBuildCommands = cc: ''
|
mkExtraBuildCommands = cc: ''
|
||||||
rsrc="$out/resource-root"
|
rsrc="$out/resource-root"
|
||||||
mkdir "$rsrc"
|
mkdir "$rsrc"
|
||||||
@ -42,12 +42,12 @@ let
|
|||||||
|
|
||||||
llvm-manpages = lowPrio (tools.llvm.override {
|
llvm-manpages = lowPrio (tools.llvm.override {
|
||||||
enableManpages = true;
|
enableManpages = true;
|
||||||
python = pkgs.python; # don't use python-boot
|
python3 = pkgs.python3; # don't use python-boot
|
||||||
});
|
});
|
||||||
|
|
||||||
clang-manpages = lowPrio (tools.clang-unwrapped.override {
|
clang-manpages = lowPrio (tools.clang-unwrapped.override {
|
||||||
enableManpages = true;
|
enableManpages = true;
|
||||||
python = pkgs.python; # don't use python-boot
|
python3 = pkgs.python3; # don't use python-boot
|
||||||
});
|
});
|
||||||
|
|
||||||
libclang = tools.clang-unwrapped.lib;
|
libclang = tools.clang-unwrapped.lib;
|
||||||
@ -126,7 +126,7 @@ let
|
|||||||
});
|
});
|
||||||
|
|
||||||
libraries = stdenv.lib.makeExtensible (libraries: let
|
libraries = stdenv.lib.makeExtensible (libraries: let
|
||||||
callPackage = newScope (libraries // buildLlvmTools // { inherit stdenv cmake libxml2 python isl release_version version fetch; });
|
callPackage = newScope (libraries // buildLlvmTools // { inherit stdenv cmake libxml2 python3 isl release_version version fetch; });
|
||||||
in {
|
in {
|
||||||
|
|
||||||
compiler-rt = callPackage ./compiler-rt.nix {
|
compiler-rt = callPackage ./compiler-rt.nix {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, fetch, cmake, python, libcxxabi, fixDarwinDylibNames, version
|
{ lib, stdenv, fetch, cmake, python3, libcxxabi, fixDarwinDylibNames, version
|
||||||
, enableShared ? ! stdenv.hostPlatform.isMusl }:
|
, enableShared ? ! stdenv.hostPlatform.isMusl }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
@ -24,7 +24,7 @@ stdenv.mkDerivation {
|
|||||||
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||||
patchShebangs utils/cat_files.py
|
patchShebangs utils/cat_files.py
|
||||||
'';
|
'';
|
||||||
nativeBuildInputs = [ cmake ] ++ stdenv.lib.optional stdenv.hostPlatform.isMusl python;
|
nativeBuildInputs = [ cmake ] ++ stdenv.lib.optional stdenv.hostPlatform.isMusl python3;
|
||||||
|
|
||||||
buildInputs = [ libcxxabi ] ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
buildInputs = [ libcxxabi ] ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
, llvm
|
, llvm
|
||||||
, clang-unwrapped
|
, clang-unwrapped
|
||||||
, perl
|
, perl
|
||||||
, python
|
, python3
|
||||||
, version
|
, version
|
||||||
, darwin
|
, darwin
|
||||||
}:
|
}:
|
||||||
@ -21,7 +21,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
src = fetch "lldb" "0klsscg1sczc4nw2l53xggi969k361cng2sjjrfp3bv4g5x14s4v";
|
src = fetch "lldb" "0klsscg1sczc4nw2l53xggi969k361cng2sjjrfp3bv4g5x14s4v";
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake perl python which swig ];
|
nativeBuildInputs = [ cmake perl python3 which swig ];
|
||||||
buildInputs = [ ncurses zlib libedit libxml2 llvm ]
|
buildInputs = [ ncurses zlib libedit libxml2 llvm ]
|
||||||
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc darwin.apple_sdk.frameworks.Foundation darwin.bootstrap_cmds darwin.apple_sdk.frameworks.Carbon darwin.apple_sdk.frameworks.Cocoa ];
|
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc darwin.apple_sdk.frameworks.Foundation darwin.bootstrap_cmds darwin.apple_sdk.frameworks.Carbon darwin.apple_sdk.frameworks.Cocoa ];
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
, fetch
|
, fetch
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
, cmake
|
, cmake
|
||||||
, python
|
, python3
|
||||||
, libffi
|
, libffi
|
||||||
, libbfd
|
, libbfd
|
||||||
, libpfm
|
, libpfm
|
||||||
@ -48,8 +48,8 @@ in stdenv.mkDerivation ({
|
|||||||
outputs = [ "out" "python" ]
|
outputs = [ "out" "python" ]
|
||||||
++ optional enableSharedLibraries "lib";
|
++ optional enableSharedLibraries "lib";
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python ]
|
nativeBuildInputs = [ cmake python3 ]
|
||||||
++ optional enableManpages python.pkgs.sphinx;
|
++ optional enableManpages python3.pkgs.sphinx;
|
||||||
|
|
||||||
buildInputs = [ libxml2 libffi ]
|
buildInputs = [ libxml2 libffi ]
|
||||||
++ optional enablePFM libpfm; # exegesis
|
++ optional enablePFM libpfm; # exegesis
|
||||||
@ -141,7 +141,7 @@ in stdenv.mkDerivation ({
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/lib
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/lib
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetch, cmake, libxml2, llvm, version, clang-tools-extra_src, python
|
{ stdenv, fetch, cmake, libxml2, llvm, version, clang-tools-extra_src, python3
|
||||||
, fixDarwinDylibNames
|
, fixDarwinDylibNames
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
, enablePolly ? false # TODO: get this info from llvm (passthru?)
|
, enablePolly ? false # TODO: get this info from llvm (passthru?)
|
||||||
@ -19,8 +19,8 @@ let
|
|||||||
mv clang-tools-extra-* $sourceRoot/tools/extra
|
mv clang-tools-extra-* $sourceRoot/tools/extra
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python ]
|
nativeBuildInputs = [ cmake python3 ]
|
||||||
++ stdenv.lib.optional enableManpages python.pkgs.sphinx;
|
++ stdenv.lib.optional enableManpages python3.pkgs.sphinx;
|
||||||
|
|
||||||
buildInputs = [ libxml2 llvm ]
|
buildInputs = [ libxml2 llvm ]
|
||||||
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{ stdenv, version, fetch, cmake, python, llvm, libcxxabi }:
|
{ stdenv, version, fetch, cmake, python3, llvm, libcxxabi }:
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "compiler-rt";
|
pname = "compiler-rt";
|
||||||
inherit version;
|
inherit version;
|
||||||
src = fetch "compiler-rt" "0dqqf8f930l8gag4d9qjgn1n0pj0nbv2anviqqhdi1rkhas8z0hi";
|
src = fetch "compiler-rt" "0dqqf8f930l8gag4d9qjgn1n0pj0nbv2anviqqhdi1rkhas8z0hi";
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python llvm ];
|
nativeBuildInputs = [ cmake python3 llvm ];
|
||||||
buildInputs = stdenv.lib.optional stdenv.hostPlatform.isDarwin libcxxabi;
|
buildInputs = stdenv.lib.optional stdenv.hostPlatform.isDarwin libcxxabi;
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = [
|
NIX_CFLAGS_COMPILE = [
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ lowPrio, newScope, pkgs, stdenv, cmake, libstdcxxHook
|
{ lowPrio, newScope, pkgs, stdenv, cmake, libstdcxxHook
|
||||||
, libxml2, python, isl, fetchurl, overrideCC, wrapCCWith, wrapBintoolsWith
|
, libxml2, python3, isl, fetchurl, overrideCC, wrapCCWith, wrapBintoolsWith
|
||||||
, buildLlvmTools # tools, but from the previous stage, for cross
|
, buildLlvmTools # tools, but from the previous stage, for cross
|
||||||
, targetLlvmLibraries # libraries, but from the next stage, for cross
|
, targetLlvmLibraries # libraries, but from the next stage, for cross
|
||||||
}:
|
}:
|
||||||
@ -16,7 +16,7 @@ let
|
|||||||
clang-tools-extra_src = fetch "clang-tools-extra" "1qf3097bc5ia8p6cpmbx985rjr3yaah5s8fc0nv7pw742yv7jw8q";
|
clang-tools-extra_src = fetch "clang-tools-extra" "1qf3097bc5ia8p6cpmbx985rjr3yaah5s8fc0nv7pw742yv7jw8q";
|
||||||
|
|
||||||
tools = stdenv.lib.makeExtensible (tools: let
|
tools = stdenv.lib.makeExtensible (tools: let
|
||||||
callPackage = newScope (tools // { inherit stdenv cmake libxml2 python isl release_version version fetch; });
|
callPackage = newScope (tools // { inherit stdenv cmake libxml2 python3 isl release_version version fetch; });
|
||||||
mkExtraBuildCommands = cc: ''
|
mkExtraBuildCommands = cc: ''
|
||||||
rsrc="$out/resource-root"
|
rsrc="$out/resource-root"
|
||||||
mkdir "$rsrc"
|
mkdir "$rsrc"
|
||||||
@ -42,12 +42,12 @@ let
|
|||||||
|
|
||||||
llvm-manpages = lowPrio (tools.llvm.override {
|
llvm-manpages = lowPrio (tools.llvm.override {
|
||||||
enableManpages = true;
|
enableManpages = true;
|
||||||
python = pkgs.python; # don't use python-boot
|
python3 = pkgs.python3; # don't use python-boot
|
||||||
});
|
});
|
||||||
|
|
||||||
clang-manpages = lowPrio (tools.clang-unwrapped.override {
|
clang-manpages = lowPrio (tools.clang-unwrapped.override {
|
||||||
enableManpages = true;
|
enableManpages = true;
|
||||||
python = pkgs.python; # don't use python-boot
|
python3 = pkgs.python3; # don't use python-boot
|
||||||
});
|
});
|
||||||
|
|
||||||
libclang = tools.clang-unwrapped.lib;
|
libclang = tools.clang-unwrapped.lib;
|
||||||
@ -162,7 +162,7 @@ let
|
|||||||
});
|
});
|
||||||
|
|
||||||
libraries = stdenv.lib.makeExtensible (libraries: let
|
libraries = stdenv.lib.makeExtensible (libraries: let
|
||||||
callPackage = newScope (libraries // buildLlvmTools // { inherit stdenv cmake libxml2 python isl release_version version fetch; });
|
callPackage = newScope (libraries // buildLlvmTools // { inherit stdenv cmake libxml2 python3 isl release_version version fetch; });
|
||||||
in {
|
in {
|
||||||
|
|
||||||
compiler-rt = callPackage ./compiler-rt.nix ({} //
|
compiler-rt = callPackage ./compiler-rt.nix ({} //
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, fetch, cmake, python, libcxxabi, fixDarwinDylibNames, version
|
{ lib, stdenv, fetch, cmake, python3, libcxxabi, fixDarwinDylibNames, version
|
||||||
, enableShared ? true }:
|
, enableShared ? true }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
@ -25,7 +25,7 @@ stdenv.mkDerivation {
|
|||||||
patchShebangs utils/cat_files.py
|
patchShebangs utils/cat_files.py
|
||||||
'';
|
'';
|
||||||
nativeBuildInputs = [ cmake ]
|
nativeBuildInputs = [ cmake ]
|
||||||
++ stdenv.lib.optional (stdenv.hostPlatform.isMusl || stdenv.hostPlatform.isWasi) python;
|
++ stdenv.lib.optional (stdenv.hostPlatform.isMusl || stdenv.hostPlatform.isWasi) python3;
|
||||||
|
|
||||||
buildInputs = [ libcxxabi ] ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
buildInputs = [ libcxxabi ] ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
, libxml2
|
, libxml2
|
||||||
, llvm
|
, llvm
|
||||||
, clang-unwrapped
|
, clang-unwrapped
|
||||||
, python
|
, python3
|
||||||
, version
|
, version
|
||||||
, darwin
|
, darwin
|
||||||
}:
|
}:
|
||||||
@ -30,7 +30,7 @@ stdenv.mkDerivation {
|
|||||||
cmake/modules/LLDBStandalone.cmake
|
cmake/modules/LLDBStandalone.cmake
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python which swig ];
|
nativeBuildInputs = [ cmake python3 which swig ];
|
||||||
buildInputs = [ ncurses zlib libedit libxml2 llvm ]
|
buildInputs = [ ncurses zlib libedit libxml2 llvm ]
|
||||||
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc darwin.apple_sdk.frameworks.Foundation darwin.bootstrap_cmds darwin.apple_sdk.frameworks.Carbon darwin.apple_sdk.frameworks.Cocoa ];
|
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc darwin.apple_sdk.frameworks.Foundation darwin.bootstrap_cmds darwin.apple_sdk.frameworks.Carbon darwin.apple_sdk.frameworks.Cocoa ];
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, fetch
|
, fetch
|
||||||
, cmake
|
, cmake
|
||||||
, python
|
, python3
|
||||||
, libffi
|
, libffi
|
||||||
, libbfd
|
, libbfd
|
||||||
, libpfm
|
, libpfm
|
||||||
@ -46,8 +46,8 @@ in stdenv.mkDerivation ({
|
|||||||
outputs = [ "out" "python" ]
|
outputs = [ "out" "python" ]
|
||||||
++ optional enableSharedLibraries "lib";
|
++ optional enableSharedLibraries "lib";
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python ]
|
nativeBuildInputs = [ cmake python3 ]
|
||||||
++ optionals enableManpages [ python.pkgs.sphinx python.pkgs.recommonmark ];
|
++ optionals enableManpages [ python3.pkgs.sphinx python3.pkgs.recommonmark ];
|
||||||
|
|
||||||
buildInputs = [ libxml2 libffi ]
|
buildInputs = [ libxml2 libffi ]
|
||||||
++ optional enablePFM libpfm; # exegesis
|
++ optional enablePFM libpfm; # exegesis
|
||||||
@ -117,7 +117,7 @@ in stdenv.mkDerivation ({
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/lib
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/lib
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetch, cmake, libxml2, llvm, version, clang-tools-extra_src, python
|
{ stdenv, fetch, cmake, libxml2, llvm, version, clang-tools-extra_src, python3
|
||||||
, fixDarwinDylibNames
|
, fixDarwinDylibNames
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
, enablePolly ? false # TODO: get this info from llvm (passthru?)
|
, enablePolly ? false # TODO: get this info from llvm (passthru?)
|
||||||
@ -19,8 +19,8 @@ let
|
|||||||
mv clang-tools-extra-* $sourceRoot/tools/extra
|
mv clang-tools-extra-* $sourceRoot/tools/extra
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python ]
|
nativeBuildInputs = [ cmake python3 ]
|
||||||
++ stdenv.lib.optional enableManpages python.pkgs.sphinx;
|
++ stdenv.lib.optional enableManpages python3.pkgs.sphinx;
|
||||||
|
|
||||||
buildInputs = [ libxml2 llvm ]
|
buildInputs = [ libxml2 llvm ]
|
||||||
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{ stdenv, version, fetch, cmake, python, llvm, libcxxabi }:
|
{ stdenv, version, fetch, cmake, python3, llvm, libcxxabi }:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "compiler-rt";
|
pname = "compiler-rt";
|
||||||
inherit version;
|
inherit version;
|
||||||
src = fetch pname "0xwh79g3zggdabxgnd0bphry75asm1qz7mv3hcqihqwqr6aspgy2";
|
src = fetch pname "0xwh79g3zggdabxgnd0bphry75asm1qz7mv3hcqihqwqr6aspgy2";
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python llvm ];
|
nativeBuildInputs = [ cmake python3 llvm ];
|
||||||
buildInputs = stdenv.lib.optional stdenv.hostPlatform.isDarwin libcxxabi;
|
buildInputs = stdenv.lib.optional stdenv.hostPlatform.isDarwin libcxxabi;
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = [
|
NIX_CFLAGS_COMPILE = [
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ lowPrio, newScope, pkgs, stdenv, cmake, libstdcxxHook
|
{ lowPrio, newScope, pkgs, stdenv, cmake, libstdcxxHook
|
||||||
, libxml2, python, isl, fetchurl, overrideCC, wrapCCWith, wrapBintoolsWith
|
, libxml2, python3, isl, fetchurl, overrideCC, wrapCCWith, wrapBintoolsWith
|
||||||
, buildLlvmTools # tools, but from the previous stage, for cross
|
, buildLlvmTools # tools, but from the previous stage, for cross
|
||||||
, targetLlvmLibraries # libraries, but from the next stage, for cross
|
, targetLlvmLibraries # libraries, but from the next stage, for cross
|
||||||
}:
|
}:
|
||||||
@ -16,7 +16,7 @@ let
|
|||||||
clang-tools-extra_src = fetch "clang-tools-extra" "01vgzd4k1q93nfs8gyl83mjlc4x0qsgfqw32lacbjzdxg0mdfvxj";
|
clang-tools-extra_src = fetch "clang-tools-extra" "01vgzd4k1q93nfs8gyl83mjlc4x0qsgfqw32lacbjzdxg0mdfvxj";
|
||||||
|
|
||||||
tools = stdenv.lib.makeExtensible (tools: let
|
tools = stdenv.lib.makeExtensible (tools: let
|
||||||
callPackage = newScope (tools // { inherit stdenv cmake libxml2 python isl release_version version fetch; });
|
callPackage = newScope (tools // { inherit stdenv cmake libxml2 python3 isl release_version version fetch; });
|
||||||
mkExtraBuildCommands = cc: ''
|
mkExtraBuildCommands = cc: ''
|
||||||
rsrc="$out/resource-root"
|
rsrc="$out/resource-root"
|
||||||
mkdir "$rsrc"
|
mkdir "$rsrc"
|
||||||
@ -42,12 +42,12 @@ let
|
|||||||
|
|
||||||
llvm-manpages = lowPrio (tools.llvm.override {
|
llvm-manpages = lowPrio (tools.llvm.override {
|
||||||
enableManpages = true;
|
enableManpages = true;
|
||||||
python = pkgs.python; # don't use python-boot
|
python3 = pkgs.python3; # don't use python-boot
|
||||||
});
|
});
|
||||||
|
|
||||||
clang-manpages = lowPrio (tools.clang-unwrapped.override {
|
clang-manpages = lowPrio (tools.clang-unwrapped.override {
|
||||||
enableManpages = true;
|
enableManpages = true;
|
||||||
python = pkgs.python; # don't use python-boot
|
python3 = pkgs.python3; # don't use python-boot
|
||||||
});
|
});
|
||||||
|
|
||||||
libclang = tools.clang-unwrapped.lib;
|
libclang = tools.clang-unwrapped.lib;
|
||||||
@ -162,7 +162,7 @@ let
|
|||||||
});
|
});
|
||||||
|
|
||||||
libraries = stdenv.lib.makeExtensible (libraries: let
|
libraries = stdenv.lib.makeExtensible (libraries: let
|
||||||
callPackage = newScope (libraries // buildLlvmTools // { inherit stdenv cmake libxml2 python isl release_version version fetch; });
|
callPackage = newScope (libraries // buildLlvmTools // { inherit stdenv cmake libxml2 python3 isl release_version version fetch; });
|
||||||
in {
|
in {
|
||||||
|
|
||||||
compiler-rt = callPackage ./compiler-rt.nix ({} //
|
compiler-rt = callPackage ./compiler-rt.nix ({} //
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, fetch, cmake, python, libcxxabi, fixDarwinDylibNames, version
|
{ lib, stdenv, fetch, cmake, python3, libcxxabi, fixDarwinDylibNames, version
|
||||||
, enableShared ? true }:
|
, enableShared ? true }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
@ -21,7 +21,7 @@ stdenv.mkDerivation {
|
|||||||
patchShebangs utils/cat_files.py
|
patchShebangs utils/cat_files.py
|
||||||
'';
|
'';
|
||||||
nativeBuildInputs = [ cmake ]
|
nativeBuildInputs = [ cmake ]
|
||||||
++ stdenv.lib.optional (stdenv.hostPlatform.isMusl || stdenv.hostPlatform.isWasi) python;
|
++ stdenv.lib.optional (stdenv.hostPlatform.isMusl || stdenv.hostPlatform.isWasi) python3;
|
||||||
|
|
||||||
buildInputs = [ libcxxabi ] ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
buildInputs = [ libcxxabi ] ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
, libxml2
|
, libxml2
|
||||||
, llvm
|
, llvm
|
||||||
, clang-unwrapped
|
, clang-unwrapped
|
||||||
, python
|
, python3
|
||||||
, version
|
, version
|
||||||
, darwin
|
, darwin
|
||||||
, lit
|
, lit
|
||||||
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
patches = [ ./lldb-procfs.patch ];
|
patches = [ ./lldb-procfs.patch ];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python which swig lit ];
|
nativeBuildInputs = [ cmake python3 which swig lit ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
ncurses
|
ncurses
|
||||||
zlib
|
zlib
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, fetch
|
, fetch
|
||||||
, cmake
|
, cmake
|
||||||
, python
|
, python3
|
||||||
, libffi
|
, libffi
|
||||||
, libbfd
|
, libbfd
|
||||||
, libpfm
|
, libpfm
|
||||||
@ -46,8 +46,8 @@ in stdenv.mkDerivation (rec {
|
|||||||
outputs = [ "out" "python" ]
|
outputs = [ "out" "python" ]
|
||||||
++ optional enableSharedLibraries "lib";
|
++ optional enableSharedLibraries "lib";
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python ]
|
nativeBuildInputs = [ cmake python3 ]
|
||||||
++ optionals enableManpages [ python.pkgs.sphinx python.pkgs.recommonmark ];
|
++ optionals enableManpages [ python3.pkgs.sphinx python3.pkgs.recommonmark ];
|
||||||
|
|
||||||
buildInputs = [ libxml2 libffi ]
|
buildInputs = [ libxml2 libffi ]
|
||||||
++ optional enablePFM libpfm; # exegesis
|
++ optional enablePFM libpfm; # exegesis
|
||||||
@ -134,7 +134,7 @@ in stdenv.mkDerivation (rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/lib
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/lib
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
@ -77,7 +77,7 @@ stdenv.mkDerivation rec {
|
|||||||
chmod u+x $(pwd)/../${usr_prefix}/bin/mlton
|
chmod u+x $(pwd)/../${usr_prefix}/bin/mlton
|
||||||
|
|
||||||
# So the builder runs the binary compiler with gmp.
|
# So the builder runs the binary compiler with gmp.
|
||||||
export LD_LIBRARY_PATH=${gmp.out}/lib:$LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH=${gmp.out}/lib''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH
|
||||||
|
|
||||||
'' + stdenv.lib.optionalString stdenv.isLinux ''
|
'' + stdenv.lib.optionalString stdenv.isLinux ''
|
||||||
# Patch ELF interpreter.
|
# Patch ELF interpreter.
|
||||||
|
@ -132,9 +132,14 @@ in stdenv.mkDerivation rec {
|
|||||||
outputs = [ "out" "man" "doc" ];
|
outputs = [ "out" "man" "doc" ];
|
||||||
setOutputFlags = false;
|
setOutputFlags = false;
|
||||||
|
|
||||||
# remove references to llvm-config in lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/librustc_codegen_llvm-llvm.so
|
|
||||||
# and thus a transitive dependency on ncurses
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
# install rustc-dev components. Necessary to build rls, clippy...
|
||||||
|
python x.py dist rustc-dev
|
||||||
|
tar xf build/dist/rustc-dev*tar.gz
|
||||||
|
cp -r rustc-dev*/rustc-dev*/lib/* $out/lib/
|
||||||
|
|
||||||
|
# remove references to llvm-config in lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/librustc_codegen_llvm-llvm.so
|
||||||
|
# and thus a transitive dependency on ncurses
|
||||||
find $out/lib -name "*.so" -type f -exec remove-references-to -t ${llvmShared} '{}' '+'
|
find $out/lib -name "*.so" -type f -exec remove-references-to -t ${llvmShared} '{}' '+'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ stdenv.mkDerivation rec {
|
|||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
while IFS= read -r -d ''' dir
|
while IFS= read -r -d ''' dir
|
||||||
do
|
do
|
||||||
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/$dir
|
LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$(pwd)/$dir
|
||||||
export LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH
|
||||||
done < <(find . -type d -print0)
|
done < <(find . -type d -print0)
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ in stdenv.mkDerivation {
|
|||||||
preCheck = ''
|
preCheck = ''
|
||||||
# Make `libgcc_s.so' visible for `pthread_cancel'.
|
# Make `libgcc_s.so' visible for `pthread_cancel'.
|
||||||
export LD_LIBRARY_PATH=\
|
export LD_LIBRARY_PATH=\
|
||||||
"$(dirname $(echo ${stdenv.cc.cc.lib}/lib*/libgcc_s.so)):$LD_LIBRARY_PATH"
|
"$(dirname $(echo ${stdenv.cc.cc.lib}/lib*/libgcc_s.so))''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
|
|||||||
configureFlags = [ "--enable-release" ];
|
configureFlags = [ "--enable-release" ];
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${llvm}/lib make check
|
LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}${llvm}/lib make check
|
||||||
'';
|
'';
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/pure --prefix LD_LIBRARY_PATH : ${llvm}/lib
|
wrapProgram $out/bin/pure --prefix LD_LIBRARY_PATH : ${llvm}/lib
|
||||||
|
@ -1,103 +0,0 @@
|
|||||||
{ stdenv, fetchurl, configd, CF, coreutils }:
|
|
||||||
|
|
||||||
with stdenv.lib;
|
|
||||||
|
|
||||||
let
|
|
||||||
|
|
||||||
mkPaths = paths: {
|
|
||||||
C_INCLUDE_PATH = makeSearchPathOutput "dev" "include" paths;
|
|
||||||
LIBRARY_PATH = makeLibraryPath paths;
|
|
||||||
};
|
|
||||||
|
|
||||||
in
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
pname = "python-boot";
|
|
||||||
version = "2.7.12";
|
|
||||||
libPrefix = "python2.7";
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://www.python.org/ftp/python/2.7.12/Python-${version}.tar.xz";
|
|
||||||
sha256 = "0y7rl603vmwlxm6ilkhc51rx2mfj14ckcz40xxgs0ljnvlhp30yp";
|
|
||||||
};
|
|
||||||
|
|
||||||
inherit (mkPaths buildInputs) C_INCLUDE_PATH LIBRARY_PATH;
|
|
||||||
|
|
||||||
LDFLAGS = optionalString (!stdenv.isDarwin) "-lgcc_s";
|
|
||||||
NIX_CFLAGS_COMPILE = optionalString stdenv.isDarwin "-msse2";
|
|
||||||
|
|
||||||
buildInputs = optionals stdenv.isDarwin [ CF configd ];
|
|
||||||
|
|
||||||
patches =
|
|
||||||
[ # Look in C_INCLUDE_PATH and LIBRARY_PATH for stuff.
|
|
||||||
./search-path.patch
|
|
||||||
|
|
||||||
# Python recompiles a Python if the mtime stored *in* the
|
|
||||||
# pyc/pyo file differs from the mtime of the source file. This
|
|
||||||
# doesn't work in Nix because Nix changes the mtime of files in
|
|
||||||
# the Nix store to 1. So treat that as a special case.
|
|
||||||
./nix-store-mtime.patch
|
|
||||||
|
|
||||||
# patch python to put zero timestamp into pyc
|
|
||||||
# if DETERMINISTIC_BUILD env var is set
|
|
||||||
./deterministic-build.patch
|
|
||||||
];
|
|
||||||
|
|
||||||
# Hack hack hack to stop shit from failing from a missing _scproxy on Darwin. Since
|
|
||||||
# we only use this python for bootstrappy things, it doesn't really matter if it
|
|
||||||
# doesn't have perfect proxy support in urllib :) this just makes it fall back on env
|
|
||||||
# vars instead of attempting to read the proxy configuration automatically, so not a
|
|
||||||
# huge loss even if for whatever reason we did want proxy support.
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace Lib/urllib.py --replace "if sys.platform == 'darwin'" "if False"
|
|
||||||
'';
|
|
||||||
|
|
||||||
DETERMINISTIC_BUILD = 1;
|
|
||||||
|
|
||||||
preConfigure = ''
|
|
||||||
# Purity.
|
|
||||||
for i in /usr /sw /opt /pkg; do
|
|
||||||
substituteInPlace ./setup.py --replace $i /no-such-path
|
|
||||||
done
|
|
||||||
'' + optionalString (stdenv ? cc && stdenv.cc.libc != null) ''
|
|
||||||
for i in Lib/plat-*/regen; do
|
|
||||||
substituteInPlace $i --replace /usr/include/ ${stdenv.cc.libc}/include/
|
|
||||||
done
|
|
||||||
'' + optionalString stdenv.isDarwin ''
|
|
||||||
substituteInPlace configure --replace '`/usr/bin/arch`' '"i386"'
|
|
||||||
substituteInPlace Lib/multiprocessing/__init__.py \
|
|
||||||
--replace 'os.popen(comm)' 'os.popen("${coreutils}/bin/nproc")'
|
|
||||||
'';
|
|
||||||
|
|
||||||
configureFlags = [ "--enable-shared" "--with-threads" "--enable-unicode=ucs4" ]
|
|
||||||
++ optionals stdenv.isCygwin [ "ac_cv_func_bind_textdomain_codeset=yes" ]
|
|
||||||
++ optionals stdenv.isDarwin [ "--disable-toolbox-glue" ];
|
|
||||||
|
|
||||||
postInstall =
|
|
||||||
''
|
|
||||||
ln -s $out/share/man/man1/{python2.7.1.gz,python.1.gz}
|
|
||||||
|
|
||||||
rm "$out"/lib/python*/plat-*/regen # refers to glibc.dev
|
|
||||||
'';
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
|
||||||
|
|
||||||
passthru.pkgs = builtins.throw "python-boot does not support packages, this package is only intended for bootstrapping." {};
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = http://python.org;
|
|
||||||
description = "A high-level dynamically-typed programming language";
|
|
||||||
longDescription = ''
|
|
||||||
Python is a remarkably powerful dynamic programming language that
|
|
||||||
is used in a wide variety of application domains. Some of its key
|
|
||||||
distinguishing features include: clear, readable syntax; strong
|
|
||||||
introspection capabilities; intuitive object orientation; natural
|
|
||||||
expression of procedural code; full modularity, supporting
|
|
||||||
hierarchical packages; exception-based error handling; and very
|
|
||||||
high level dynamic data types.
|
|
||||||
'';
|
|
||||||
license = stdenv.lib.licenses.psfl;
|
|
||||||
platforms = stdenv.lib.platforms.all;
|
|
||||||
maintainers = with stdenv.lib.maintainers; [ lnl7 domenkozar ];
|
|
||||||
};
|
|
||||||
}
|
|
@ -11,7 +11,7 @@
|
|||||||
, tcl ? null, tk ? null, tix ? null, xlibsWrapper ? null, libX11 ? null, x11Support ? false
|
, tcl ? null, tk ? null, tix ? null, xlibsWrapper ? null, libX11 ? null, x11Support ? false
|
||||||
, zlib
|
, zlib
|
||||||
, self
|
, self
|
||||||
, CF, configd, coreutils
|
, configd, coreutils
|
||||||
, python-setup-hook
|
, python-setup-hook
|
||||||
# Some proprietary libs assume UCS2 unicode, especially on darwin :(
|
# Some proprietary libs assume UCS2 unicode, especially on darwin :(
|
||||||
, ucsEncoding ? 4
|
, ucsEncoding ? 4
|
||||||
@ -180,7 +180,7 @@ let
|
|||||||
++ optional stdenv.hostPlatform.isCygwin expat
|
++ optional stdenv.hostPlatform.isCygwin expat
|
||||||
++ [ db gdbm ncurses sqlite readline ]
|
++ [ db gdbm ncurses sqlite readline ]
|
||||||
++ optionals x11Support [ tcl tk xlibsWrapper libX11 ]
|
++ optionals x11Support [ tcl tk xlibsWrapper libX11 ]
|
||||||
++ optionals stdenv.isDarwin ([ CF ] ++ optional (configd != null) configd);
|
++ optional (stdenv.isDarwin && configd != null) configd;
|
||||||
nativeBuildInputs =
|
nativeBuildInputs =
|
||||||
optionals (stdenv.hostPlatform != stdenv.buildPlatform)
|
optionals (stdenv.hostPlatform != stdenv.buildPlatform)
|
||||||
[ buildPackages.stdenv.cc buildPackages.python ];
|
[ buildPackages.stdenv.cc buildPackages.python ];
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
, tcl ? null, tk ? null, tix ? null, libX11 ? null, xorgproto ? null, x11Support ? false
|
, tcl ? null, tk ? null, tix ? null, libX11 ? null, xorgproto ? null, x11Support ? false
|
||||||
, zlib
|
, zlib
|
||||||
, self
|
, self
|
||||||
, CF, configd
|
, configd
|
||||||
, python-setup-hook
|
, python-setup-hook
|
||||||
, nukeReferences
|
, nukeReferences
|
||||||
# For the Python package set
|
# For the Python package set
|
||||||
@ -57,10 +57,10 @@ let
|
|||||||
pythonForBuild
|
pythonForBuild
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = filter (p: p != null) [
|
buildInputs = filter (p: p != null) ([
|
||||||
zlib bzip2 expat lzma libffi gdbm sqlite readline ncurses openssl ]
|
zlib bzip2 expat lzma libffi gdbm sqlite readline ncurses openssl ]
|
||||||
++ optionals x11Support [ tcl tk libX11 xorgproto ]
|
++ optionals x11Support [ tcl tk libX11 xorgproto ]
|
||||||
++ optionals stdenv.isDarwin [ CF configd ];
|
++ optionals stdenv.isDarwin [ configd ]);
|
||||||
|
|
||||||
hasDistutilsCxxPatch = !(stdenv.cc.isGNU or false);
|
hasDistutilsCxxPatch = !(stdenv.cc.isGNU or false);
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ in {
|
|||||||
suffix = "";
|
suffix = "";
|
||||||
};
|
};
|
||||||
sha256 = "0hds28cg226m8j8sr394nm9yc4gxhvlv109w0avsf2mxrlrz0hsd";
|
sha256 = "0hds28cg226m8j8sr394nm9yc4gxhvlv109w0avsf2mxrlrz0hsd";
|
||||||
inherit (darwin) CF configd;
|
inherit (darwin) configd;
|
||||||
inherit passthruFun;
|
inherit passthruFun;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ in {
|
|||||||
suffix = "";
|
suffix = "";
|
||||||
};
|
};
|
||||||
sha256 = "0jdh9pvx6m6lfz2liwvvhn7vks7qrysqgwn517fkpxb77b33fjn2";
|
sha256 = "0jdh9pvx6m6lfz2liwvvhn7vks7qrysqgwn517fkpxb77b33fjn2";
|
||||||
inherit (darwin) CF configd;
|
inherit (darwin) configd;
|
||||||
inherit passthruFun;
|
inherit passthruFun;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -83,7 +83,7 @@ in {
|
|||||||
suffix = "";
|
suffix = "";
|
||||||
};
|
};
|
||||||
sha256 = "1pj0mz1xl27khi250p29c0y99vxg662js8zp71aprkf8i8wkr0qa";
|
sha256 = "1pj0mz1xl27khi250p29c0y99vxg662js8zp71aprkf8i8wkr0qa";
|
||||||
inherit (darwin) CF configd;
|
inherit (darwin) configd;
|
||||||
inherit passthruFun;
|
inherit passthruFun;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -96,7 +96,7 @@ in {
|
|||||||
suffix = "";
|
suffix = "";
|
||||||
};
|
};
|
||||||
sha256 = "0gskry19ylw91p38pdq36qcgk6h3x5i4ia0ik977kw2943kwr8jm";
|
sha256 = "0gskry19ylw91p38pdq36qcgk6h3x5i4ia0ik977kw2943kwr8jm";
|
||||||
inherit (darwin) CF configd;
|
inherit (darwin) configd;
|
||||||
inherit passthruFun;
|
inherit passthruFun;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ in {
|
|||||||
suffix = "";
|
suffix = "";
|
||||||
};
|
};
|
||||||
sha256 = "1s4lwn5vzsajlc88m6hkghsvnjw4d00l2dsgng0m2w6vyqbl32bm";
|
sha256 = "1s4lwn5vzsajlc88m6hkghsvnjw4d00l2dsgng0m2w6vyqbl32bm";
|
||||||
inherit (darwin) CF configd;
|
inherit (darwin) configd;
|
||||||
inherit passthruFun;
|
inherit passthruFun;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -122,7 +122,7 @@ in {
|
|||||||
suffix = "a2";
|
suffix = "a2";
|
||||||
};
|
};
|
||||||
sha256 = "02a301bdcldin05ksdg8xw8xr6gdkpf73p0cabvn9rdl6yhkr3q8";
|
sha256 = "02a301bdcldin05ksdg8xw8xr6gdkpf73p0cabvn9rdl6yhkr3q8";
|
||||||
inherit (darwin) CF configd;
|
inherit (darwin) configd;
|
||||||
inherit passthruFun;
|
inherit passthruFun;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -136,6 +136,7 @@ in {
|
|||||||
ncurses = null;
|
ncurses = null;
|
||||||
gdbm = null;
|
gdbm = null;
|
||||||
sqlite = null;
|
sqlite = null;
|
||||||
|
configd = null;
|
||||||
stripConfig = true;
|
stripConfig = true;
|
||||||
stripIdlelib = true;
|
stripIdlelib = true;
|
||||||
stripTests = true;
|
stripTests = true;
|
||||||
|
@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH=`pwd`''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH
|
||||||
'';
|
'';
|
||||||
|
|
||||||
outputs = [ "dev" "out" ];
|
outputs = [ "dev" "out" ];
|
||||||
|
@ -22,8 +22,8 @@ stdenv.mkDerivation rec {
|
|||||||
doCheck = true;
|
doCheck = true;
|
||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/lib
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/lib
|
||||||
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$PWD/lib
|
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}$PWD/lib
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
|
|||||||
cmakeFlags = [ "-DCTESTS=ON" ];
|
cmakeFlags = [ "-DCTESTS=ON" ];
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH=`pwd`''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH
|
||||||
'';
|
'';
|
||||||
checkTarget = "criterion_tests test";
|
checkTarget = "criterion_tests test";
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:`pwd`/Cutelyst:`pwd`/EventLoopEPoll"
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}`pwd`/Cutelyst:`pwd`/EventLoopEPoll"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
|
@ -69,7 +69,7 @@ stdenv.mkDerivation rec {
|
|||||||
''}
|
''}
|
||||||
|
|
||||||
${stdenv.lib.optionalString stdenv.isDarwin ''
|
${stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:`pwd`/lib
|
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}`pwd`/lib
|
||||||
# Removing tests depending on charset conversion
|
# Removing tests depending on charset conversion
|
||||||
substituteInPlace ../test/Makefile --replace "conversions.sh" ""
|
substituteInPlace ../test/Makefile --replace "conversions.sh" ""
|
||||||
rm -f ../tests/bugfixes/redmine/test_issue_460.py
|
rm -f ../tests/bugfixes/redmine/test_issue_460.py
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
{ stdenv, fetchurl, nixosTests, fixDarwinDylibNames, meson, ninja, pkgconfig, gettext, python3, libxml2, libxslt, docbook_xsl
|
{ stdenv, fetchurl, nixosTests, fixDarwinDylibNames, meson, ninja, pkgconfig, gettext, python3, libxml2, libxslt, docbook_xsl
|
||||||
, docbook_xml_dtd_43, gtk-doc, glib, libtiff, libjpeg, libpng, libX11, gnome3
|
, docbook_xml_dtd_43, gtk-doc, glib, libtiff, libjpeg, libpng, libX11, gnome3
|
||||||
, gobject-introspection, doCheck ? false, makeWrapper }:
|
, gobject-introspection, doCheck ? false, makeWrapper
|
||||||
|
, fetchpatch
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "gdk-pixbuf";
|
pname = "gdk-pixbuf";
|
||||||
@ -16,6 +18,12 @@ in stdenv.mkDerivation rec {
|
|||||||
patches = [
|
patches = [
|
||||||
# Move installed tests to a separate output
|
# Move installed tests to a separate output
|
||||||
./installed-tests-path.patch
|
./installed-tests-path.patch
|
||||||
|
# Temporary until the fix is released.
|
||||||
|
(fetchpatch {
|
||||||
|
name = "tests-circular-table.patch";
|
||||||
|
url = "https://gitlab.gnome.org/GNOME/gdk-pixbuf/merge_requests/59.diff";
|
||||||
|
sha256 = "0kaflac3mrh6031hwxk7j9fhli775hc503818h8zfl6b28zyn93f";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
outputs = [ "out" "dev" "man" "devdoc" "installedTests" ];
|
outputs = [ "out" "dev" "man" "devdoc" "installedTests" ];
|
||||||
|
@ -18,13 +18,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "glib-networking";
|
pname = "glib-networking";
|
||||||
version = "2.62.2";
|
version = "2.62.3";
|
||||||
|
|
||||||
outputs = [ "out" "installedTests" ];
|
outputs = [ "out" "installedTests" ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "0i2mw75297ql72h47vyvff3hqa0kcmqybblj52fqrarb0kfbhi06";
|
sha256 = "1xvzixzwwh8wk8f79qbm2gl7hp3hj1a7skv281v5qsx74dpzi8cc";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -160,7 +160,7 @@ stdenv.mkDerivation rec {
|
|||||||
checkInputs = [ tzdata libxml2 desktop-file-utils shared-mime-info ];
|
checkInputs = [ tzdata libxml2 desktop-file-utils shared-mime-info ];
|
||||||
|
|
||||||
preCheck = optionalString doCheck ''
|
preCheck = optionalString doCheck ''
|
||||||
export LD_LIBRARY_PATH="$NIX_BUILD_TOP/${pname}-${version}/glib/.libs:$LD_LIBRARY_PATH"
|
export LD_LIBRARY_PATH="$NIX_BUILD_TOP/${pname}-${version}/glib/.libs''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
|
||||||
export TZDIR="${tzdata}/share/zoneinfo"
|
export TZDIR="${tzdata}/share/zoneinfo"
|
||||||
export XDG_CACHE_HOME="$TMP"
|
export XDG_CACHE_HOME="$TMP"
|
||||||
export XDG_RUNTIME_HOME="$TMP"
|
export XDG_RUNTIME_HOME="$TMP"
|
||||||
|
@ -97,6 +97,15 @@ stdenv.mkDerivation ({
|
|||||||
./CVE-2018-11236.patch
|
./CVE-2018-11236.patch
|
||||||
# https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f51c8367685dc888a02f7304c729ed5277904aff
|
# https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f51c8367685dc888a02f7304c729ed5277904aff
|
||||||
./CVE-2018-11237.patch
|
./CVE-2018-11237.patch
|
||||||
|
|
||||||
|
# Remove after upgrading to glibc 2.28+
|
||||||
|
# Change backported from upstream
|
||||||
|
# https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9c79cec8cd2a6996a73aa83d79b360ffd4bebde6
|
||||||
|
./fix-out-of-bounds-access-in-findidxwc.patch
|
||||||
|
|
||||||
|
# Remove after upgrading to glibc 2.28+
|
||||||
|
# https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=21526a507df8f1b2e37492193a754534d8938c0b
|
||||||
|
./fix-out-of-bounds-access-in-ibm-1390-converter.patch
|
||||||
]
|
]
|
||||||
++ lib.optionals stdenv.isx86_64 [
|
++ lib.optionals stdenv.isx86_64 [
|
||||||
./fix-x64-abi.patch
|
./fix-x64-abi.patch
|
||||||
|
@ -49,20 +49,17 @@ callPackage ./common.nix { inherit stdenv; } {
|
|||||||
++ stdenv.lib.optional stdenv.hostPlatform.isMusl "pie";
|
++ stdenv.lib.optional stdenv.hostPlatform.isMusl "pie";
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = stdenv.lib.concatStringsSep " "
|
NIX_CFLAGS_COMPILE = stdenv.lib.concatStringsSep " "
|
||||||
(if !stdenv.hostPlatform.isMusl
|
(builtins.concatLists [
|
||||||
# TODO: This (returning a string or `null`, instead of a list) is to
|
(stdenv.lib.optionals withGd gdCflags)
|
||||||
# not trigger a mass rebuild due to the introduction of the
|
# Fix -Werror build failure when building glibc with musl with GCC >= 8, see:
|
||||||
# musl-specific flags below.
|
# https://github.com/NixOS/nixpkgs/pull/68244#issuecomment-544307798
|
||||||
# At next change to non-musl glibc builds, remove this `then`
|
(stdenv.lib.optional stdenv.hostPlatform.isMusl "-Wno-error=attribute-alias")
|
||||||
# and the above condition, instead keeping only the `else` below.
|
(stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
||||||
then (stdenv.lib.optionals withGd gdCflags)
|
# Ignore "error: '__EI___errno_location' specifies less restrictive attributes than its target '__errno_location'"
|
||||||
else
|
# New warning as of GCC 9
|
||||||
(builtins.concatLists [
|
"-Wno-error=missing-attributes"
|
||||||
(stdenv.lib.optionals withGd gdCflags)
|
])
|
||||||
# Fix -Werror build failure when building glibc with musl with GCC >= 8, see:
|
]);
|
||||||
# https://github.com/NixOS/nixpkgs/pull/68244#issuecomment-544307798
|
|
||||||
(stdenv.lib.optional stdenv.hostPlatform.isMusl "-Wno-error=attribute-alias")
|
|
||||||
]));
|
|
||||||
|
|
||||||
# When building glibc from bootstrap-tools, we need libgcc_s at RPATH for
|
# When building glibc from bootstrap-tools, we need libgcc_s at RPATH for
|
||||||
# any program we run, because the gcc will have been placed at a new
|
# any program we run, because the gcc will have been placed at a new
|
||||||
|
@ -0,0 +1,26 @@
|
|||||||
|
diff -ur glibc-2.27/locale/weightwc.h glibc-2.27-patched/locale/weightwc.h
|
||||||
|
--- glibc-2.27/locale/weightwc.h 2018-02-02 01:17:18.000000000 +0900
|
||||||
|
+++ glibc-2.27-patched/locale/weightwc.h 2020-01-12 04:54:16.044440602 +0900
|
||||||
|
@@ -94,19 +94,19 @@
|
||||||
|
if (cp[cnt] != usrc[cnt])
|
||||||
|
break;
|
||||||
|
|
||||||
|
- if (cnt < nhere - 1)
|
||||||
|
+ if (cnt < nhere - 1 || cnt == len)
|
||||||
|
{
|
||||||
|
cp += 2 * nhere;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
- if (cp[nhere - 1] > usrc[nhere -1])
|
||||||
|
+ if (cp[nhere - 1] > usrc[nhere - 1])
|
||||||
|
{
|
||||||
|
cp += 2 * nhere;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
- if (cp[2 * nhere - 1] < usrc[nhere -1])
|
||||||
|
+ if (cp[2 * nhere - 1] < usrc[nhere - 1])
|
||||||
|
{
|
||||||
|
cp += 2 * nhere;
|
||||||
|
continue;
|
@ -0,0 +1,35 @@
|
|||||||
|
From 21526a507df8f1b2e37492193a754534d8938c0b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andreas Schwab <schwab@suse.de>
|
||||||
|
Date: Tue, 24 Jul 2018 14:08:34 +0200
|
||||||
|
Subject: [PATCH] Fix out-of-bounds access in IBM-1390 converter (bug 23448)
|
||||||
|
|
||||||
|
The IBM-1390 converter can consume/produce two UCS4 characters in each
|
||||||
|
loop.
|
||||||
|
---
|
||||||
|
ChangeLog | 6 ++++++
|
||||||
|
iconvdata/ibm1364.c | 2 ++
|
||||||
|
2 files changed, 8 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/iconvdata/ibm1364.c b/iconvdata/ibm1364.c
|
||||||
|
index b833273..517fe60 100644
|
||||||
|
--- a/iconvdata/ibm1364.c
|
||||||
|
+++ b/iconvdata/ibm1364.c
|
||||||
|
@@ -150,6 +150,7 @@ enum
|
||||||
|
#define MIN_NEEDED_INPUT MIN_NEEDED_FROM
|
||||||
|
#define MAX_NEEDED_INPUT MAX_NEEDED_FROM
|
||||||
|
#define MIN_NEEDED_OUTPUT MIN_NEEDED_TO
|
||||||
|
+#define MAX_NEEDED_OUTPUT MAX_NEEDED_TO
|
||||||
|
#define LOOPFCT FROM_LOOP
|
||||||
|
#define BODY \
|
||||||
|
{ \
|
||||||
|
@@ -296,6 +297,7 @@ enum
|
||||||
|
|
||||||
|
/* Next, define the other direction. */
|
||||||
|
#define MIN_NEEDED_INPUT MIN_NEEDED_TO
|
||||||
|
+#define MAX_NEEDED_INPUT MAX_NEEDED_TO
|
||||||
|
#define MIN_NEEDED_OUTPUT MIN_NEEDED_FROM
|
||||||
|
#define MAX_NEEDED_OUTPUT MAX_NEEDED_FROM
|
||||||
|
#define LOOPFCT TO_LOOP
|
||||||
|
--
|
||||||
|
2.9.3
|
||||||
|
|
@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
export LD_LIBRARY_PATH=$(pwd):$LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH=$(pwd)''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH
|
||||||
'';
|
'';
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=unknown-warning-option";
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=unknown-warning-option";
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ fetchurl, fetchpatch, stdenv, autoreconfHook
|
{ fetchurl, fetchpatch, stdenv, autoreconfHook
|
||||||
, perl, bison2, flex, pkgconfig, glib, libxml2, libintl, libunwind
|
, perl, bison, flex, pkgconfig, glib, libxml2, libintl, libunwind
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -15,11 +15,15 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook flex perl pkgconfig libintl bison2 glib ];
|
nativeBuildInputs = [ autoreconfHook flex perl pkgconfig libintl bison glib ];
|
||||||
buildInputs = stdenv.lib.optional stdenv.isDarwin libunwind;
|
buildInputs = stdenv.lib.optional stdenv.isDarwin libunwind;
|
||||||
propagatedBuildInputs = [ glib libxml2 ];
|
propagatedBuildInputs = [ glib libxml2 ];
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/flathub/com.xnview.XnRetro/raw/fec03bbe240f45aa10d7d4eea9d6f066d9b6ac9c/gstreamer-0.10.36-bison3.patch";
|
||||||
|
sha256 = "05aarg3yzl5jx3z5838ixv392g0r3kbsi2vfqniaxmidhnfzij2y";
|
||||||
|
})
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
url = "https://github.com/GStreamer/common/commit/03a0e5736761a72d4ed880e8c485bbf9e4a8ea47.patch";
|
url = "https://github.com/GStreamer/common/commit/03a0e5736761a72d4ed880e8c485bbf9e4a8ea47.patch";
|
||||||
sha256 = "0rin3x01yy78ky3smmhbwlph18hhym18q4x9w6ddiqajg5lk4xhm";
|
sha256 = "0rin3x01yy78ky3smmhbwlph18hhym18q4x9w6ddiqajg5lk4xhm";
|
||||||
|
@ -48,7 +48,7 @@ with stdenv.lib;
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "gtk+3";
|
pname = "gtk+3";
|
||||||
version = "3.24.12";
|
version = "3.24.13";
|
||||||
|
|
||||||
outputs = [ "out" "dev" ] ++ optional withGtkDoc "devdoc";
|
outputs = [ "out" "dev" ] ++ optional withGtkDoc "devdoc";
|
||||||
outputBin = "dev";
|
outputBin = "dev";
|
||||||
@ -60,7 +60,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/gtk+/${stdenv.lib.versions.majorMinor version}/gtk+-${version}.tar.xz";
|
url = "mirror://gnome/sources/gtk+/${stdenv.lib.versions.majorMinor version}/gtk+-${version}.tar.xz";
|
||||||
sha256 = "10xyyhlfb0yk4hglngxh2zsv9xrxkqv343df8h01dvagc6jyp10k";
|
sha256 = "1a9hi7k59q0kqx0n3xhsk1ly23w9g9ncllnay1756g0yrww5qxsc";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -23,9 +23,9 @@ stdenv.mkDerivation rec {
|
|||||||
# Hack to be able to run the test, broken because we use
|
# Hack to be able to run the test, broken because we use
|
||||||
# CMAKE_SKIP_BUILD_RPATH to avoid cmake resetting rpath on install
|
# CMAKE_SKIP_BUILD_RPATH to avoid cmake resetting rpath on install
|
||||||
preBuild = if stdenv.isDarwin then ''
|
preBuild = if stdenv.isDarwin then ''
|
||||||
export DYLD_LIBRARY_PATH="`pwd`/src/lib_json:$DYLD_LIBRARY_PATH"
|
export DYLD_LIBRARY_PATH="`pwd`/src/lib_json''${DYLD_LIBRARY_PATH:+:}$DYLD_LIBRARY_PATH"
|
||||||
'' else ''
|
'' else ''
|
||||||
export LD_LIBRARY_PATH="`pwd`/src/lib_json:$LD_LIBRARY_PATH"
|
export LD_LIBRARY_PATH="`pwd`/src/lib_json''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python ];
|
nativeBuildInputs = [ cmake python ];
|
||||||
|
@ -10,13 +10,13 @@ assert xarSupport -> libxml2 != null;
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libarchive";
|
pname = "libarchive";
|
||||||
version = "3.4.0";
|
version = "3.4.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "libarchive";
|
owner = "libarchive";
|
||||||
repo = "libarchive";
|
repo = "libarchive";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "063f5bw9qmksj3iy6094qxwawx174cx00q1fg6l698wqw7xn8ihq";
|
sha256 = "0g0kzfl01zy1aabr5jcrh8480mb16vh3pacdhg6mm2bdv2f5w8z1";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "lib" "dev" ];
|
outputs = [ "out" "lib" "dev" ];
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libedit";
|
pname = "libedit";
|
||||||
version = "20191025-3.1";
|
version = "20191231-3.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://thrysoee.dk/editline/${pname}-${version}.tar.gz";
|
url = "https://thrysoee.dk/editline/${pname}-${version}.tar.gz";
|
||||||
sha256 = "0fdznw6fklis39xqk30ihw8dl8kdw9fzq1z42jmbyy6lc1k07zvd";
|
sha256 = "0wch48nml28jj6ild889745dsg2agm7mpvrmbl1gi98nw6vjrf6v";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
@ -32,8 +32,8 @@ stdenv.mkDerivation rec {
|
|||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD${placeholder "out"}/lib
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD${placeholder "out"}/lib
|
||||||
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$PWD${placeholder "out"}/lib
|
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}$PWD${placeholder "out"}/lib
|
||||||
'';
|
'';
|
||||||
checkTarget = "tests test";
|
checkTarget = "tests test";
|
||||||
|
|
||||||
|
@ -32,7 +32,6 @@ stdenv.mkDerivation rec {
|
|||||||
outputs = [ "bin" "dev" "out" "man" "doc" ]
|
outputs = [ "bin" "dev" "out" "man" "doc" ]
|
||||||
++ lib.optional pythonSupport "py"
|
++ lib.optional pythonSupport "py"
|
||||||
++ lib.optional (enableStatic && enableShared) "static";
|
++ lib.optional (enableStatic && enableShared) "static";
|
||||||
propagatedBuildOutputs = [ "out" "bin" ] ++ lib.optional pythonSupport "py";
|
|
||||||
|
|
||||||
buildInputs = lib.optional pythonSupport python
|
buildInputs = lib.optional pythonSupport python
|
||||||
++ lib.optional (pythonSupport && python?isPy3 && python.isPy3) ncurses
|
++ lib.optional (pythonSupport && python?isPy3 && python.isPy3) ncurses
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "19.3.1";
|
version = "19.3.2";
|
||||||
branch = versions.major version;
|
branch = versions.major version;
|
||||||
in
|
in
|
||||||
|
|
||||||
@ -42,7 +42,7 @@ stdenv.mkDerivation {
|
|||||||
"ftp://ftp.freedesktop.org/pub/mesa/older-versions/${branch}.x/${version}/mesa-${version}.tar.xz"
|
"ftp://ftp.freedesktop.org/pub/mesa/older-versions/${branch}.x/${version}/mesa-${version}.tar.xz"
|
||||||
"https://mesa.freedesktop.org/archive/mesa-${version}.tar.xz"
|
"https://mesa.freedesktop.org/archive/mesa-${version}.tar.xz"
|
||||||
];
|
];
|
||||||
sha256 = "0ndfpqry08s74yw4x3ydyhim6v4ywg0b4yhaazq7zaankjv1v5fd";
|
sha256 = "1hg1gvcwvayksrdh9z8rfz66h3z1ffspmm2qgyy2nd8n8qrfwfjf";
|
||||||
};
|
};
|
||||||
|
|
||||||
prePatch = "patchShebangs .";
|
prePatch = "patchShebangs .";
|
||||||
|
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
|
|||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH"
|
export LD_LIBRARY_PATH="$(pwd)''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
|
||||||
export DYLD_FALLBACK_LIBRARY_PATH="$(pwd):$DYLD_FALLBACK_LIBRARY_PATH"
|
export DYLD_FALLBACK_LIBRARY_PATH="$(pwd):$DYLD_FALLBACK_LIBRARY_PATH"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
export LD_LIBRARY_PATH="`pwd`/lib:$LD_LIBRARY_PATH"
|
export LD_LIBRARY_PATH="`pwd`/lib''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
|
||||||
configureFlags+="
|
configureFlags+="
|
||||||
-docdir $out/share/doc/${name}
|
-docdir $out/share/doc/${name}
|
||||||
-plugindir $out/lib/qt4/plugins
|
-plugindir $out/lib/qt4/plugins
|
||||||
|
@ -164,7 +164,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
setOutputFlags = false;
|
setOutputFlags = false;
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
export LD_LIBRARY_PATH="$PWD/lib:$PWD/plugins/platforms:$LD_LIBRARY_PATH"
|
export LD_LIBRARY_PATH="$PWD/lib:$PWD/plugins/platforms''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
|
||||||
${lib.optionalString (compareVersion "5.9.0" < 0) ''
|
${lib.optionalString (compareVersion "5.9.0" < 0) ''
|
||||||
# We need to set LD to CXX or otherwise we get nasty compile errors
|
# We need to set LD to CXX or otherwise we get nasty compile errors
|
||||||
export LD=$CXX
|
export LD=$CXX
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
, qtbase, qtdeclarative, qtlocation, qtmultimedia, qtsensors, qtwebchannel
|
, qtbase, qtdeclarative, qtlocation, qtmultimedia, qtsensors, qtwebchannel
|
||||||
, fontconfig, gtk2, libwebp, libxml2, libxslt
|
, fontconfig, gtk2, libwebp, libxml2, libxslt
|
||||||
, sqlite, systemd, glib, gst_all_1, cmake
|
, sqlite, systemd, glib, gst_all_1, cmake
|
||||||
, bison2, flex, gdb, gperf, perl, pkgconfig, python2, ruby
|
, bison, flex, gdb, gperf, perl, pkgconfig, python2, ruby
|
||||||
, darwin
|
, darwin
|
||||||
, flashplayerFix ? false
|
, flashplayerFix ? false
|
||||||
}:
|
}:
|
||||||
@ -31,7 +31,7 @@ qtModule {
|
|||||||
++ optionals (stdenv.isDarwin) (with darwin; with apple_sdk.frameworks; [ ICU OpenGL ])
|
++ optionals (stdenv.isDarwin) (with darwin; with apple_sdk.frameworks; [ ICU OpenGL ])
|
||||||
++ optional usingAnnulenWebkitFork hyphen;
|
++ optional usingAnnulenWebkitFork hyphen;
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
bison2 flex gdb gperf perl pkgconfig python2 ruby
|
bison flex gdb gperf perl pkgconfig python2 ruby
|
||||||
] ++ optional usingAnnulenWebkitFork cmake;
|
] ++ optional usingAnnulenWebkitFork cmake;
|
||||||
|
|
||||||
cmakeFlags = optionals usingAnnulenWebkitFork ([ "-DPORT=Qt" ]
|
cmakeFlags = optionals usingAnnulenWebkitFork ([ "-DPORT=Qt" ]
|
||||||
|
@ -30,9 +30,9 @@ stdenv.mkDerivation {
|
|||||||
];
|
];
|
||||||
|
|
||||||
preCheck = if stdenv.isDarwin then ''
|
preCheck = if stdenv.isDarwin then ''
|
||||||
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:`pwd`/lib
|
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}`pwd`/lib
|
||||||
'' else ''
|
'' else ''
|
||||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd`/lib
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}`pwd`/lib
|
||||||
'' + ''
|
'' + ''
|
||||||
# Prevent tests from using all cores
|
# Prevent tests from using all cores
|
||||||
export OMP_NUM_THREADS=2
|
export OMP_NUM_THREADS=2
|
||||||
|
@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
|
|||||||
# Run single threaded
|
# Run single threaded
|
||||||
export OMP_NUM_THREADS=1
|
export OMP_NUM_THREADS=1
|
||||||
|
|
||||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd`/lib
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}`pwd`/lib
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -5,13 +5,13 @@
|
|||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libsrtp";
|
pname = "libsrtp";
|
||||||
version = "2.2.0";
|
version = "2.3.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "cisco";
|
owner = "cisco";
|
||||||
repo = "libsrtp";
|
repo = "libsrtp";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1ac7xs1djb03j131f1gmqyfmrplblid9qqyxahs0shdy707r5ll6";
|
sha256 = "1f7i3jdh1wzdv7zjlz7gs3xw5jqig9zw8z9awsqqcp54f94xdpvd";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, nasm }:
|
{ stdenv, lib, fetchurl, nasm }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "x264";
|
pname = "x264";
|
||||||
@ -9,6 +9,10 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1xv41z04km3rf374xk3ny7v8ibr211ph0j5am0909ln63mphc48f";
|
sha256 = "1xv41z04km3rf374xk3ny7v8ibr211ph0j5am0909ln63mphc48f";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Upstream ./configure greps for (-mcpu|-march|-mfpu) in CFLAGS, which in nix
|
||||||
|
# is put in the cc wrapper anyway.
|
||||||
|
patches = [ ./disable-arm-neon-default.patch ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchShebangs .
|
patchShebangs .
|
||||||
'';
|
'';
|
||||||
@ -17,15 +21,16 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
outputs = [ "out" "lib" "dev" ];
|
outputs = [ "out" "lib" "dev" ];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = lib.optionalString (stdenv.buildPlatform.isx86_64 || stdenv.hostPlatform.isi686) ''
|
||||||
# `AS' is set to the binutils assembler, but we need nasm
|
# `AS' is set to the binutils assembler, but we need nasm
|
||||||
unset AS
|
unset AS
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = [ "--enable-shared" ]
|
configureFlags = [ "--enable-shared" ]
|
||||||
++ stdenv.lib.optional (!stdenv.isi686) "--enable-pic";
|
++ stdenv.lib.optional (!stdenv.isi686) "--enable-pic"
|
||||||
|
++ stdenv.lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "--cross-prefix=${stdenv.cc.targetPrefix}";
|
||||||
|
|
||||||
nativeBuildInputs = [ nasm ];
|
nativeBuildInputs = lib.optional (stdenv.hostPlatform.isx86_64 || stdenv.hostPlatform.isi686) nasm;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Library for encoding H264/AVC video streams";
|
description = "Library for encoding H264/AVC video streams";
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
diff -Naur x264-snapshot-20190517-2245-stable-orig/configure x264-snapshot-20190517-2245-stable/configure
|
||||||
|
--- x264-snapshot-20190517-2245-stable-orig/configure 2020-01-03 19:51:03.041037657 -0500
|
||||||
|
+++ x264-snapshot-20190517-2245-stable/configure 2020-01-03 19:52:15.075034609 -0500
|
||||||
|
@@ -930,9 +930,6 @@
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $asm = auto -a $ARCH = ARM ] ; then
|
||||||
|
- # set flags so neon is built by default
|
||||||
|
- [ $compiler == CL ] || echo $CFLAGS | grep -Eq '(-mcpu|-march|-mfpu)' || CFLAGS="$CFLAGS -mcpu=cortex-a8 -mfpu=neon"
|
||||||
|
-
|
||||||
|
cc_check '' '' '__asm__("add r0, r1, r2");' && define HAVE_ARM_INLINE_ASM
|
||||||
|
if [ $compiler = CL ] && cpp_check '' '' 'defined(_M_ARM) && _M_ARM >= 7' ; then
|
||||||
|
define HAVE_ARMV6
|
@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
|
|||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH"
|
export LD_LIBRARY_PATH="$(pwd)''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
|
||||||
export DYLD_FALLBACK_LIBRARY_PATH="$(pwd):$DYLD_FALLBACK_LIBRARY_PATH"
|
export DYLD_FALLBACK_LIBRARY_PATH="$(pwd):$DYLD_FALLBACK_LIBRARY_PATH"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ stdenv.mkDerivation rec {
|
|||||||
cat > "$out/bin/${cmd}" <<EOF
|
cat > "$out/bin/${cmd}" <<EOF
|
||||||
#!${runtimeShell}
|
#!${runtimeShell}
|
||||||
set -f
|
set -f
|
||||||
LD_LIBRARY_PATH="\$LD_LIBRARY_PATH:$libs" exec $out/pharo "\$@"
|
LD_LIBRARY_PATH="\$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$libs" exec $out/pharo "\$@"
|
||||||
EOF
|
EOF
|
||||||
chmod +x "$out/bin/${cmd}"
|
chmod +x "$out/bin/${cmd}"
|
||||||
ln -s ${libgit2}/lib/libgit2.so* "$out/"
|
ln -s ${libgit2}/lib/libgit2.so* "$out/"
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi }:
|
{ buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, lib
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pycodestyle";
|
pname = "pycodestyle";
|
||||||
@ -6,13 +9,23 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "e40a936c9a450ad81df37f549d676d127b1b66000a6c500caa2b085bc0ca976c";
|
sha256 = "0v4prb05n21bm8650v0a01k1nyqjdmkrsm3zycfxh2j5k9n962p4";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# https://github.com/PyCQA/pycodestyle/blob/2.5.0/tox.ini#L14
|
||||||
|
checkPhase = ''
|
||||||
|
python pycodestyle.py --max-doc-length=72 --testsuite testsuite
|
||||||
|
python pycodestyle.py --statistics pycodestyle.py
|
||||||
|
python pycodestyle.py --max-doc-length=72 --doctest
|
||||||
|
python setup.py test
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python style guide checker (formerly called pep8)";
|
description = "Python style guide checker (formerly called pep8)";
|
||||||
homepage = https://pycodestyle.readthedocs.io;
|
homepage = https://pycodestyle.readthedocs.io;
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ ];
|
maintainers = with maintainers; [
|
||||||
|
kamadorueda
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,15 +1,17 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, runtimeShell,
|
{ lib, buildPythonPackage, fetchFromGitHub, runtimeShell,
|
||||||
nose, dbus, dbus-python, pygobject3,
|
nose, dbus, dbus-python, pygobject3,
|
||||||
which, pyflakes, pycodestyle, bluez, networkmanager
|
which, pyflakes, pycodestyle, bluez, networkmanager
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "python-dbusmock";
|
pname = "python-dbusmock";
|
||||||
version = "0.18.3";
|
version = "0.19";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "martinpitt";
|
||||||
sha256 = "994a178268b6d74aeb158c0f155cd141e9a0cfae14226a764cd022c4949fe242";
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "09j338lmrjabbd3fpajr4piz4r20sl33030szfsqfzlwrrmvkyi0";
|
||||||
};
|
};
|
||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
|
@ -105,7 +105,7 @@ let
|
|||||||
path = "${cudatoolkit}/lib/stubs/libcuda.so";
|
path = "${cudatoolkit}/lib/stubs/libcuda.so";
|
||||||
}];
|
}];
|
||||||
cudaStubEnv = lib.optionalString cudaSupport
|
cudaStubEnv = lib.optionalString cudaSupport
|
||||||
"LD_LIBRARY_PATH=${cudaStub}\${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} ";
|
"LD_LIBRARY_PATH=${cudaStub}\${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH ";
|
||||||
|
|
||||||
in buildPythonPackage rec {
|
in buildPythonPackage rec {
|
||||||
version = "1.2.0";
|
version = "1.2.0";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, fetchpatch, python, buildDocs ? true, asciidoc, docbook_xml_dtd_45, docbook_xsl, libxslt, re2c }:
|
{ stdenv, fetchFromGitHub, fetchpatch, python3, buildDocs ? true, asciidoc, docbook_xml_dtd_45, docbook_xsl, libxslt, re2c }:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0zsg46jflsh644jccrcgyfalr7fkzrv041kyi8644nyk923gcrl9";
|
sha256 = "0zsg46jflsh644jccrcgyfalr7fkzrv041kyi8644nyk923gcrl9";
|
||||||
})
|
})
|
||||||
# https://github.com/ninja-build/ninja/issues/1510 - fix w/musl, possibly BSDs?
|
# https://github.com/ninja-build/ninja/issues/1510 - fix w/musl, possibly BSDs?
|
||||||
#
|
#
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
name = "fix-issue-1510.patch";
|
name = "fix-issue-1510.patch";
|
||||||
url = https://github.com/makepost/ninja/commit/567815df38a2ff54ad7478a90bd75c91e434236a.patch;
|
url = https://github.com/makepost/ninja/commit/567815df38a2ff54ad7478a90bd75c91e434236a.patch;
|
||||||
@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ python re2c ] ++ optionals buildDocs [ asciidoc docbook_xml_dtd_45 docbook_xsl libxslt.bin ];
|
nativeBuildInputs = [ python3 re2c ] ++ optionals buildDocs [ asciidoc docbook_xml_dtd_45 docbook_xsl libxslt.bin ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
python configure.py --bootstrap
|
python configure.py --bootstrap
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
{ stdenv, fetchurl, jre_headless, makeWrapper }:
|
{ stdenv, fetchurl, jre_headless, makeWrapper }:
|
||||||
let
|
let
|
||||||
version = "6.1.2";
|
version = "6.1.3";
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "flyway";
|
pname = "flyway";
|
||||||
inherit version;
|
inherit version;
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/${version}/flyway-commandline-${version}.tar.gz";
|
url = "https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/${version}/flyway-commandline-${version}.tar.gz";
|
||||||
sha256 = "sha256:1rh1p50mwwlmwwdlcx7pzlsrg1dcl7gdsjbi7kyz0m71fbnn0bnv";
|
sha256 = "0hd5gkfjhxb1ny8y0pqn7vs34bqk4w5k7vcygd6iz1d57q0giwp6";
|
||||||
};
|
};
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
@ -1,43 +0,0 @@
|
|||||||
{ stdenv, lib, fetchurl, m4, perl }:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
name = "bison-2.7.1";
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "mirror://gnu/bison/${name}.tar.gz";
|
|
||||||
sha256 = "0c9li3iaslzzr3zig6m3zlmb4r8i0wfvkcrvdyiqxasb09mjkqh8";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [ m4 ];
|
|
||||||
propagatedBuildInputs = [ m4 ];
|
|
||||||
checkInputs = [ perl ];
|
|
||||||
|
|
||||||
patches = lib.optional stdenv.isDarwin ./darwin-vasnprintf.patch;
|
|
||||||
|
|
||||||
doCheck = true;
|
|
||||||
# M4 = "${m4}/bin/m4";
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = https://www.gnu.org/software/bison/;
|
|
||||||
description = "Yacc-compatible parser generator";
|
|
||||||
license = stdenv.lib.licenses.gpl3Plus;
|
|
||||||
|
|
||||||
longDescription = ''
|
|
||||||
Bison is a general-purpose parser generator that converts an
|
|
||||||
annotated context-free grammar into an LALR(1) or GLR parser for
|
|
||||||
that grammar. Once you are proficient with Bison, you can use
|
|
||||||
it to develop a wide range of language parsers, from those used
|
|
||||||
in simple desk calculators to complex programming languages.
|
|
||||||
|
|
||||||
Bison is upward compatible with Yacc: all properly-written Yacc
|
|
||||||
grammars ought to work with Bison with no change. Anyone
|
|
||||||
familiar with Yacc should be able to use Bison with little
|
|
||||||
trouble. You need to be fluent in C or C++ programming in order
|
|
||||||
to use Bison.
|
|
||||||
'';
|
|
||||||
|
|
||||||
platforms = stdenv.lib.platforms.unix;
|
|
||||||
};
|
|
||||||
|
|
||||||
passthru = { glrSupport = true; };
|
|
||||||
}
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user