Merge remote-tracking branch 'upstream/staging' into HEAD

Changed files
+3402 -2481
doc
nixos
doc
manual
release-notes
modules
misc
services
databases
games
pkgs
applications
audio
amarok
gis
grass
graphics
digikam
kde
misc
deepin-terminal
font-manager
haxor-news
kupfer
pdfpc
synapse
valauncher
networking
browsers
office
kexi
skrooge
watson
science
logic
math
video
kodi
mplayer
build-support
data
icons
hicolor-icon-theme
desktops
gnome-3
apps
gnome-characters
core
eog
gconf
gnome-bluetooth
grilo
gtksourceview
gucharmap
libpeas
simple-scan
misc
gspell
gnustep
pantheon
apps
pantheon-terminal
development
compilers
haskell-modules
idris-modules
interpreters
libraries
SDL
SDL2
atk
boost
cppdb
gdal
gdk-pixbuf
glib
glibc
gmp
gobject-introspection
grantlee
gstreamer
core
legacy
gstreamer
gtk+
kdb
kde-frameworks
extra-cmake-modules
kdoctools
libagar
libassuan
libdbi-drivers
libdrm
libelf
libgcrypt
libnftnl
libopcodes
librdf
librep
mesa
ncurses
opendbx
pcre
poco
qt-3
qt-4.x
qt-5
rep-gtk
slib
tntdb
unixODBCDrivers
wt
xapian
tools
omega
lisp-modules
ocaml-modules
eliom
mysql
ocamlmake
perl-modules
DBD-mysql
pure-modules
python-modules
APScheduler
Mako
MechanicalSoup
Nikola
Theano
absl-py
aenum
aiohttp
arrow
asgiref
asn1crypto
astor
astroid
astropy
attrs
aws-xray-sdk
backports_abc
backports_functools_lru_cache
backports_lzma
biopython
blaze
bokeh
bootstrapped-pip
boto3
botocore
brotlipy
cached-property
credstash
csscompressor
cx_freeze
cytoolz
dask
decorator
distro
django-jinja2
djangorestframework
docker
docker_compose
easy-thumbnails
eve
extras
faker
fastimport
faulthandler
filelock
fiona
flake8-debugger
flask-testing
flit
fonttools
ftfy
gensim
gflags
google_api_core
gpy
grpcio
gssapi
html5lib
htmlmin
httpbin
idna
ipykernel
ipywidgets
iso8601
jdcal
jedi
jellyfish
jinja2
jsbeautifier
jsondiff
jsonpatch
jsonpickle
jupyter_client
jupyter_core
keras
keyring
ldap
ldap3
libusb1
line_profiler
llfuse
llvmlite
lxml
marionette-harness
markdown
marshmallow
matplotlib
mistune
moto
mygpoclient
nbxmpp
networkx
nilearn
notebook
numba
odfpy
pandas
parse-type
partd
path.py
pathlib2
pexpect
phonenumbers
pip-tools
plone-testing
plotly
pluggy
plumbum
psutil
py
pyaml
pyasn1
pyasn1-modules
pyblake2
pycangjie
pychromecast
pycollada
pydot
pygit2
pyglet
pylast
pylint
pymongo
pyobjc
pyopencl
pysc2
pysoundfile
pytest
pytest-localserver
pytest-xdist
python-fuse
pytoml
pytools
pywbem
pywinrm
regex
relatorio
restview
robomachine
ropper
scrapy
seaborn
serpy
setuptools
shapely
simplejson
six
smart_open
spacy
splinter
sqlalchemy
sqlmap
stevedore
stripe
structlog
supervise_api
sybil
tabulate
testtools
textacy
texttable
thespian
toolz
tox
tqdm
tzlocal
vowpalwabbit
websockets
werkzeug
widgetsnbextension
ws4py
xarray
yapf
yarl
zope_copy
r-modules
ruby-modules
gem-config
tools
build-managers
database
shmig
misc
ocaml
findlib
tora
web
nodejs
games
os-specific
darwin
apple-sdk
apple-source-releases
libresolv
linux
busybox
kernel-headers
servers
clickhouse
computing
slurm
dns
powerdns
freeradius
games
ghost-one
http
lighttpd
mail
dovecot
dspam
opensmtpd
postfix
sql
web-apps
x11
shells
bash
stdenv
tools
admin
ansible
awscli
backup
bareos
mydumper
inputmethods
misc
colord-kde
coreutils
networking
kea
mailutils
mitmproxy
snabb
security
gnupg
thc-hydra
system
collectd
rsyslog
text
diffutils
gawk
sgml
opensp
typesetting
tex
dblatex
tetex
texlive
top-level
+40 -1
doc/cross-compilation.xml
···
How does this work in practice? Nixpkgs is now structured so that build-time dependencies are taken from <varname>buildPackages</varname>, whereas run-time dependencies are taken from the top level attribute set.
For example, <varname>buildPackages.gcc</varname> should be used at build time, while <varname>gcc</varname> should be used at run time.
Now, for most of Nixpkgs's history, there was no <varname>buildPackages</varname>, and most packages have not been refactored to use it explicitly.
-
Instead, one can use the four attributes used for specifying dependencies as documented in <xref linkend="ssec-stdenv-attributes"/>.
+
Instead, one can use the six (<emphasis>gasp</emphasis>) attributes used for specifying dependencies as documented in <xref linkend="ssec-stdenv-dependencies"/>.
We "splice" together the run-time and build-time package sets with <varname>callPackage</varname>, and then <varname>mkDerivation</varname> for each of four attributes pulls the right derivation out.
This splicing can be skipped when not cross compiling as the package sets are the same, but is a bit slow for cross compiling.
Because of this, a best-of-both-worlds solution is in the works with no splicing or explicit access of <varname>buildPackages</varname> needed.
···
</para></note>
</section>
+
<section>
+
<title>Cross packagaing cookbook</title>
+
<para>
+
Some frequently problems when packaging for cross compilation are good to just spell and answer.
+
Ideally the information above is exhaustive, so this section cannot provide any new information,
+
but its ludicrous and cruel to expect everyone to spend effort working through the interaction of many features just to figure out the same answer to the same common problem.
+
Feel free to add to this list!
+
</para>
+
<qandaset>
+
<qandaentry>
+
<question><para>
+
What if my package's build system needs to build a C program to be run under the build environment?
+
</para></question>
+
<answer><para>
+
<programlisting>depsBuildBuild = [ buildPackages.stdenv.cc ];</programlisting>
+
Add it to your <function>mkDerivation</function> invocation.
+
</para></answer>
+
</qandaentry>
+
<qandaentry>
+
<question><para>
+
My package fails to find <command>ar</command>.
+
</para></question>
+
<answer><para>
+
Many packages assume that an unprefixed <command>ar</command> is available, but Nix doesn't provide one.
+
It only provides a prefixed one, just as it only does for all the other binutils programs.
+
It may be necessary to patch the package to fix the build system to use a prefixed `ar`.
+
</para></answer>
+
</qandaentry>
+
<qandaentry>
+
<question><para>
+
My package's testsuite needs to run host platform code.
+
</para></question>
+
<answer><para>
+
<programlisting>doCheck = stdenv.hostPlatform != stdenv.buildPlatfrom;</programlisting>
+
Add it to your <function>mkDerivation</function> invocation.
+
</para></answer>
+
</qandaentry>
+
</qandaset>
+
</section>
</section>
<!--============================================================-->
+318 -39
doc/stdenv.xml
···
</section>
-
<section xml:id="ssec-stdenv-attributes"><title>Attributes</title>
+
<section xml:id="ssec-stdenv-dependencies"><title>Specifying dependencies</title>
+
+
<para>
+
As described in the Nix manual, almost any <filename>*.drv</filename> store path in a derivation's attribute set will induce a dependency on that derivation.
+
<varname>mkDerivation</varname>, however, takes a few attributes intended to, between them, include all the dependencies of a package.
+
This is done both for structure and consistency, but also so that certain other setup can take place.
+
For example, certain dependencies need their bin directories added to the <envar>PATH</envar>.
+
That is built-in, but other setup is done via a pluggable mechanism that works in conjunction with these dependency attributes.
+
See <xref linkend="ssec-setup-hooks"/> for details.
+
</para>
+
<para>
+
Dependencies can be broken down along three axes: their host and target platforms relative to the new derivation's, and whether they are propagated.
+
The platform distinctions are motivated by cross compilation; see <xref linkend="chap-cross"/> for exactly what each platform means.
+
<footnote><para>
+
The build platform is ignored because it is a mere implementation detail of the package satisfying the dependency:
+
As a general programming principle, dependencies are always <emphasis>specified</emphasis> as interfaces, not concrete implementation.
+
</para></footnote>
+
But even if one is not cross compiling, the platforms imply whether or not the dependency is needed at run-time or build-time, a concept that makes perfect sense outside of cross compilation.
+
For now, the run-time/build-time distinction is just a hint for mental clarity, but in the future it perhaps could be enforced.
+
</para>
+
<para>
+
The extension of <envar>PATH</envar> with dependencies, alluded to above, proceeds according to the relative platforms alone.
+
The process is carried out only for dependencies whose host platform matches the new derivation's build platform–i.e. which run on the platform where the new derivation will be built.
+
<footnote><para>
+
Currently, that means for native builds all dependencies are put on the <envar>PATH</envar>.
+
But in the future that may not be the case for sake of matching cross:
+
the platforms would be assumed to be unique for native and cross builds alike, so only the <varname>depsBuild*</varname> and <varname>nativeBuildDependencies</varname> dependencies would affect the <envar>PATH</envar>.
+
</para></footnote>
+
For each dependency <replaceable>dep</replaceable> of those dependencies, <filename><replaceable>dep</replaceable>/bin</filename>, if present, is added to the <envar>PATH</envar> environment variable.
+
</para>
+
<para>
+
The dependency is propagated when it forces some of its other-transitive (non-immediate) downstream dependencies to also take it on as an immediate dependency.
+
Nix itself already takes a package's transitive dependencies into account, but this propagation ensures nixpkgs-specific infrastructure like setup hooks (mentioned above) also are run as if the propagated dependency.
+
</para>
+
<para>
+
It is important to note dependencies are not necessary propagated as the same sort of dependency that they were before, but rather as the corresponding sort so that the platform rules still line up.
+
The exact rules for dependency propagation can be given by assigning each sort of dependency two integers based one how it's host and target platforms are offset from the depending derivation's platforms.
+
Those offsets are given are given below in the descriptions of each dependency list attribute.
+
Algorithmically, we traverse propagated inputs, accumulating every propagated dep's propagated deps and adjusting them to account for the "shift in perspective" described by the current dep's platform offsets.
+
This results in sort a transitive closure of the dependency relation, with the offsets being approximately summed when two dependency links are combined.
+
We also prune transitive deps whose combined offsets go out-of-bounds, which can be viewed as a filter over that transitive closure removing dependencies that are blatantly absurd.
+
</para>
+
<para>
+
We can define the process precisely with <link xlink:href="https://en.wikipedia.org/wiki/Natural_deduction">Natural Deduction</link> using the inference rules.
+
This probably seems a bit obtuse, but so is the bash code that actually implements it!
+
<footnote><para>
+
The <function>findInputs</function> function, currently residing in <filename>pkgs/stdenv/generic/setup.sh</filename>, implements the propagation logic.
+
</para></footnote>
+
They're confusing in very different ways so...hopefully if something doesn't make sense in one presentation, it does in the other!
+
<programlisting>
+
let mapOffset(h, t, i) = i + (if i &lt;= 0 then h else t - 1)
+
+
propagated-dep(h0, t0, A, B)
+
propagated-dep(h1, t1, B, C)
+
h0 + h1 in {-1, 0, 1}
+
h0 + t1 in {-1, 0, 1}
+
-------------------------------------- Transitive property
+
propagated-dep(mapOffset(h0, t0, h1),
+
mapOffset(h0, t0, t1),
+
A, C)</programlisting>
+
<programlisting>
+
let mapOffset(h, t, i) = i + (if i &lt;= 0 then h else t - 1)
+
+
dep(h0, _, A, B)
+
propagated-dep(h1, t1, B, C)
+
h0 + h1 in {-1, 0, 1}
+
h0 + t1 in {-1, 0, -1}
+
-------------------------------------- Take immediate deps' propagated deps
+
propagated-dep(mapOffset(h0, t0, h1),
+
mapOffset(h0, t0, t1),
+
A, C)</programlisting>
+
<programlisting>
+
propagated-dep(h, t, A, B)
+
-------------------------------------- Propagated deps count as deps
+
dep(h, t, A, B)</programlisting>
+
Some explanation of this monstrosity is in order.
+
In the common case, the target offset of a dependency is the successor to the target offset: <literal>t = h + 1</literal>.
+
That means that:
+
<programlisting>
+
let f(h, t, i) = i + (if i &lt;= 0 then h else t - 1)
+
let f(h, h + 1, i) = i + (if i &lt;= 0 then h else (h + 1) - 1)
+
let f(h, h + 1, i) = i + (if i &lt;= 0 then h else h)
+
let f(h, h + 1, i) = i + h
+
</programlisting>
+
This is where the "sum-like" comes from above:
+
We can just sum all the host offset to get the host offset of the transitive dependency.
+
The target offset is the transitive dep is simply the host offset + 1, just as it was with the dependencies composed to make this transitive one;
+
it can be ignored as it doesn't add any new information.
+
</para>
+
<para>
+
Because of the bounds checks, the uncommon cases are <literal>h = t</literal> and <literal>h + 2 = t</literal>.
+
In the former case, the motivation for <function>mapOffset</function> is that since its host and target platforms are the same, no transitive dep of it should be able to "discover" an offset greater than its reduced target offsets.
+
<function>mapOffset</function> effectively "squashes" all its transitive dependencies' offsets so that none will ever be greater than the target offset of the original <literal>h = t</literal> package.
+
In the other case, <literal>h + 1</literal> is skipped over between the host and target offsets.
+
Instead of squashing the offsets, we need to "rip" them apart so no transitive dependencies' offset is that one.
+
</para>
+
<para>
+
Overall, the unifying theme here is that propagation shouldn't be introducing transitive dependencies involving platforms the needing package is unaware of.
+
The offset bounds checking and definition of <function>mapOffset</function> together ensure that this is the case.
+
Discovering a new offset is discovering a new platform, and since those platforms weren't in the derivation "spec" of the needing package, they cannot be relevant.
+
From a capability perspective, we can imagine that the host and target platforms of a package are the capabilities a package requires, and the depending package must provide the capability to the dependency.
+
</para>
<variablelist>
-
<title>Variables affecting <literal>stdenv</literal>
-
initialisation</title>
+
<title>Variables specifying dependencies</title>
+
+
<varlistentry>
+
<term><varname>depsBuildBuild</varname></term>
+
<listitem>
+
<para>
+
A list of dependencies whose host and target platforms are the new derivation's build platform.
+
This means a <literal>-1</literal> host and <literal>-1</literal> target offset from the new derivation's platforms.
+
They are programs/libraries used at build time that furthermore produce programs/libraries also used at build time.
+
If the dependency doesn't care about the target platform (i.e. isn't a compiler or similar tool), put it in <varname>nativeBuildInputs</varname>instead.
+
The most common use for this <literal>buildPackages.stdenv.cc</literal>, the default C compiler for this role.
+
That example crops up more than one might think in old commonly used C libraries.
+
</para>
+
<para>
+
Since these packages are able to be run at build time, that are always added to the <envar>PATH</envar>, as described above.
+
But since these packages are only guaranteed to be able to run then, they shouldn't persist as run-time dependencies.
+
This isn't currently enforced, but could be in the future.
+
</para>
+
</listitem>
+
</varlistentry>
+
+
<varlistentry>
+
<term><varname>nativeBuildInputs</varname></term>
+
<listitem>
+
<para>
+
A list of dependencies whose host platform is the new derivation's build platform, and target platform is the new derivation's host platform.
+
This means a <literal>-1</literal> host offset and <literal>0</literal> target offset from the new derivation's platforms.
+
They are programs/libraries used at build time that, if they are a compiler or similar tool, produce code to run at run time—i.e. tools used to build the new derivation.
+
If the dependency doesn't care about the target platform (i.e. isn't a compiler or similar tool), put it here, rather than in <varname>depsBuildBuild</varname> or <varname>depsBuildTarget</varname>.
+
This would be called <varname>depsBuildHost</varname> but for historical continuity.
+
</para>
+
<para>
+
Since these packages are able to be run at build time, that are added to the <envar>PATH</envar>, as described above.
+
But since these packages only are guaranteed to be able to run then, they shouldn't persist as run-time dependencies.
+
This isn't currently enforced, but could be in the future.
+
</para>
+
</listitem>
+
</varlistentry>
<varlistentry>
-
<term><varname>NIX_DEBUG</varname></term>
+
<term><varname>depsBuildTarget</varname></term>
+
<listitem>
+
<para>
+
A list of dependencies whose host platform is the new derivation's build platform, and target platform is the new derivation's target platform.
+
This means a <literal>-1</literal> host offset and <literal>1</literal> target offset from the new derivation's platforms.
+
They are programs used at build time that produce code to run at run with code produced by the depending package.
+
Most commonly, these would tools used to build the runtime or standard library the currently-being-built compiler will inject into any code it compiles.
+
In many cases, the currently-being built compiler is itself employed for that task, but when that compiler won't run (i.e. its build and host platform differ) this is not possible.
+
Other times, the compiler relies on some other tool, like binutils, that is always built separately so the dependency is unconditional.
+
</para>
+
<para>
+
This is a somewhat confusing dependency to wrap ones head around, and for good reason.
+
As the only one where the platform offsets are not adjacent integers, it requires thinking of a bootstrapping stage <emphasis>two</emphasis> away from the current one.
+
It and it's use-case go hand in hand and are both considered poor form:
+
try not to need this sort dependency, and try not avoid building standard libraries / runtimes in the same derivation as the compiler produces code using them.
+
Instead strive to build those like a normal library, using the newly-built compiler just as a normal library would.
+
In short, do not use this attribute unless you are packaging a compiler and are sure it is needed.
+
</para>
+
<para>
+
Since these packages are able to be run at build time, that are added to the <envar>PATH</envar>, as described above.
+
But since these packages only are guaranteed to be able to run then, they shouldn't persist as run-time dependencies.
+
This isn't currently enforced, but could be in the future.
+
</para>
+
</listitem>
+
</varlistentry>
+
+
<varlistentry>
+
<term><varname>depsHostHost</varname></term>
<listitem><para>
-
A natural number indicating how much information to log.
-
If set to 1 or higher, <literal>stdenv</literal> will print moderate debug information during the build.
-
In particular, the <command>gcc</command> and <command>ld</command> wrapper scripts will print out the complete command line passed to the wrapped tools.
-
If set to 6 or higher, the <literal>stdenv</literal> setup script will be run with <literal>set -x</literal> tracing.
-
If set to 7 or higher, the <command>gcc</command> and <command>ld</command> wrapper scripts will also be run with <literal>set -x</literal> tracing.
+
A list of dependencies whose host and target platforms match the new derivation's host platform.
+
This means a both <literal>0</literal> host offset and <literal>0</literal> target offset from the new derivation's host platform.
+
These are packages used at run-time to generate code also used at run-time.
+
In practice, that would usually be tools used by compilers for metaprogramming/macro systems, or libraries used by the macros/metaprogramming code itself.
+
It's always preferable to use a <varname>depsBuildBuild</varname> dependency in the derivation being built than a <varname>depsHostHost</varname> on the tool doing the building for this purpose.
</para></listitem>
</varlistentry>
-
</variablelist>
+
<varlistentry>
+
<term><varname>buildInputs</varname></term>
+
<listitem>
+
<para>
+
A list of dependencies whose host platform and target platform match the new derivation's.
+
This means a <literal>0</literal> host offset and <literal>1</literal> target offset from the new derivation's host platform.
+
This would be called <varname>depsHostTarget</varname> but for historical continuity.
+
If the dependency doesn't care about the target platform (i.e. isn't a compiler or similar tool), put it here, rather than in <varname>depsBuildBuild</varname>.
+
</para>
+
<para>
+
These often are programs/libraries used by the new derivation at <emphasis>run</emphasis>-time, but that isn't always the case.
+
For example, the machine code in a statically linked library is only used at run time, but the derivation containing the library is only needed at build time.
+
Even in the dynamic case, the library may also be needed at build time to appease the linker.
+
</para>
+
</listitem>
+
</varlistentry>
-
<variablelist>
-
<title>Variables specifying dependencies</title>
+
<varlistentry>
+
<term><varname>depsTargetTarget</varname></term>
+
<listitem><para>
+
A list of dependencies whose host platform matches the new derivation's target platform.
+
This means a <literal>1</literal> offset from the new derivation's platforms.
+
These are packages that run on the target platform, e.g. the standard library or run-time deps of standard library that a compiler insists on knowing about.
+
It's poor form in almost all cases for a package to depend on another from a future stage [future stage corresponding to positive offset].
+
Do not use this attribute unless you are packaging a compiler and are sure it is needed.
+
</para></listitem>
+
</varlistentry>
<varlistentry>
-
<term><varname>nativeBuildInputs</varname></term>
+
<term><varname>depsBuildBuildPropagated</varname></term>
<listitem><para>
-
A list of dependencies used by the new derivation at <emphasis>build</emphasis>-time.
-
I.e. these dependencies should not make it into the package's runtime-closure, though this is currently not checked.
-
For each dependency <replaceable>dir</replaceable>, the directory <filename><replaceable>dir</replaceable>/bin</filename>, if it exists, is added to the <envar>PATH</envar> environment variable.
-
Other environment variables are also set up via a pluggable mechanism.
-
For instance, if <varname>buildInputs</varname> contains Perl, then the <filename>lib/site_perl</filename> subdirectory of each input is added to the <envar>PERL5LIB</envar> environment variable.
-
See <xref linkend="ssec-setup-hooks"/> for details.
+
The propagated equivalent of <varname>depsBuildBuild</varname>.
+
This perhaps never ought to be used, but it is included for consistency [see below for the others].
</para></listitem>
</varlistentry>
<varlistentry>
-
<term><varname>buildInputs</varname></term>
+
<term><varname>propagatedNativeBuildInputs</varname></term>
<listitem><para>
-
A list of dependencies used by the new derivation at <emphasis>run</emphasis>-time.
-
Currently, the build-time environment is modified in the exact same way as with <varname>nativeBuildInputs</varname>.
-
This is problematic in that when cross-compiling, foreign executables can clobber native ones on the <envar>PATH</envar>.
-
Even more confusing is static-linking.
-
A statically-linked library should be listed here because ultimately that generated machine code will be used at run-time, even though a derivation containing the object files or static archives will only be used at build-time.
-
A less confusing solution to this would be nice.
+
The propagated equivalent of <varname>nativeBuildInputs</varname>.
+
This would be called <varname>depsBuildHostPropagated</varname> but for historical continuity.
+
For example, if package <varname>Y</varname> has <literal>propagatedNativeBuildInputs = [X]</literal>, and package <varname>Z</varname> has <literal>buildInputs = [Y]</literal>, then package <varname>Z</varname> will be built as if it included package <varname>X</varname> in its <varname>nativeBuildInputs</varname>.
+
If instead, package <varname>Z</varname> has <literal>nativeBuildInputs = [Y]</literal>, then <varname>Z</varname> will be built as if it included <varname>X</varname> in the <varname>depsBuildBuild</varname> of package <varname>Z</varname>, because of the sum of the two <literal>-1</literal> host offsets.
</para></listitem>
</varlistentry>
+
<varlistentry>
+
<term><varname>depsBuildTargetPropagated</varname></term>
+
<listitem><para>
+
The propagated equivalent of <varname>depsBuildTarget</varname>.
+
This is prefixed for the same reason of alerting potential users.
+
</para></listitem>
+
</varlistentry>
<varlistentry>
-
<term><varname>propagatedNativeBuildInputs</varname></term>
+
<term><varname>depsHostHostPropagated</varname></term>
<listitem><para>
-
Like <varname>nativeBuildInputs</varname>, but these dependencies are <emphasis>propagated</emphasis>:
-
that is, the dependencies listed here are added to the <varname>nativeBuildInputs</varname> of any package that uses <emphasis>this</emphasis> package as a dependency.
-
So if package Y has <literal>propagatedNativeBuildInputs = [X]</literal>, and package Z has <literal>nativeBuildInputs = [Y]</literal>,
-
then package X will appear in Z’s build environment automatically.
+
The propagated equivalent of <varname>depsHostHost</varname>.
</para></listitem>
</varlistentry>
<varlistentry>
<term><varname>propagatedBuildInputs</varname></term>
<listitem><para>
-
Like <varname>buildInputs</varname>, but propagated just like <varname>propagatedNativeBuildInputs</varname>.
-
This inherits <varname>buildInputs</varname>'s flaws of clobbering native executables when cross-compiling and being confusing for static linking.
+
The propagated equivalent of <varname>buildInputs</varname>.
+
This would be called <varname>depsHostTargetPropagated</varname> but for historical continuity.
+
</para></listitem>
+
</varlistentry>
+
+
<varlistentry>
+
<term><varname>depsTargetTarget</varname></term>
+
<listitem><para>
+
The propagated equivalent of <varname>depsTargetTarget</varname>.
+
This is prefixed for the same reason of alerting potential users.
+
</para></listitem>
+
</varlistentry>
+
+
</variablelist>
+
+
</section>
+
+
+
<section xml:id="ssec-stdenv-attributes"><title>Attributes</title>
+
+
<variablelist>
+
<title>Variables affecting <literal>stdenv</literal>
+
initialisation</title>
+
+
<varlistentry>
+
<term><varname>NIX_DEBUG</varname></term>
+
<listitem><para>
+
A natural number indicating how much information to log.
+
If set to 1 or higher, <literal>stdenv</literal> will print moderate debug information during the build.
+
In particular, the <command>gcc</command> and <command>ld</command> wrapper scripts will print out the complete command line passed to the wrapped tools.
+
If set to 6 or higher, the <literal>stdenv</literal> setup script will be run with <literal>set -x</literal> tracing.
+
If set to 7 or higher, the <command>gcc</command> and <command>ld</command> wrapper scripts will also be run with <literal>set -x</literal> tracing.
</para></listitem>
</varlistentry>
···
By default, when cross compiling, the configure script has <option>--build=...</option> and <option>--host=...</option> passed.
Packages can instead pass <literal>[ "build" "host" "target" ]</literal> or a subset to control exactly which platform flags are passed.
Compilers and other tools should use this to also pass the target platform, for example.
-
Note eventually these will be passed when in native builds too, to improve determinism: build-time guessing, as is done today, is a risk of impurity.
+
<footnote><para>Eventually these will be passed when in native builds too, to improve determinism: build-time guessing, as is done today, is a risk of impurity.</para></footnote>
</para></listitem>
</varlistentry>
···
<listitem><para>If set, libraries and executables are not
stripped. By default, they are.</para></listitem>
</varlistentry>
+
<varlistentry>
+
<term><varname>dontStripHost</varname></term>
+
<listitem><para>
+
Like <varname>dontStripHost</varname>, but only affects the <command>strip</command> command targetting the package's host platform.
+
Useful when supporting cross compilation, but otherwise feel free to ignore.
+
</para></listitem>
+
</varlistentry>
+
<varlistentry>
+
<term><varname>dontStripTarget</varname></term>
+
<listitem><para>
+
Like <varname>dontStripHost</varname>, but only affects the <command>strip</command> command targetting the packages' target platform.
+
Useful when supporting cross compilation, but otherwise feel free to ignore.
+
</para></listitem>
+
</varlistentry>
<varlistentry>
<term><varname>dontMoveSbin</varname></term>
···
<section xml:id="ssec-setup-hooks"><title>Package setup hooks</title>
-
<para>The following packages provide a setup hook:
-
+
<para>
+
Nix itself considers a build-time dependency merely something that should previously be built and accessible at build time—packages themselves are on their own to perform any additional setup.
+
In most cases, that is fine, and the downstream derivation can deal with it's own dependencies.
+
But for a few common tasks, that would result in almost every package doing the same sort of setup work---depending not on the package itself, but entirely on which dependencies were used.
+
</para>
+
<para>
+
In order to alleviate this burden, the <firstterm>setup hook></firstterm>mechanism was written, where any package can include a shell script that [by convention rather than enforcement by Nix], any downstream reverse-dependency will source as part of its build process.
+
That allows the downstream dependency to merely specify its dependencies, and lets those dependencies effectively initialize themselves.
+
No boilerplate mirroring the list of dependencies is needed.
+
</para>
+
<para>
+
The Setup hook mechanism is a bit of a sledgehammer though: a powerful feature with a broad and indiscriminate area of effect.
+
The combination of its power and implicit use may be expedient, but isn't without costs.
+
Nix itself is unchanged, but the spirit of adding dependencies being effect-free is violated even if the letter isn't.
+
For example, if a derivation path is mentioned more than once, Nix itself doesn't care and simply makes sure the dependency derivation is already built just the same—depending is just needing something to exist, and needing is idempotent.
+
However, a dependency specified twice will have its setup hook run twice, and that could easily change the build environment (though a well-written setup hook will therefore strive to be idempotent so this is in fact not observable).
+
More broadly, setup hooks are anti-modular in that multiple dependencies, whether the same or different, should not interfere and yet their setup hooks may well do so.
+
</para>
+
<para>
+
The most typical use of the setup hook is actually to add other hooks which are then run (i.e. after all the setup hooks) on each dependency.
+
For example, the C compiler wrapper's setup hook feeds itself flags for each dependency that contains relevant libaries and headers.
+
This is done by defining a bash function, and appending its name to one of
+
<envar>envBuildBuildHooks</envar>`,
+
<envar>envBuildHostHooks</envar>`,
+
<envar>envBuildTargetHooks</envar>`,
+
<envar>envHostHostHooks</envar>`,
+
<envar>envHostTargetHooks</envar>`, or
+
<envar>envTargetTargetHooks</envar>`.
+
These 6 bash variables correspond to the 6 sorts of dependencies by platform (there's 12 total but we ignore the propagated/non-propagated axis).
+
</para>
+
<para>
+
Packages adding a hook should not hard code a specific hook, but rather choose a variable <emphasis>relative</emphasis> to how they are included.
+
Returning to the C compiler wrapper example, if it itself is an <literal>n</literal> dependency, then it only wants to accumulate flags from <literal>n + 1</literal> dependencies, as only those ones match the compiler's target platform.
+
The <envar>hostOffset</envar> variable is defined with the current dependency's host offset <envar>targetOffset</envar> with its target offset, before it's setup hook is sourced.
+
Additionally, since most environment hooks don't care about the target platform,
+
That means the setup hook can append to the right bash array by doing something like
+
<programlisting language="bash">
+
addEnvHooks "$hostOffset" myBashFunction
+
</programlisting>
+
</para>
+
<para>
+
The <emphasis>existence</emphasis> of setups hooks has long been documented and packages inside Nixpkgs are free to use these mechanism.
+
Other packages, however, should not rely on these mechanisms not changing between Nixpkgs versions.
+
Because of the existing issues with this system, there's little benefit from mandating it be stable for any period of time.
+
</para>
+
<para>
+
Here are some packages that provide a setup hook.
+
Since the mechanism is modular, this probably isn't an exhaustive list.
+
Then again, since the mechanism is only to be used as a last resort, it might be.
<variablelist>
<varlistentry>
···
<varlistentry>
<term>Perl</term>
-
<listitem><para>Adds the <filename>lib/site_perl</filename> subdirectory
-
of each build input to the <envar>PERL5LIB</envar>
-
environment variable.</para></listitem>
+
<listitem>
+
<para>
+
Adds the <filename>lib/site_perl</filename> subdirectory of each build input to the <envar>PERL5LIB</envar> environment variable.
+
For instance, if <varname>buildInputs</varname> contains Perl, then the <filename>lib/site_perl</filename> subdirectory of each input is added to the <envar>PERL5LIB</envar> environment variable.
+
</para>
+
</listitem>
</varlistentry>
<varlistentry>
+28
nixos/doc/manual/release-notes/rl-1803.xml
···
<itemizedlist>
<listitem>
<para>
+
MariaDB 10.2, updated from 10.1, is now the default MySQL implementation. While upgrading a few changes
+
have been made to the infrastructure involved:
+
<itemizedlist>
+
<listitem>
+
<para>
+
<literal>libmysql</literal> has been deprecated, please use <literal>mysql.connector-c</literal>
+
instead, a compatibility passthru has been added to the MySQL packages.
+
</para>
+
</listitem>
+
<listitem>
+
<para>
+
The <literal>mysql57</literal> package has a new <literal>static</literal> output containing
+
the static libraries including <literal>libmysqld.a</literal>
+
</para>
+
</listitem>
+
</itemizedlist>
</para>
</listitem>
</itemizedlist>
···
The most commonly used files in <filename>nix-support</filename> are now split between the two wrappers.
Some commonly used ones, like <filename>nix-support/dynamic-linker</filename>, are duplicated for backwards compatability, even though they rightly belong only in <literal>bintools-wrapper</literal>.
Other more obscure ones are just moved.
+
</para>
+
</listitem>
+
<listitem>
+
<para>
+
The propagation logic has been changed.
+
The new logic, along with new types of dependencies that go with, is thoroughly documented in the "Specifying dependencies" section of the "Standard Environment" chapter of the nixpkgs manual.
+
<!-- That's <xref linkend="ssec-stdenv-attributes"> were we to merge the manuals. -->
+
The old logic isn't but is easy to describe: dependencies were propagated as the same type of dependency no matter what.
+
In practice, that means that many <function>propagatedNativeBuildInputs</function> should instead be <function>propagatedBuildInputs</function>.
+
Thankfully, that was and is the least used type of dependency.
+
Also, it means that some <function>propagatedBuildInputs</function> should instead be <function>depsTargetTargetPropagated</function>.
+
Other types dependencies should be unaffected.
</para>
</listitem>
</itemizedlist>
+2 -2
nixos/modules/misc/ids.nix
···
foldingathome = 37;
sabnzbd = 38;
#kdm = 39; # dropped in 17.03
-
ghostone = 40;
+
#ghostone = 40; # dropped in 18.03
git = 41;
fourstore = 42;
fourstorehttp = 43;
···
#foldingathome = 37; # unused
#sabnzd = 38; # unused
#kdm = 39; # unused, even before 17.03
-
ghostone = 40;
+
#ghostone = 40; # dropped in 18.03
git = 41;
fourstore = 42;
fourstorehttp = 43;
-1
nixos/modules/module-list.nix
···
./services/editors/emacs.nix
./services/editors/infinoted.nix
./services/games/factorio.nix
-
./services/games/ghost-one.nix
./services/games/minecraft-server.nix
./services/games/minetest-server.nix
./services/games/terraria.nix
+4 -13
nixos/modules/services/databases/mysql.nix
···
cfg = config.services.mysql;
mysql = cfg.package;
-
-
isMariaDB =
+
+
isMariaDB =
let
pName = _p: (builtins.parseDrvName (_p.name)).name;
in pName mysql == pName pkgs.mariadb;
-
-
atLeast55 = versionAtLeast mysql.mysqlVersion "5.5";
pidFile = "${cfg.pidDir}/mysqld.pid";
···
${optionalString (cfg.bind != null) "bind-address = ${cfg.bind}" }
${optionalString (cfg.replication.role == "master" || cfg.replication.role == "slave") "log-bin=mysql-bin"}
${optionalString (cfg.replication.role == "master" || cfg.replication.role == "slave") "server-id = ${toString cfg.replication.serverId}"}
-
${optionalString (cfg.replication.role == "slave" && !atLeast55)
-
''
-
master-host = ${cfg.replication.masterHost}
-
master-user = ${cfg.replication.masterUser}
-
master-password = ${cfg.replication.masterPassword}
-
master-port = ${toString cfg.replication.masterPort}
-
''}
${optionalString (cfg.ensureUsers != [])
''
plugin-load-add = auth_socket.so
···
fi
'') cfg.initialDatabases}
-
${optionalString (cfg.replication.role == "master" && atLeast55)
+
${optionalString (cfg.replication.role == "master")
''
# Set up the replication master
···
) | ${mysql}/bin/mysql -u root -N
''}
-
${optionalString (cfg.replication.role == "slave" && atLeast55)
+
${optionalString (cfg.replication.role == "slave")
''
# Set up the replication slave
-105
nixos/modules/services/games/ghost-one.nix
···
-
{ config, lib, pkgs, ... }:
-
with lib;
-
let
-
-
cfg = config.services.ghostOne;
-
ghostUser = "ghostone";
-
stateDir = "/var/lib/ghost-one";
-
-
in
-
{
-
-
###### interface
-
-
options = {
-
services.ghostOne = {
-
-
enable = mkOption {
-
default = false;
-
description = "Enable Ghost-One Warcraft3 game hosting server.";
-
};
-
-
language = mkOption {
-
default = "English";
-
type = types.enum [ "English" "Spanish" "Russian" "Serbian" "Turkish" ];
-
description = "The language of bot messages: English, Spanish, Russian, Serbian or Turkish.";
-
};
-
-
war3path = mkOption {
-
default = "";
-
description = ''
-
The path to your local Warcraft III directory, which must contain war3.exe, storm.dll, and game.dll.
-
'';
-
};
-
-
mappath = mkOption {
-
default = "";
-
description = ''
-
The path to the directory where you keep your map files. GHost One doesn't require
-
map files but if it has access to them it can send them to players and automatically
-
calculate most map config values. GHost One will search [bot_mappath + map_localpath]
-
for the map file (map_localpath is set in each map's config file).
-
'';
-
};
-
-
config = mkOption {
-
default = "";
-
description = "Extra configuration options.";
-
};
-
-
};
-
};
-
-
###### implementation
-
-
config = mkIf cfg.enable {
-
-
users.extraUsers = singleton
-
{ name = ghostUser;
-
uid = config.ids.uids.ghostone;
-
description = "Ghost One game server user";
-
home = stateDir;
-
};
-
-
users.extraGroups = singleton
-
{ name = ghostUser;
-
gid = config.ids.gids.ghostone;
-
};
-
-
services.ghostOne.config = ''
-
# bot_log = /dev/stderr
-
bot_language = ${pkgs.ghostOne}/share/ghost-one/languages/${cfg.language}.cfg
-
bot_war3path = ${cfg.war3path}
-
-
bot_mapcfgpath = mapcfgs
-
bot_savegamepath = savegames
-
bot_mappath = ${cfg.mappath}
-
bot_replaypath = replays
-
'';
-
-
systemd.services."ghost-one" = {
-
wantedBy = [ "multi-user.target" ];
-
script = ''
-
mkdir -p ${stateDir}
-
cd ${stateDir}
-
chown ${ghostUser}:${ghostUser} .
-
-
mkdir -p mapcfgs
-
chown ${ghostUser}:${ghostUser} mapcfgs
-
-
mkdir -p replays
-
chown ${ghostUser}:${ghostUser} replays
-
-
mkdir -p savegames
-
chown ${ghostUser}:${ghostUser} savegames
-
-
ln -sf ${pkgs.writeText "ghost.cfg" cfg.config} ghost.cfg
-
ln -sf ${pkgs.ghostOne}/share/ghost-one/ip-to-country.csv
-
${pkgs.su}/bin/su -s ${pkgs.stdenv.shell} ${ghostUser} \
-
-c "LANG=C ${pkgs.ghostOne}/bin/ghost++"
-
'';
-
};
-
-
};
-
-
}
+3 -2
pkgs/applications/audio/amarok/kf5.nix
···
, qca-qt5, qjson, qtscript, qtwebkit
, kcmutils, kconfig, kdelibs4support, kdnssd, kinit, knewstuff, knotifyconfig, ktexteditor
, phonon, plasma-framework, threadweaver
-
, curl, ffmpeg, gdk_pixbuf, libaio, libmtp, loudmouth, lzo, lz4, mariadb, pcre, snappy, taglib, taglib_extras
+
, curl, ffmpeg, gdk_pixbuf, libaio, libmtp, loudmouth, lzo, lz4, mysql57, pcre, snappy, taglib, taglib_extras
}:
let
···
qca-qt5 qjson qtscript qtwebkit
kcmutils kconfig kdelibs4support kdnssd kinit knewstuff knotifyconfig ktexteditor
phonon plasma-framework threadweaver
-
curl ffmpeg gdk_pixbuf libaio libmtp loudmouth lz4 lzo mariadb pcre snappy taglib taglib_extras
+
curl ffmpeg gdk_pixbuf libaio libmtp loudmouth lz4 lzo mysql57.server mysql57.server.static
+
pcre snappy taglib taglib_extras
];
enableParallelBuilding = true;
+14 -9
pkgs/applications/gis/grass/default.nix
···
}:
stdenv.mkDerivation {
-
name = "grass-7.0.2";
+
name = "grass-7.2.2";
src = fetchurl {
-
url = http://grass.osgeo.org/grass70/source/grass-7.0.2.tar.gz;
-
sha256 = "02qrdgn46gxr60amxwax4b8fkkmhmjxi6qh4yfvpbii6ai6diarf";
+
url = http://grass.osgeo.org/grass72/source/grass-7.2.2.tar.gz;
+
sha256 = "0yzljbrxlqp4wbw08n1dvmm4vmwkg8glf1ff4xyh589r5ryb7gxv";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ flex bison zlib proj gdal libtiff libpng fftw sqlite cairo
-
readline ffmpeg makeWrapper wxGTK30 netcdf geos postgresql mysql.client blas ]
+
readline ffmpeg makeWrapper wxGTK30 netcdf geos postgresql mysql.connector-c blas ]
++ (with python2Packages; [ python dateutil wxPython30 numpy ]);
configureFlags = [
···
"--with-wxwidgets"
"--with-netcdf"
"--with-geos"
-
"--with-postgres" "--with-postgres-libs=${postgresql.lib}/lib/"
+
"--with-postgres"
+
"--with-postgres-libs=${postgresql.lib}/lib/"
# it complains about missing libmysqld but doesn't really seem to need it
-
"--with-mysql" "--with-mysql-includes=${stdenv.lib.getDev mysql.client}/include/mysql"
+
"--with-mysql"
+
"--with-mysql-includes=${mysql.connector-c}/include/mysql"
+
"--with-mysql-libs=${mysql.connector-c}/lib/mysql"
"--with-blas"
];
···
scripts/r.pack/r.pack.py \
scripts/r.tileset/r.tileset.py \
scripts/r.unpack/r.unpack.py \
-
scripts/v.krige/v.krige.py \
scripts/v.rast.stats/v.rast.stats.py \
scripts/v.to.lines/v.to.lines.py \
scripts/v.what.strds/v.what.strds.py \
scripts/v.unpack/v.unpack.py \
scripts/wxpyimgview/*.py \
gui/wxpython/animation/g.gui.animation.py \
+
gui/wxpython/datacatalog/g.gui.datacatalog.py \
gui/wxpython/rlisetup/g.gui.rlisetup.py \
gui/wxpython/vdigit/g.gui.vdigit.py \
temporal/t.rast.accumulate/t.rast.accumulate.py \
temporal/t.rast.accdetect/t.rast.accdetect.py \
+
temporal/t.rast.algebra/t.rast.algebra.py \
+
temporal/t.rast3d.algebra/t.rast3d.algebra.py \
+
temporal/t.vect.algebra/t.vect.algebra.py \
temporal/t.select/t.select.py
for d in gui lib scripts temporal tools; do
patchShebangs $d
···
'';
postInstall = ''
-
wrapProgram $out/bin/grass70 \
+
wrapProgram $out/bin/grass72 \
--set PYTHONPATH $PYTHONPATH \
--set GRASS_PYTHON ${python2Packages.python}/bin/${python2Packages.python.executable} \
--suffix LD_LIBRARY_PATH ':' '${gdal}/lib'
···
description = "GIS software suite used for geospatial data management and analysis, image processing, graphics and maps production, spatial modeling, and visualization";
license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.all;
-
broken = true;
};
}
-1
pkgs/applications/graphics/digikam/default.nix
···
libqtav
libusb1
mesa
-
mysql
opencv3
pcre
+2 -2
pkgs/applications/kde/kmime.nix
···
license = [ lib.licenses.lgpl21 ];
maintainers = kdepimTeam;
};
-
nativeBuildInputs = [ extra-cmake-modules ki18n ];
-
buildInputs = [ kcodecs qtbase ];
+
nativeBuildInputs = [ extra-cmake-modules ];
+
buildInputs = [ kcodecs ki18n qtbase ];
outputs = [ "out" "dev" ];
}
+2 -2
pkgs/applications/kde/libkcddb.nix
···
license = with licenses; [ gpl2 lgpl21 bsd3 ];
maintainers = with maintainers; [ peterhoeg ];
};
-
nativeBuildInputs = [ extra-cmake-modules ];
-
buildInputs = [ qtbase kdoctools ];
+
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
+
buildInputs = [ qtbase ];
propagatedBuildInputs = [
kcodecs ki18n kio kwidgetsaddons
libmusicbrainz5
+6 -2
pkgs/applications/misc/deepin-terminal/default.nix
···
-
{ stdenv, fetchurl, fetchFromGitHub, pkgconfig, gtk3, vala, cmake, vte, libgee, wnck, zssh, gettext, librsvg, libsecret, json_glib }:
+
{ stdenv, fetchurl, fetchFromGitHub, pkgconfig, gtk3, vala, cmake, vte, libgee, wnck, zssh, gettext, librsvg, libsecret, json_glib, gobjectIntrospection }:
stdenv.mkDerivation rec {
name = "deepin-terminal-${version}";
···
substituteInPlace ssh_login.sh --replace /usr/lib/deepin-terminal/zssh "${zssh}/bin/zssh"
'';
-
nativeBuildInputs = [ pkgconfig vala cmake gettext ];
+
nativeBuildInputs = [
+
pkgconfig vala cmake gettext
+
# For setup hook
+
gobjectIntrospection
+
];
buildInputs = [ gtk3 vte libgee wnck librsvg libsecret json_glib ];
meta = with stdenv.lib; {
+4 -3
pkgs/applications/misc/font-manager/default.nix
···
-
{ stdenv, fetchFromGitHub, makeWrapper, automake, autoconf, libtool,
+
{ stdenv, fetchFromGitHub, automake, autoconf, libtool,
pkgconfig, file, intltool, libxml2, json_glib , sqlite, itstool,
-
librsvg, vala_0_34, gnome3, wrapGAppsHook
+
librsvg, vala_0_34, gnome3, wrapGAppsHook, gobjectIntrospection
}:
stdenv.mkDerivation rec {
···
};
nativeBuildInputs = [
-
makeWrapper
pkgconfig
automake autoconf libtool
file
···
vala_0_34
gnome3.yelp_tools
wrapGAppsHook
+
# For setup hook
+
gobjectIntrospection
];
buildInputs = [
+16 -8
pkgs/applications/misc/haxor-news/default.nix
···
-
{ stdenv, fetchurl, pythonPackages }:
+
{ stdenv, fetchurl, python }:
-
pythonPackages.buildPythonApplication rec {
-
version = "0.4.2";
-
name = "haxor-news-${version}";
+
with python.pkgs;
-
src = fetchurl {
-
url = "https://github.com/donnemartin/haxor-news/archive/${version}.tar.gz";
-
sha256 = "0543k5ys044f2a1q8k36djnnq2h2dffnwbkva9snjjy30nlwwdgs";
+
buildPythonApplication rec {
+
pname = "haxor-news";
+
version = "0.4.3";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "5b9af8338a0f8b95a8133b66ef106553823813ac171c0aefa3f3f2dbeb4d7f88";
};
-
propagatedBuildInputs = with pythonPackages; [
+
propagatedBuildInputs = [
click
colorama
requests
···
prompt_toolkit
six
];
+
+
checkInputs = [ mock ];
+
+
checkPhase = ''
+
${python.interpreter} -m unittest discover -s tests -v
+
'';
meta = with stdenv.lib; {
homepage = https://github.com/donnemartin/haxor-news;
+6 -1
pkgs/applications/misc/kupfer/default.nix
···
, fetchurl
, intltool
, python3Packages
+
, gobjectIntrospection
, gtk3
, dbus
, libwnck3
···
sha256 = "0c9xjx13r8ckfr4az116bhxsd3pk78v04c3lz6lqhraak0rp4d92";
};
-
nativeBuildInputs = [ wrapGAppsHook intltool ];
+
nativeBuildInputs = [
+
wrapGAppsHook intltool
+
# For setup hook
+
gobjectIntrospection
+
];
buildInputs = [ hicolor_icon_theme docutils libwnck3 keybinder3 ];
propagatedBuildInputs = [ pygobject3 gtk3 pyxdg dbus-python pycairo ];
+6 -2
pkgs/applications/misc/pdfpc/default.nix
···
{ stdenv, fetchFromGitHub, cmake, makeWrapper, pkgconfig, vala, gtk3, libgee
-
, poppler, libpthreadstubs, gstreamer, gst-plugins-base, librsvg, pcre }:
+
, poppler, libpthreadstubs, gstreamer, gst-plugins-base, librsvg, pcre, gobjectIntrospection }:
stdenv.mkDerivation rec {
name = "${product}-${version}";
···
sha256 = "00qfmmk8h762p53z46g976z7j4fbxyi16w5axzsv1ymvdq95ds8c";
};
-
nativeBuildInputs = [ cmake pkgconfig vala ];
+
nativeBuildInputs = [
+
cmake pkgconfig vala
+
# For setup hook
+
gobjectIntrospection
+
];
buildInputs = [ gstreamer gst-plugins-base gtk3 libgee poppler
libpthreadstubs makeWrapper librsvg pcre ];
+6 -2
pkgs/applications/misc/synapse/default.nix
···
{ stdenv, fetchurl, intltool, pkgconfig, glib, libnotify, gtk3, libgee
-
, keybinder3, json_glib, zeitgeist, vala_0_34, hicolor_icon_theme
+
, keybinder3, json_glib, zeitgeist, vala_0_34, hicolor_icon_theme, gobjectIntrospection
}:
let
···
sha256 = "04cnsmwf9xa52dh7rpb4ia715c0ls8jg1p7llc9yf3lbg1m0bvzv";
};
-
nativeBuildInputs = [ pkgconfig intltool vala_0_34 ];
+
nativeBuildInputs = [
+
pkgconfig intltool vala_0_34
+
# For setup hook
+
gobjectIntrospection
+
];
buildInputs = [
glib libnotify gtk3 libgee keybinder3 json_glib zeitgeist
hicolor_icon_theme
+7 -3
pkgs/applications/misc/valauncher/default.nix
···
-
{ stdenv, fetchFromGitHub, cmake, gtk3, vala, pkgconfig, gnome3 }:
+
{ stdenv, fetchFromGitHub, cmake, gtk3, vala, pkgconfig, gnome3, gobjectIntrospection }:
stdenv.mkDerivation rec {
version = "1.3.1";
···
sha256 = "18969v870737jg1q0l3d05pb9mxsrcpdi0mnyz94rwkspszvxxqi";
};
-
nativeBuildInputs = [ pkgconfig ];
-
buildInputs = [ cmake gtk3 vala gnome3.libgee ];
+
nativeBuildInputs = [
+
cmake vala pkgconfig
+
# For setup hook
+
gobjectIntrospection
+
];
+
buildInputs = [ gtk3 gnome3.libgee ];
meta = with stdenv.lib; {
description = "A fast dmenu-like gtk3 application launcher";
+3 -3
pkgs/applications/networking/browsers/lynx/default.nix
···
configureFlags = [ "--enable-widec" ] ++ stdenv.lib.optional sslSupport "--with-ssl";
-
nativeBuildInputs = stdenv.lib.optional sslSupport pkgconfig
-
++ stdenv.lib.optional (hostPlatform != buildPlatform) buildPackages.stdenv.cc
-
++ [ nukeReferences ];
+
depsBuildBuild = [ buildPackages.stdenv.cc ];
+
nativeBuildInputs = [ nukeReferences ]
+
++ stdenv.lib.optional sslSupport pkgconfig;
buildInputs = [ ncurses gzip ] ++ stdenv.lib.optional sslSupport openssl.dev;
+2 -2
pkgs/applications/office/kexi/default.nix
···
breeze-icons, karchive, kcodecs, kcompletion, kconfig, kconfigwidgets, kcoreaddons,
kcrash, kguiaddons, ki18n, kiconthemes, kitemviews, kio, ktexteditor, ktextwidgets,
kwidgetsaddons, kxmlgui,
-
kdb, kproperty, kreport, lcms2, libmysql, marble, postgresql
+
kdb, kproperty, kreport, lcms2, mysql, marble, postgresql
}:
mkDerivation rec {
···
breeze-icons karchive kcodecs kcompletion kconfig kconfigwidgets kcoreaddons
kcrash kguiaddons ki18n kiconthemes kitemviews kio ktexteditor ktextwidgets
kwidgetsaddons kxmlgui
-
kdb kproperty kreport lcms2 libmysql marble postgresql
+
kdb kproperty kreport lcms2 mysql.connector-c marble postgresql
];
propagatedUserEnvPkgs = [ kproperty ];
+5 -2
pkgs/applications/office/skrooge/default.nix
···
sha256 = "1dbvdrkdpgv39v8h7k3mri0nzlslfyd5kk410czj0jdn4qq400md";
};
-
nativeBuildInputs = [ cmake extra-cmake-modules shared_mime_info ];
+
nativeBuildInputs = [
+
cmake extra-cmake-modules kdoctools shared_mime_info
+
];
-
buildInputs = [ qtwebkit qtscript grantlee kxmlgui kwallet kparts kdoctools
+
buildInputs = [
+
qtwebkit qtscript grantlee kxmlgui kwallet kparts
kjobwidgets kdesignerplugin kiconthemes knewstuff sqlcipher qca-qt5
kactivities karchive kguiaddons knotifyconfig krunner kwindowsystem libofx
];
+18 -9
pkgs/applications/office/watson/default.nix
···
-
{ stdenv, pythonPackages }:
+
{ stdenv, pythonPackages, fetchpatch }:
+
+
with pythonPackages;
-
pythonPackages.buildPythonApplication rec {
+
buildPythonApplication rec {
pname = "td-watson";
-
name = "${pname}-${version}";
-
version = "1.4.0";
+
version = "1.5.2";
-
src = pythonPackages.fetchPypi {
+
src = fetchPypi {
inherit version pname;
-
sha256 = "1py0g4990jmvq0dn7jasda7f10kzr41bix46hnbyc1rshjzc17hq";
+
sha256 = "6e03d44a9278807fe5245e9ed0943f13ffb88e11249a02655c84cb86260b27c8";
};
# uses tox, test invocation fails
···
checkPhase = ''
py.test -vs tests
'';
-
checkInputs = with pythonPackages; [ py pytest pytest-datafiles mock pytest-mock pytestrunner ];
-
propagatedBuildInputs = with pythonPackages; [ requests click arrow ];
+
+
patches = [
+
(fetchpatch {
+
url = https://github.com/TailorDev/Watson/commit/f5760c71cbc22de4e12ede8f6f7257515a9064d3.patch;
+
sha256 = "0s9h26915ilpbd0qhmvk77r3gmrsdrl5l7dqxj0l5q66fp0z6b0g";
+
})
+
];
+
+
checkInputs = [ py pytest pytest-datafiles mock pytest-mock pytestrunner ];
+
propagatedBuildInputs = [ requests click arrow ];
meta = with stdenv.lib; {
homepage = https://tailordev.github.io/Watson/;
···
license = licenses.mit;
maintainers = with maintainers; [ mguentner ] ;
};
-
}
+
}
+1 -1
pkgs/applications/science/logic/coq/8.4.nix
···
fi
}
-
envHooks=(''${envHooks[@]} addCoqPath)
+
addEnvHooks "$targetOffset" addCoqPath
'';
passthru = {
+1 -1
pkgs/applications/science/logic/coq/default.nix
···
fi
}
-
envHooks=(''${envHooks[@]} addCoqPath)
+
addEnvHooks "$targetOffset" addCoqPath
'';
preConfigure = ''
+4 -2
pkgs/applications/science/math/R/setup-hook.sh
···
addRLibPath () {
-
addToSearchPath R_LIBS_SITE $1/library
+
if [[ -d "$1/library" ]]; then
+
addToSearchPath R_LIBS_SITE "$1/library"
+
fi
}
-
envHooks+=(addRLibPath)
+
addEnvHooks "$targetOffset" addRLibPath
+1 -1
pkgs/applications/science/math/glsurf/default.nix
···
sha256 = "0w8xxfnw2snflz8wdr2ca9f5g91w5vbyp1hwlx1v7vg83d4bwqs7";
};
-
buildInputs = [ freeglut mesa mysql.lib mpfr gmp
+
buildInputs = [ freeglut mesa mysql.connector-c mpfr gmp
libtiff libjpeg libpng giflib ]
++ (with ocamlPackages; [
ocaml findlib ocaml_mysql lablgl camlimages_4_0 mlgmpidl
+1 -1
pkgs/applications/video/kodi/default.nix
···
libmpeg2 libsamplerate libmad
libogg libvorbis flac libxslt systemd
lzo libcdio libmodplug libass libbluray
-
sqlite mysql.lib avahi lame
+
sqlite mysql.connector-c avahi lame
curl bzip2 zip unzip glxinfo xdpyinfo
libcec libcec_platform dcadec libuuid
libgcrypt libgpgerror libunistring
+2 -1
pkgs/applications/video/mplayer/default.nix
···
rm -rf ffmpeg
'';
-
nativeBuildInputs = [ buildPackages.stdenv.cc pkgconfig yasm ];
+
depsBuildBuild = [ buildPackages.stdenv.cc ];
+
nativeBuildInputs = [ pkgconfig yasm ];
buildInputs = with stdenv.lib;
[ freetype ffmpeg ]
++ optional aalibSupport aalib
+15 -1
pkgs/build-support/bintools-wrapper/default.nix
···
set +u
'';
-
propagatedBuildInputs = extraPackages;
+
emulation = let
+
fmt =
+
/**/ if targetPlatform.isDarwin then "mach-o"
+
else if targetPlatform.isWindows then "pe"
+
else "elf" + toString targetPlatform.parsed.cpu.bits;
+
endianPrefix = if targetPlatform.isBigEndian then "big" else "little";
+
arch =
+
/**/ if targetPlatform.isAarch64 then endianPrefix + "aarch64"
+
else if targetPlatform.isArm then endianPrefix + "arm"
+
else if targetPlatform.isx86_64 then "x86-64"
+
else if targetPlatform.isi686 then "i386"
+
else throw "unknown emulation for platform: " + targetPlatform.config;
+
in targetPlatform.platform.bfdEmulation or (fmt + "-" + arch);
+
+
depsTargetTargetPropagated = extraPackages;
setupHook = ./setup-hook.sh;
+5
pkgs/build-support/bintools-wrapper/ld-wrapper.sh
···
extraAfter+=($NIX_@infixSalt@_LDFLAGS_AFTER)
+
# Specify the target emulation if nothing is passed in ("-m" overrides this
+
# environment variable). Ensures we never blindly fallback on targeting the host
+
# platform.
+
: ${LDEMULATION:=@emulation@}
+
# Three tasks:
#
# 1. Find all -L... switches for rpath
+33 -12
pkgs/build-support/bintools-wrapper/setup-hook.sh
···
#
# See comments in cc-wrapper's setup hook. This works exactly the same way.
+
set -u
+
+
# Skip setup hook if we're neither a build-time dep, nor, temporarily, doing a
+
# native compile.
+
#
+
# TODO(@Ericson2314): No native exception
+
[[ -z ${crossConfig-} ]] || (( "$hostOffset" < 0 )) || return 0
+
bintoolsWrapper_addLDVars () {
-
case $depOffset in
+
case $depHostOffset in
-1) local role='BUILD_' ;;
0) local role='' ;;
1) local role='TARGET_' ;;
-
*) echo "bintools-wrapper: Error: Cannot be used with $depOffset-offset deps, " >2;
+
*) echo "bintools-wrapper: Error: Cannot be used with $depHostOffset-offset deps" >2;
return 1 ;;
esac
···
fi
}
-
if [ -n "${crossConfig:-}" ]; then
-
export NIX_BINTOOLS_WRAPPER_@infixSalt@_TARGET_BUILD=1
-
role_pre='BUILD_'
-
role_post='_FOR_BUILD'
-
else
-
export NIX_BINTOOLS_WRAPPER_@infixSalt@_TARGET_HOST=1
-
role_pre=""
-
role_post=''
-
fi
+
case $targetOffset in
+
-1)
+
export NIX_BINTOOLS_WRAPPER_@infixSalt@_TARGET_BUILD=1
+
role_pre='BUILD_'
+
role_post='_FOR_BUILD'
+
;;
+
0)
+
export NIX_BINTOOLS_WRAPPER_@infixSalt@_TARGET_HOST=1
+
role_pre=''
+
role_post=''
+
;;
+
1)
+
export NIX_BINTOOLS_WRAPPER_@infixSalt@_TARGET_TARGET=1
+
role_pre='TARGET_'
+
role_post='_FOR_TARGET'
+
;;
+
*)
+
echo "cc-wrapper: used as improper sort of dependency" >2;
+
return 1
+
;;
+
esac
-
envHooks+=(bintoolsWrapper_addLDVars)
+
addEnvHooks "$targetOffset" bintoolsWrapper_addLDVars
# shellcheck disable=SC2157
if [ -n "@bintools_bin@" ]; then
···
# No local scope in sourced file
unset -v role_pre role_post cmd upper_case
+
set +u
+2 -1
pkgs/build-support/cc-wrapper/default.nix
···
ln -s $ccPath/${targetPrefix}ghdl $out/bin/${targetPrefix}ghdl
'';
-
propagatedBuildInputs = [ bintools ] ++ extraPackages;
+
propagatedBuildInputs = [ bintools ];
+
depsTargetTargetPropagated = extraPackages;
setupHook = ./setup-hook.sh;
+37 -18
pkgs/build-support/cc-wrapper/setup-hook.sh
···
# For more details, read the individual files where the mechanisms used to
# accomplish this will be individually documented.
+
set -u
+
+
# Skip setup hook if we're neither a build-time dep, nor, temporarily, doing a
+
# native compile.
+
#
+
# TODO(@Ericson2314): No native exception
+
[[ -z ${crossConfig-} ]] || (( "$hostOffset" < 0 )) || return 0
# It's fine that any other cc-wrapper will redefine this. Bash functions close
# over no state, and there's no @-substitutions within, so any redefined
# function is guaranteed to be exactly the same.
ccWrapper_addCVars () {
-
# The `depOffset` describes how the platforms of the dependencies are slid
-
# relative to the depending package. It is brought into scope of the
-
# environment hook defined as the role of the dependency being applied.
-
case $depOffset in
+
# The `depHostOffset` describes how the host platform of the dependencies
+
# are slid relative to the depending package. It is brought into scope of
+
# the environment hook defined as the role of the dependency being applied.
+
case $depHostOffset in
-1) local role='BUILD_' ;;
0) local role='' ;;
1) local role='TARGET_' ;;
-
*) echo "cc-wrapper: Error: Cannot be used with $depOffset-offset deps, " >2;
+
*) echo "cc-wrapper: Error: Cannot be used with $depHostOffset-offset deps" >2;
return 1 ;;
esac
···
#
# We also need to worry about what role is being added on *this* invocation of
# setup-hook, which `role` tracks.
-
if [ -n "${crossConfig:-}" ]; then
-
export NIX_CC_WRAPPER_@infixSalt@_TARGET_BUILD=1
-
role_pre='BUILD_'
-
role_post='_FOR_BUILD'
-
else
-
export NIX_CC_WRAPPER_@infixSalt@_TARGET_HOST=1
-
role_pre=''
-
role_post=''
-
fi
+
case $targetOffset in
+
-1)
+
export NIX_CC_WRAPPER_@infixSalt@_TARGET_BUILD=1
+
role_pre='BUILD_'
+
role_post='_FOR_BUILD'
+
;;
+
0)
+
export NIX_CC_WRAPPER_@infixSalt@_TARGET_HOST=1
+
role_pre=''
+
role_post=''
+
;;
+
1)
+
export NIX_CC_WRAPPER_@infixSalt@_TARGET_TARGET=1
+
role_pre='TARGET_'
+
role_post='_FOR_TARGET'
+
;;
+
*)
+
echo "cc-wrapper: used as improper sort of dependency" >2;
+
return 1
+
;;
+
esac
-
# Eventually the exact sort of env-hook we create will depend on the role. This
-
# is because based on what relative platform we are targeting, we use different
-
# dependencies.
-
envHooks+=(ccWrapper_addCVars)
+
# We use the `targetOffset` to choose the right env hook to accumulate the right
+
# sort of deps (those with that offset).
+
addEnvHooks "$targetOffset" ccWrapper_addCVars
# Note 1: these come *after* $out in the PATH (see setup.sh).
# Note 2: phase separation makes this look useless to shellcheck.
···
# No local scope in sourced file
unset -v role_pre role_post
+
set +u
+5 -1
pkgs/build-support/emacs/setup-hook.sh
···
fi
}
-
envHooks+=(addEmacsVars)
+
# If this is for a wrapper derivation, emacs and the dependencies are all
+
# run-time dependencies. If this is for precompiling packages into bytecode,
+
# emacs is a compile-time dependency of the package.
+
addEnvHooks "$targetOffset" addEmacsVars
+
addEnvHooks "$targetOffset" addEmacsVars
+2 -2
pkgs/build-support/gcc-wrapper-old/setup-hook.sh
···
-
addCVars () {
+
gccWrapperOld_addCVars () {
if test -d $1/include; then
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -isystem $1/include"
fi
···
fi
}
-
envHooks=(${envHooks[@]} addCVars)
+
envBuildBuildHooks+=(gccWrapperOld_addCVars)
# Note: these come *after* $out in the PATH (see setup.sh).
+1 -1
pkgs/build-support/setup-hooks/find-xml-catalogs.sh
···
# xmllint and xsltproc from looking in /etc/xml/catalog.
export XML_CATALOG_FILES
if [ -z "$XML_CATALOG_FILES" ]; then XML_CATALOG_FILES=" "; fi
-
envHooks+=(addXMLCatalogs)
+
addEnvHooks "$hostOffset" addXMLCatalogs
fi
+1 -1
pkgs/build-support/setup-hooks/set-java-classpath.sh
···
done
}
-
envHooks+=(addPkgToClassPath)
+
addEnvHooks "$targetOffset" addPkgToClassPath
+1 -1
pkgs/build-support/setup-hooks/setup-debug-info-dirs.sh
···
addToSearchPath NIX_DEBUG_INFO_DIRS $1/lib/debug
}
-
envHooks+=(setupDebugInfoDirs)
+
addEnvHooks "$targetOffset" setupDebugInfoDirs
+29 -8
pkgs/build-support/setup-hooks/strip.sh
···
fixupOutputHooks+=(_doStrip)
_doStrip() {
-
if [ -z "$dontStrip" ]; then
+
# We don't bother to strip build platform code because it shouldn't make it
+
# to $out anyways---if it does, that's a bigger problem that a lack of
+
# stripping will help catch.
+
local -ra flags=(dontStripHost dontStripTarget)
+
local -ra stripCmds=(STRIP TARGET_STRIP)
+
+
# Optimization
+
if [[ "$STRIP" == "$TARGET_STRIP" ]]; then
+
dontStripTarget+=1
+
fi
+
+
local i
+
for i in ${!stripCmds[@]}; do
+
local -n flag="${flags[$i]}"
+
local -n stripCmd="${stripCmds[$i]}"
+
+
# `dontStrip` disables them all
+
if [[ "$dontStrip" || "$flag" ]] || ! type -f "$stripCmd" 2>/dev/null
+
then continue; fi
+
stripDebugList=${stripDebugList:-lib lib32 lib64 libexec bin sbin}
if [ -n "$stripDebugList" ]; then
-
stripDirs "$stripDebugList" "${stripDebugFlags:--S}"
+
stripDirs "$stripCmd" "$stripDebugList" "${stripDebugFlags:--S}"
fi
stripAllList=${stripAllList:-}
if [ -n "$stripAllList" ]; then
-
stripDirs "$stripAllList" "${stripAllFlags:--s}"
+
stripDirs "$stripCmd" "$stripAllList" "${stripAllFlags:--s}"
fi
-
fi
+
done
}
stripDirs() {
-
local dirs="$1"
-
local stripFlags="$2"
+
local cmd="$1"
+
local dirs="$2"
+
local stripFlags="$3"
local dirsNew=
+
local d
for d in ${dirs}; do
if [ -d "$prefix/$d" ]; then
dirsNew="${dirsNew} $prefix/$d "
···
dirs=${dirsNew}
if [ -n "${dirs}" ]; then
-
header "stripping (with flags $stripFlags) in$dirs"
-
find $dirs -type f -print0 | xargs -0 ${xargsFlags:--r} $STRIP $commonStripFlags $stripFlags 2>/dev/null || true
+
header "stripping (with command $cmd and flags $stripFlags) in$dirs"
+
find $dirs -type f -print0 | xargs -0 ${xargsFlags:--r} $cmd $commonStripFlags $stripFlags 2>/dev/null || true
stopNest
fi
}
+1 -1
pkgs/build-support/setup-hooks/wrap-gapps-hook.sh
···
fi
}
-
envHooks+=(find_gio_modules)
+
addEnvHooks "$targetOffset" find_gio_modules
# Note: $gappsWrapperArgs still gets defined even if $dontWrapGApps is set.
wrapGAppsHook() {
+2 -1
pkgs/data/icons/hicolor-icon-theme/setup-hook.sh
···
}
-
envHooks+=(hicolorIconThemeHook)
+
# I think this is meant to be a runtime dep
+
addEnvHooks "$hostOffset" hicolorIconThemeHook
# Remove icon cache
hicolorPreFixupPhase() {
+3 -3
pkgs/desktops/gnome-3/apps/gnome-characters/default.nix
···
{ stdenv, fetchurl, pkgconfig, gnome3, gtk3, wrapGAppsHook
-
, intltool, gjs, gdk_pixbuf, librsvg }:
+
, intltool, gobjectIntrospection, gjs, gdk_pixbuf, librsvg }:
stdenv.mkDerivation rec {
inherit (import ./src.nix fetchurl) name src;
-
nativeBuildInputs = [ pkgconfig ];
+
nativeBuildInputs = [ pkgconfig wrapGAppsHook intltool ];
buildInputs = [
-
gtk3 wrapGAppsHook intltool gjs gdk_pixbuf
+
gtk3 gjs gdk_pixbuf gobjectIntrospection
librsvg gnome3.gsettings_desktop_schemas gnome3.defaultIconTheme
];
+2 -2
pkgs/desktops/gnome-3/core/eog/default.nix
···
{ fetchurl, stdenv, gettext, pkgconfig, itstool, libxml2, libjpeg, gnome3
-
, shared_mime_info, wrapGAppsHook, librsvg, libexif }:
+
, shared_mime_info, wrapGAppsHook, librsvg, libexif, gobjectIntrospection }:
stdenv.mkDerivation rec {
inherit (import ./src.nix fetchurl) name src;
-
nativeBuildInputs = [ pkgconfig gettext itstool wrapGAppsHook ];
+
nativeBuildInputs = [ pkgconfig gettext itstool wrapGAppsHook gobjectIntrospection ];
buildInputs = with gnome3;
[ libxml2 libjpeg gtk glib libpeas librsvg
+2 -2
pkgs/desktops/gnome-3/core/gconf/default.nix
···
{ stdenv, fetchurl, pkgconfig, dbus_glib, gnome3 ? null, glib, libxml2
-
, intltool, polkit, orbit, withGtk ? false }:
+
, intltool, polkit, orbit, python, withGtk ? false }:
assert withGtk -> (gnome3 != null);
···
sha256 = "0k3q9nh53yhc9qxf1zaicz4sk8p3kzq4ndjdsgpaa2db0ccbj4hr";
};
-
buildInputs = [ libxml2 polkit orbit ] ++ stdenv.lib.optional withGtk gnome3.gtk;
+
buildInputs = [ libxml2 polkit orbit python ] ++ stdenv.lib.optional withGtk gnome3.gtk;
propagatedBuildInputs = [ glib dbus_glib ];
nativeBuildInputs = [ pkgconfig intltool ];
+2 -2
pkgs/desktops/gnome-3/core/gnome-bluetooth/default.nix
···
{ stdenv, fetchurl, gnome3, meson, ninja, pkgconfig, gtk3, intltool, glib
-
, udev, itstool, libxml2, wrapGAppsHook, libnotify, libcanberra_gtk3 }:
+
, udev, itstool, libxml2, wrapGAppsHook, libnotify, libcanberra_gtk3, gobjectIntrospection }:
stdenv.mkDerivation rec {
inherit (import ./src.nix fetchurl) name src;
-
nativeBuildInputs = [ meson ninja intltool itstool pkgconfig libxml2 wrapGAppsHook ];
+
nativeBuildInputs = [ meson ninja intltool itstool pkgconfig libxml2 wrapGAppsHook gobjectIntrospection ];
buildInputs = [ glib gtk3 udev libnotify libcanberra_gtk3
gnome3.defaultIconTheme gnome3.gsettings_desktop_schemas ];
+1 -1
pkgs/desktops/gnome-3/core/grilo/setup-hook.sh
···
fi
}
-
envHooks+=(make_grilo_find_plugins)
+
addEnvHooks "$hostOffset" make_grilo_find_plugins
+7 -5
pkgs/desktops/gnome-3/core/gtksourceview/default.nix
···
{ stdenv, fetchurl, pkgconfig, atk, cairo, glib, gtk3, pango
-
, libxml2, perl, intltool, gettext, gnome3, dbus, xvfb_run, shared_mime_info }:
+
, libxml2, perl, intltool, gettext, gnome3, gobjectIntrospection, dbus, xvfb_run, shared_mime_info }:
-
stdenv.mkDerivation rec {
+
let
+
checkInputs = [ xvfb_run dbus ];
+
in stdenv.mkDerivation rec {
inherit (import ./src.nix fetchurl) name src;
propagatedBuildInputs = [
···
outputs = [ "out" "dev" ];
-
nativeBuildInputs = [ pkgconfig intltool gettext perl ]
-
++ checkInputs;
+
nativeBuildInputs = [ pkgconfig intltool gettext perl gobjectIntrospection ]
+
++ stdenv.lib.optionals doCheck checkInputs;
+
buildInputs = [ atk cairo glib pango libxml2 ];
-
checkInputs = stdenv.lib.optionals doCheck [ xvfb_run dbus ];
preBuild = ''
substituteInPlace gtksourceview/gtksourceview-utils.c --replace "@NIX_SHARE_PATH@" "$out/share"
+6 -5
pkgs/desktops/gnome-3/core/gucharmap/default.nix
···
{ stdenv, intltool, fetchurl, pkgconfig, gtk3
, glib, desktop_file_utils, bash, appdata-tools
, wrapGAppsHook, gnome3, itstool, libxml2
-
, callPackage, unzip }:
+
, callPackage, unzip, gobjectIntrospection }:
# TODO: icons and theme still does not work
# use packaged gnome3.adwaita-icon-theme
···
preConfigure = "patchShebangs gucharmap/gen-guch-unicode-tables.pl";
-
nativeBuildInputs = [ pkgconfig wrapGAppsHook unzip ];
+
nativeBuildInputs = [
+
pkgconfig wrapGAppsHook unzip intltool itstool appdata-tools
+
gnome3.yelp_tools libxml2 desktop_file_utils gobjectIntrospection
+
];
-
buildInputs = [ gtk3 intltool itstool glib appdata-tools
-
gnome3.yelp_tools libxml2 desktop_file_utils
-
gnome3.gsettings_desktop_schemas ];
+
buildInputs = [ gtk3 glib gnome3.gsettings_desktop_schemas ];
unicode-data = callPackage ./unicode-data.nix {};
+5 -1
pkgs/desktops/gnome-3/core/libpeas/default.nix
···
configureFlags = [ "--enable-python3" ];
nativeBuildInputs = [ pkgconfig ];
-
buildInputs = [ intltool glib gtk3 gnome3.defaultIconTheme ncurses python3Packages.python python3Packages.pygobject3 gobjectIntrospection ];
+
buildInputs = [ intltool glib gtk3 gnome3.defaultIconTheme ncurses python3Packages.python python3Packages.pygobject3 ];
+
propagatedBuildInputs = [
+
# Required by libpeas-1.0.pc
+
gobjectIntrospection
+
];
meta = with stdenv.lib; {
description = "A GObject-based plugins engine";
+6 -2
pkgs/desktops/gnome-3/core/simple-scan/default.nix
···
{ stdenv, fetchurl, meson, ninja, pkgconfig, gettext, itstool, wrapGAppsHook
, cairo, gdk_pixbuf, colord, glib, gtk, gusb, packagekit, libwebp
-
, libxml2, sane-backends, vala, gnome3 }:
+
, libxml2, sane-backends, vala, gnome3, gobjectIntrospection }:
stdenv.mkDerivation rec {
inherit (import ./src.nix fetchurl) name src;
buildInputs = [ cairo gdk_pixbuf colord glib gnome3.defaultIconTheme gusb
gtk libwebp packagekit sane-backends vala ];
-
nativeBuildInputs = [ meson ninja gettext itstool pkgconfig wrapGAppsHook libxml2 ];
+
nativeBuildInputs = [
+
meson ninja gettext itstool pkgconfig wrapGAppsHook libxml2
+
# For setup hook
+
gobjectIntrospection
+
];
postPatch = ''
patchShebangs data/meson_compile_gschema.py
+2 -2
pkgs/desktops/gnome-3/misc/gspell/default.nix
···
-
{ stdenv, fetchurl, pkgconfig, glib, gtk3, enchant, isocodes, vala }:
+
{ stdenv, fetchurl, pkgconfig, glib, gtk3, enchant, isocodes, vala, gobjectIntrospection }:
stdenv.mkDerivation rec {
inherit (import ./src.nix fetchurl) name src;
propagatedBuildInputs = [ enchant ]; # required for pkgconfig
-
nativeBuildInputs = [ pkgconfig vala ];
+
nativeBuildInputs = [ pkgconfig vala gobjectIntrospection ];
buildInputs = [ glib gtk3 isocodes ];
meta = with stdenv.lib; {
+1 -1
pkgs/desktops/gnustep/make/setup-hook.sh
···
addToSearchPath NIX_GNUSTEP_SYSTEM_DOC_INFO "$tmp"
fi
}
-
envHooks=(${envHooks[@]} addEnvVars)
+
addEnvHooks "$targetOffset" addEnvVars
+6 -2
pkgs/desktops/pantheon/apps/pantheon-terminal/default.nix
···
-
{ stdenv, fetchurl, perl, cmake, vala_0_38, pkgconfig, glib, gtk3, granite, gnome3, libnotify, gettext, makeWrapper }:
+
{ stdenv, fetchurl, perl, cmake, vala_0_38, pkgconfig, glib, gtk3, granite, gnome3, libnotify, gettext, makeWrapper, gobjectIntrospection }:
stdenv.mkDerivation rec {
majorVersion = "0.4";
···
done
'';
-
nativeBuildInputs = [ perl cmake vala_0_38 pkgconfig makeWrapper ];
+
nativeBuildInputs = [
+
perl cmake vala_0_38 pkgconfig makeWrapper
+
# For setup hook
+
gobjectIntrospection
+
];
buildInputs = with gnome3; [
glib gtk3 granite libnotify gettext vte_290 libgee
gsettings_desktop_schemas defaultIconTheme
+1 -1
pkgs/development/compilers/chicken/setup-hook.sh
···
export CHICKEN_INCLUDE_PATH="$1/share;$CHICKEN_INCLUDE_PATH"
}
-
envHooks=(${envHooks[@]} addChickenRepositoryPath)
+
addEnvHooks "$targetOffset" addChickenRepositoryPath
+14 -54
pkgs/development/compilers/gcc/4.5/default.nix
···
inherit noSysDirs profiledCompiler staticCompiler langJava
libcCross crossMingw;
+
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ texinfo which gettext ]
++ optional (perl != null) perl;
-
buildInputs = [ gmp mpfr libmpc libelf ]
-
++ (optional (ppl != null) ppl)
+
# For building runtime libs
+
depsBuildTarget =
+
if hostPlatform == buildPlatform then [
+
targetPackages.stdenv.cc.bintools # newly-built gcc will be used
+
] else assert targetPlatform == hostPlatform; [ # build != host == target
+
stdenv.cc
+
];
+
+
buildInputs = [
+
gmp mpfr libmpc libelf
+
targetPackages.stdenv.cc.bintools # For linking code at run-time
+
] ++ (optional (ppl != null) ppl)
++ (optional (cloogppl != null) cloogppl)
++ (optional (zlib != null) zlib)
++ (optional langJava boehmgc)
···
;
# TODO(@Ericson2314): Always pass "--target" and always prefix.
-
configurePlatforms =
-
# TODO(@Ericson2314): Figure out what's going wrong with Arm
-
if hostPlatform == targetPlatform && targetPlatform.isArm
-
then []
-
else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
+
configurePlatforms = [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
configureFlags =
# Basic dependencies
···
/* For cross-built gcc (build != host == target) */
crossAttrs = {
-
AR_FOR_BUILD = "ar";
-
AS_FOR_BUILD = "as";
-
LD_FOR_BUILD = "ld";
-
NM_FOR_BUILD = "nm";
-
OBJCOPY_FOR_BUILD = "objcopy";
-
OBJDUMP_FOR_BUILD = "objdump";
-
RANLIB_FOR_BUILD = "ranlib";
-
SIZE_FOR_BUILD = "size";
-
STRINGS_FOR_BUILD = "strings";
-
STRIP_FOR_BUILD = "strip";
-
CC_FOR_BUILD = "gcc";
-
CXX_FOR_BUILD = "g++";
-
-
AR = "${targetPlatform.config}-ar";
-
AS = "${targetPlatform.config}-as";
-
LD = "${targetPlatform.config}-ld";
-
NM = "${targetPlatform.config}-nm";
-
OBJCOPY = "${targetPlatform.config}-objcopy";
-
OBJDUMP = "${targetPlatform.config}-objdump";
-
RANLIB = "${targetPlatform.config}-ranlib";
-
SIZE = "${targetPlatform.config}-size";
-
STRINGS = "${targetPlatform.config}-strings";
-
STRIP = "${targetPlatform.config}-strip";
-
CC = "${targetPlatform.config}-gcc";
-
CXX = "${targetPlatform.config}-g++";
-
-
AR_FOR_TARGET = "${targetPlatform.config}-ar";
-
AS_FOR_TARGET = "${targetPlatform.config}-as";
-
LD_FOR_TARGET = "${targetPlatform.config}-ld";
-
NM_FOR_TARGET = "${targetPlatform.config}-nm";
-
OBJCOPY_FOR_TARGET = "${targetPlatform.config}-objcopy";
-
OBJDUMP_FOR_TARGET = "${targetPlatform.config}-objdump";
-
RANLIB_FOR_TARGET = "${targetPlatform.config}-ranlib";
-
SIZE_FOR_TARGET = "${targetPlatform.config}-size";
-
STRINGS_FOR_TARGET = "${targetPlatform.config}-strings";
-
STRIP_FOR_TARGET = "${targetPlatform.config}-strip";
-
CC_FOR_TARGET = "${targetPlatform.config}-gcc";
-
CXX_FOR_TARGET = "${targetPlatform.config}-g++";
-
dontStrip = true;
};
-
-
NIX_BUILD_BINTOOLS = buildPackages.stdenv.cc.bintools;
-
NIX_BUILD_CC = buildPackages.stdenv.cc;
-
-
# Needed for the cross compilation to work
-
AR = "ar";
-
LD = "ld";
-
CC = "gcc";
# Setting $CPATH and $LIBRARY_PATH to make sure both `gcc' and `xgcc' find the
# library headers and binaries, regarless of the language being compiled.
+3 -51
pkgs/development/compilers/gcc/4.8/default.nix
···
inherit noSysDirs staticCompiler langJava
libcCross crossMingw;
+
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ texinfo which gettext ]
++ (optional (perl != null) perl)
++ (optional javaAwtGtk pkgconfig);
···
dontDisableStatic = true;
# TODO(@Ericson2314): Always pass "--target" and always prefix.
-
configurePlatforms =
-
# TODO(@Ericson2314): Figure out what's going wrong with Arm
-
if hostPlatform == targetPlatform && targetPlatform.isArm
-
then []
-
else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
+
configurePlatforms = [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
configureFlags =
# Basic dependencies
···
/* For cross-built gcc (build != host == target) */
crossAttrs = {
-
AR_FOR_BUILD = "ar";
-
AS_FOR_BUILD = "as";
-
LD_FOR_BUILD = "ld";
-
NM_FOR_BUILD = "nm";
-
OBJCOPY_FOR_BUILD = "objcopy";
-
OBJDUMP_FOR_BUILD = "objdump";
-
RANLIB_FOR_BUILD = "ranlib";
-
SIZE_FOR_BUILD = "size";
-
STRINGS_FOR_BUILD = "strings";
-
STRIP_FOR_BUILD = "strip";
-
CC_FOR_BUILD = "gcc";
-
CXX_FOR_BUILD = "g++";
-
-
AR = "${targetPlatform.config}-ar";
-
AS = "${targetPlatform.config}-as";
-
LD = "${targetPlatform.config}-ld";
-
NM = "${targetPlatform.config}-nm";
-
OBJCOPY = "${targetPlatform.config}-objcopy";
-
OBJDUMP = "${targetPlatform.config}-objdump";
-
RANLIB = "${targetPlatform.config}-ranlib";
-
SIZE = "${targetPlatform.config}-size";
-
STRINGS = "${targetPlatform.config}-strings";
-
STRIP = "${targetPlatform.config}-strip";
-
CC = "${targetPlatform.config}-gcc";
-
CXX = "${targetPlatform.config}-g++";
-
-
AR_FOR_TARGET = "${targetPlatform.config}-ar";
-
AS_FOR_TARGET = "${targetPlatform.config}-as";
-
LD_FOR_TARGET = "${targetPlatform.config}-ld";
-
NM_FOR_TARGET = "${targetPlatform.config}-nm";
-
OBJCOPY_FOR_TARGET = "${targetPlatform.config}-objcopy";
-
OBJDUMP_FOR_TARGET = "${targetPlatform.config}-objdump";
-
RANLIB_FOR_TARGET = "${targetPlatform.config}-ranlib";
-
SIZE_FOR_TARGET = "${targetPlatform.config}-size";
-
STRINGS_FOR_TARGET = "${targetPlatform.config}-strings";
-
STRIP_FOR_TARGET = "${targetPlatform.config}-strip";
-
CC_FOR_TARGET = "${targetPlatform.config}-gcc";
-
CXX_FOR_TARGET = "${targetPlatform.config}-g++";
-
dontStrip = true;
buildFlags = "";
};
-
NIX_BUILD_BINTOOLS = buildPackages.stdenv.cc.bintools;
-
NIX_BUILD_CC = buildPackages.stdenv.cc;
-
-
# Needed for the cross compilation to work
-
AR = "ar";
-
LD = "ld";
# http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
-
CC = if stdenv.system == "x86_64-solaris" then "gcc -m64" else "gcc";
+
${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";
# Setting $CPATH and $LIBRARY_PATH to make sure both `gcc' and `xgcc' find the
# library headers and binaries, regarless of the language being compiled.
+15 -53
pkgs/development/compilers/gcc/4.9/default.nix
···
inherit noSysDirs staticCompiler langJava
libcCross crossMingw;
+
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ texinfo which gettext ]
++ (optional (perl != null) perl)
++ (optional javaAwtGtk pkgconfig);
-
buildInputs = [ gmp mpfr libmpc libelf ]
-
++ (optional (cloog != null) cloog)
+
# For building runtime libs
+
depsBuildTarget =
+
if hostPlatform == buildPlatform then [
+
targetPackages.stdenv.cc.bintools # newly-built gcc will be used
+
] else assert targetPlatform == hostPlatform; [ # build != host == target
+
stdenv.cc
+
];
+
+
buildInputs = [
+
gmp mpfr libmpc libelf
+
targetPackages.stdenv.cc.bintools # For linking code at run-time
+
] ++ (optional (cloog != null) cloog)
++ (optional (isl != null) isl)
++ (optional (zlib != null) zlib)
++ (optionals langJava [ boehmgc zip unzip ])
···
dontDisableStatic = true;
# TODO(@Ericson2314): Always pass "--target" and always prefix.
-
configurePlatforms =
-
# TODO(@Ericson2314): Figure out what's going wrong with Arm
-
if hostPlatform == targetPlatform && targetPlatform.isArm
-
then []
-
else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
+
configurePlatforms = [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
configureFlags =
# Basic dependencies
···
/* For cross-built gcc (build != host == target) */
crossAttrs = {
-
AR_FOR_BUILD = "ar";
-
AS_FOR_BUILD = "as";
-
LD_FOR_BUILD = "ld";
-
NM_FOR_BUILD = "nm";
-
OBJCOPY_FOR_BUILD = "objcopy";
-
OBJDUMP_FOR_BUILD = "objdump";
-
RANLIB_FOR_BUILD = "ranlib";
-
SIZE_FOR_BUILD = "size";
-
STRINGS_FOR_BUILD = "strings";
-
STRIP_FOR_BUILD = "strip";
-
CC_FOR_BUILD = "gcc";
-
CXX_FOR_BUILD = "g++";
-
-
AR = "${targetPlatform.config}-ar";
-
AS = "${targetPlatform.config}-as";
-
LD = "${targetPlatform.config}-ld";
-
NM = "${targetPlatform.config}-nm";
-
OBJCOPY = "${targetPlatform.config}-objcopy";
-
OBJDUMP = "${targetPlatform.config}-objdump";
-
RANLIB = "${targetPlatform.config}-ranlib";
-
SIZE = "${targetPlatform.config}-size";
-
STRINGS = "${targetPlatform.config}-strings";
-
STRIP = "${targetPlatform.config}-strip";
-
CC = "${targetPlatform.config}-gcc";
-
CXX = "${targetPlatform.config}-g++";
-
-
AR_FOR_TARGET = "${targetPlatform.config}-ar";
-
AS_FOR_TARGET = "${targetPlatform.config}-as";
-
LD_FOR_TARGET = "${targetPlatform.config}-ld";
-
NM_FOR_TARGET = "${targetPlatform.config}-nm";
-
OBJCOPY_FOR_TARGET = "${targetPlatform.config}-objcopy";
-
OBJDUMP_FOR_TARGET = "${targetPlatform.config}-objdump";
-
RANLIB_FOR_TARGET = "${targetPlatform.config}-ranlib";
-
SIZE_FOR_TARGET = "${targetPlatform.config}-size";
-
STRINGS_FOR_TARGET = "${targetPlatform.config}-strings";
-
STRIP_FOR_TARGET = "${targetPlatform.config}-strip";
-
CC_FOR_TARGET = "${targetPlatform.config}-gcc";
-
CXX_FOR_TARGET = "${targetPlatform.config}-g++";
-
dontStrip = true;
buildFlags = "";
};
-
NIX_BUILD_BINTOOLS = buildPackages.stdenv.cc.bintools;
-
NIX_BUILD_CC = buildPackages.stdenv.cc;
-
-
# Needed for the cross compilation to work
-
AR = "ar";
-
LD = "ld";
# http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
-
CC = if stdenv.system == "x86_64-solaris" then "gcc -m64" else "gcc";
+
${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";
# Setting $CPATH and $LIBRARY_PATH to make sure both `gcc' and `xgcc' find the
# library headers and binaries, regarless of the language being compiled.
+15 -57
pkgs/development/compilers/gcc/5/default.nix
···
# Make sure we get GNU sed.
assert hostPlatform.isDarwin -> gnused != null;
-
# Need c++filt on darwin
-
assert hostPlatform.isDarwin -> targetPackages.stdenv.cc.bintools or null != null;
-
# The go frontend is written in c++
assert langGo -> langCC;
···
inherit noSysDirs staticCompiler langJava
libcCross crossMingw;
+
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ texinfo which gettext ]
++ (optional (perl != null) perl)
++ (optional javaAwtGtk pkgconfig);
-
buildInputs = [ gmp mpfr libmpc libelf ]
-
++ (optional (isl != null) isl)
+
# For building runtime libs
+
depsBuildTarget =
+
if hostPlatform == buildPlatform then [
+
targetPackages.stdenv.cc.bintools # newly-built gcc will be used
+
] else assert targetPlatform == hostPlatform; [ # build != host == target
+
stdenv.cc
+
];
+
+
buildInputs = [
+
gmp mpfr libmpc libelf
+
targetPackages.stdenv.cc.bintools # For linking code at run-time
+
] ++ (optional (isl != null) isl)
++ (optional (zlib != null) zlib)
++ (optionals langJava [ boehmgc zip unzip ])
++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs))
++ (optionals (targetPlatform != hostPlatform) [targetPackages.stdenv.cc.bintools])
-
++ (optionals (buildPlatform != hostPlatform) [buildPackages.stdenv.cc])
++ (optionals langAda [gnatboot])
++ (optionals langVhdl [gnat])
···
dontDisableStatic = true;
# TODO(@Ericson2314): Always pass "--target" and always prefix.
-
configurePlatforms =
-
# TODO(@Ericson2314): Figure out what's going wrong with Arm
-
if hostPlatform == targetPlatform && targetPlatform.isArm
-
then []
-
else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
+
configurePlatforms = [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
configureFlags =
# Basic dependencies
···
/* For cross-built gcc (build != host == target) */
crossAttrs = {
-
AR_FOR_BUILD = "ar";
-
AS_FOR_BUILD = "as";
-
LD_FOR_BUILD = "ld";
-
NM_FOR_BUILD = "nm";
-
OBJCOPY_FOR_BUILD = "objcopy";
-
OBJDUMP_FOR_BUILD = "objdump";
-
RANLIB_FOR_BUILD = "ranlib";
-
SIZE_FOR_BUILD = "size";
-
STRINGS_FOR_BUILD = "strings";
-
STRIP_FOR_BUILD = "strip";
-
CC_FOR_BUILD = "gcc";
-
CXX_FOR_BUILD = "g++";
-
-
AR = "${targetPlatform.config}-ar";
-
AS = "${targetPlatform.config}-as";
-
LD = "${targetPlatform.config}-ld";
-
NM = "${targetPlatform.config}-nm";
-
OBJCOPY = "${targetPlatform.config}-objcopy";
-
OBJDUMP = "${targetPlatform.config}-objdump";
-
RANLIB = "${targetPlatform.config}-ranlib";
-
SIZE = "${targetPlatform.config}-size";
-
STRINGS = "${targetPlatform.config}-strings";
-
STRIP = "${targetPlatform.config}-strip";
-
CC = "${targetPlatform.config}-gcc";
-
CXX = "${targetPlatform.config}-g++";
-
-
AR_FOR_TARGET = "${targetPlatform.config}-ar";
-
AS_FOR_TARGET = "${targetPlatform.config}-as";
-
LD_FOR_TARGET = "${targetPlatform.config}-ld";
-
NM_FOR_TARGET = "${targetPlatform.config}-nm";
-
OBJCOPY_FOR_TARGET = "${targetPlatform.config}-objcopy";
-
OBJDUMP_FOR_TARGET = "${targetPlatform.config}-objdump";
-
RANLIB_FOR_TARGET = "${targetPlatform.config}-ranlib";
-
SIZE_FOR_TARGET = "${targetPlatform.config}-size";
-
STRINGS_FOR_TARGET = "${targetPlatform.config}-strings";
-
STRIP_FOR_TARGET = "${targetPlatform.config}-strip";
-
CC_FOR_TARGET = "${targetPlatform.config}-gcc";
-
CXX_FOR_TARGET = "${targetPlatform.config}-g++";
-
dontStrip = true;
buildFlags = "";
};
-
NIX_BUILD_BINTOOLS = buildPackages.stdenv.cc.bintools;
-
NIX_BUILD_CC = buildPackages.stdenv.cc;
-
-
# Needed for the cross compilation to work
-
AR = "ar";
-
LD = "ld";
# http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
-
CC = if stdenv.system == "x86_64-solaris" then "gcc -m64" else "gcc";
+
${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";
# Setting $CPATH and $LIBRARY_PATH to make sure both `gcc' and `xgcc' find the
# library headers and binaries, regarless of the language being compiled.
+15 -56
pkgs/development/compilers/gcc/6/default.nix
···
# Make sure we get GNU sed.
assert hostPlatform.isDarwin -> gnused != null;
-
# Need c++filt on darwin
-
assert hostPlatform.isDarwin -> targetPackages.stdenv.cc.bintools or null != null;
-
# The go frontend is written in c++
assert langGo -> langCC;
···
inherit noSysDirs staticCompiler langJava
libcCross crossMingw;
+
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ texinfo which gettext ]
++ (optional (perl != null) perl)
++ (optional javaAwtGtk pkgconfig);
-
buildInputs = [ gmp mpfr libmpc libelf ]
-
++ (optional (isl != null) isl)
+
# For building runtime libs
+
depsBuildTarget =
+
if hostPlatform == buildPlatform then [
+
targetPackages.stdenv.cc.bintools # newly-built gcc will be used
+
] else assert targetPlatform == hostPlatform; [ # build != host == target
+
stdenv.cc
+
];
+
+
buildInputs = [
+
gmp mpfr libmpc libelf
+
targetPackages.stdenv.cc.bintools # For linking code at run-time
+
] ++ (optional (isl != null) isl)
++ (optional (zlib != null) zlib)
++ (optionals langJava [ boehmgc zip unzip ])
++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs))
···
dontDisableStatic = true;
# TODO(@Ericson2314): Always pass "--target" and always prefix.
-
configurePlatforms =
-
# TODO(@Ericson2314): Figure out what's going wrong with Arm
-
if hostPlatform == targetPlatform && targetPlatform.isArm
-
then []
-
else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
+
configurePlatforms = [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
configureFlags =
# Basic dependencies
···
/* For cross-built gcc (build != host == target) */
crossAttrs = {
-
AR_FOR_BUILD = "ar";
-
AS_FOR_BUILD = "as";
-
LD_FOR_BUILD = "ld";
-
NM_FOR_BUILD = "nm";
-
OBJCOPY_FOR_BUILD = "objcopy";
-
OBJDUMP_FOR_BUILD = "objdump";
-
RANLIB_FOR_BUILD = "ranlib";
-
SIZE_FOR_BUILD = "size";
-
STRINGS_FOR_BUILD = "strings";
-
STRIP_FOR_BUILD = "strip";
-
CC_FOR_BUILD = "gcc";
-
CXX_FOR_BUILD = "g++";
-
-
AR = "${targetPlatform.config}-ar";
-
AS = "${targetPlatform.config}-as";
-
LD = "${targetPlatform.config}-ld";
-
NM = "${targetPlatform.config}-nm";
-
OBJCOPY = "${targetPlatform.config}-objcopy";
-
OBJDUMP = "${targetPlatform.config}-objdump";
-
RANLIB = "${targetPlatform.config}-ranlib";
-
SIZE = "${targetPlatform.config}-size";
-
STRINGS = "${targetPlatform.config}-strings";
-
STRIP = "${targetPlatform.config}-strip";
-
CC = "${targetPlatform.config}-gcc";
-
CXX = "${targetPlatform.config}-g++";
-
-
AR_FOR_TARGET = "${targetPlatform.config}-ar";
-
AS_FOR_TARGET = "${targetPlatform.config}-as";
-
LD_FOR_TARGET = "${targetPlatform.config}-ld";
-
NM_FOR_TARGET = "${targetPlatform.config}-nm";
-
OBJCOPY_FOR_TARGET = "${targetPlatform.config}-objcopy";
-
OBJDUMP_FOR_TARGET = "${targetPlatform.config}-objdump";
-
RANLIB_FOR_TARGET = "${targetPlatform.config}-ranlib";
-
SIZE_FOR_TARGET = "${targetPlatform.config}-size";
-
STRINGS_FOR_TARGET = "${targetPlatform.config}-strings";
-
STRIP_FOR_TARGET = "${targetPlatform.config}-strip";
-
CC_FOR_TARGET = "${targetPlatform.config}-gcc";
-
CXX_FOR_TARGET = "${targetPlatform.config}-g++";
-
dontStrip = true;
buildFlags = "";
};
-
NIX_BUILD_BINTOOLS = buildPackages.stdenv.cc.bintools;
-
NIX_BUILD_CC = buildPackages.stdenv.cc;
-
-
# Needed for the cross compilation to work
-
AR = "ar";
-
LD = "ld";
# http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
-
CC = if stdenv.system == "x86_64-solaris" then "gcc -m64" else "gcc";
+
${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";
# Setting $CPATH and $LIBRARY_PATH to make sure both `gcc' and `xgcc' find the
# library headers and binaries, regarless of the language being compiled.
+15 -56
pkgs/development/compilers/gcc/7/default.nix
···
# Make sure we get GNU sed.
assert hostPlatform.isDarwin -> gnused != null;
-
# Need c++filt on darwin
-
assert hostPlatform.isDarwin -> targetPackages.stdenv.cc.bintools or null != null;
-
# The go frontend is written in c++
assert langGo -> langCC;
···
inherit noSysDirs staticCompiler langJava
libcCross crossMingw;
+
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ texinfo which gettext ]
++ (optional (perl != null) perl)
++ (optional javaAwtGtk pkgconfig);
-
buildInputs = [ gmp mpfr libmpc libelf flex ]
-
++ (optional (isl != null) isl)
+
# For building runtime libs
+
depsBuildTarget =
+
if hostPlatform == buildPlatform then [
+
targetPackages.stdenv.cc.bintools # newly-built gcc will be used
+
] else assert targetPlatform == hostPlatform; [ # build != host == target
+
stdenv.cc
+
];
+
+
buildInputs = [
+
gmp mpfr libmpc libelf flex
+
targetPackages.stdenv.cc.bintools # For linking code at run-time
+
] ++ (optional (isl != null) isl)
++ (optional (zlib != null) zlib)
++ (optionals langJava [ boehmgc zip unzip ])
++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs))
···
dontDisableStatic = true;
# TODO(@Ericson2314): Always pass "--target" and always prefix.
-
configurePlatforms =
-
# TODO(@Ericson2314): Figure out what's going wrong with Arm
-
if hostPlatform == targetPlatform && targetPlatform.isArm
-
then []
-
else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
+
configurePlatforms = [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
configureFlags =
# Basic dependencies
···
/* For cross-built gcc (build != host == target) */
crossAttrs = {
-
AR_FOR_BUILD = "ar";
-
AS_FOR_BUILD = "as";
-
LD_FOR_BUILD = "ld";
-
NM_FOR_BUILD = "nm";
-
OBJCOPY_FOR_BUILD = "objcopy";
-
OBJDUMP_FOR_BUILD = "objdump";
-
RANLIB_FOR_BUILD = "ranlib";
-
SIZE_FOR_BUILD = "size";
-
STRINGS_FOR_BUILD = "strings";
-
STRIP_FOR_BUILD = "strip";
-
CC_FOR_BUILD = "gcc";
-
CXX_FOR_BUILD = "g++";
-
-
AR = "${targetPlatform.config}-ar";
-
AS = "${targetPlatform.config}-as";
-
LD = "${targetPlatform.config}-ld";
-
NM = "${targetPlatform.config}-nm";
-
OBJCOPY = "${targetPlatform.config}-objcopy";
-
OBJDUMP = "${targetPlatform.config}-objdump";
-
RANLIB = "${targetPlatform.config}-ranlib";
-
SIZE = "${targetPlatform.config}-size";
-
STRINGS = "${targetPlatform.config}-strings";
-
STRIP = "${targetPlatform.config}-strip";
-
CC = "${targetPlatform.config}-gcc";
-
CXX = "${targetPlatform.config}-g++";
-
-
AR_FOR_TARGET = "${targetPlatform.config}-ar";
-
AS_FOR_TARGET = "${targetPlatform.config}-as";
-
LD_FOR_TARGET = "${targetPlatform.config}-ld";
-
NM_FOR_TARGET = "${targetPlatform.config}-nm";
-
OBJCOPY_FOR_TARGET = "${targetPlatform.config}-objcopy";
-
OBJDUMP_FOR_TARGET = "${targetPlatform.config}-objdump";
-
RANLIB_FOR_TARGET = "${targetPlatform.config}-ranlib";
-
SIZE_FOR_TARGET = "${targetPlatform.config}-size";
-
STRINGS_FOR_TARGET = "${targetPlatform.config}-strings";
-
STRIP_FOR_TARGET = "${targetPlatform.config}-strip";
-
CC_FOR_TARGET = "${targetPlatform.config}-gcc";
-
CXX_FOR_TARGET = "${targetPlatform.config}-g++";
-
dontStrip = true;
buildFlags = "";
};
-
NIX_BUILD_BINTOOLS = buildPackages.stdenv.cc.bintools;
-
NIX_BUILD_CC = buildPackages.stdenv.cc;
-
-
# Needed for the cross compilation to work
-
AR = "ar";
-
LD = "ld";
# http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
-
CC = if stdenv.system == "x86_64-solaris" then "gcc -m64" else "gcc";
+
${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";
# Setting $CPATH and $LIBRARY_PATH to make sure both `gcc' and `xgcc' find the
# library headers and binaries, regarless of the language being compiled.
+15 -56
pkgs/development/compilers/gcc/snapshot/default.nix
···
# Make sure we get GNU sed.
assert hostPlatform.isDarwin -> gnused != null;
-
# Need c++filt on darwin
-
assert hostPlatform.isDarwin -> targetPackages.stdenv.cc.bintools or null != null;
-
# The go frontend is written in c++
assert langGo -> langCC;
···
inherit noSysDirs staticCompiler langJava
libcCross crossMingw;
+
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ texinfo which gettext ]
++ (optional (perl != null) perl)
++ (optional javaAwtGtk pkgconfig);
-
buildInputs = [ gmp mpfr libmpc libelf flex ]
-
++ (optional (isl != null) isl)
+
# For building runtime libs
+
depsBuildTarget =
+
if hostPlatform == buildPlatform then [
+
targetPackages.stdenv.cc.bintools # newly-built gcc will be used
+
] else assert targetPlatform == hostPlatform; [ # build != host == target
+
stdenv.cc
+
];
+
+
buildInputs = [
+
gmp mpfr libmpc libelf flex
+
targetPackages.stdenv.cc.bintools # For linking code at run-time
+
] ++ (optional (isl != null) isl)
++ (optional (zlib != null) zlib)
++ (optionals langJava [ boehmgc zip unzip ])
++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs))
···
dontDisableStatic = true;
# TODO(@Ericson2314): Always pass "--target" and always prefix.
-
configurePlatforms =
-
# TODO(@Ericson2314): Figure out what's going wrong with Arm
-
if hostPlatform == targetPlatform && targetPlatform.isArm
-
then []
-
else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
+
configurePlatforms = [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
configureFlags =
# Basic dependencies
···
/* For cross-built gcc (build != host == target) */
crossAttrs = {
-
AR_FOR_BUILD = "ar";
-
AS_FOR_BUILD = "as";
-
LD_FOR_BUILD = "ld";
-
NM_FOR_BUILD = "nm";
-
OBJCOPY_FOR_BUILD = "objcopy";
-
OBJDUMP_FOR_BUILD = "objdump";
-
RANLIB_FOR_BUILD = "ranlib";
-
SIZE_FOR_BUILD = "size";
-
STRINGS_FOR_BUILD = "strings";
-
STRIP_FOR_BUILD = "strip";
-
CC_FOR_BUILD = "gcc";
-
CXX_FOR_BUILD = "g++";
-
-
AR = "${targetPlatform.config}-ar";
-
AS = "${targetPlatform.config}-as";
-
LD = "${targetPlatform.config}-ld";
-
NM = "${targetPlatform.config}-nm";
-
OBJCOPY = "${targetPlatform.config}-objcopy";
-
OBJDUMP = "${targetPlatform.config}-objdump";
-
RANLIB = "${targetPlatform.config}-ranlib";
-
SIZE = "${targetPlatform.config}-size";
-
STRINGS = "${targetPlatform.config}-strings";
-
STRIP = "${targetPlatform.config}-strip";
-
CC = "${targetPlatform.config}-gcc";
-
CXX = "${targetPlatform.config}-g++";
-
-
AR_FOR_TARGET = "${targetPlatform.config}-ar";
-
AS_FOR_TARGET = "${targetPlatform.config}-as";
-
LD_FOR_TARGET = "${targetPlatform.config}-ld";
-
NM_FOR_TARGET = "${targetPlatform.config}-nm";
-
OBJCOPY_FOR_TARGET = "${targetPlatform.config}-objcopy";
-
OBJDUMP_FOR_TARGET = "${targetPlatform.config}-objdump";
-
RANLIB_FOR_TARGET = "${targetPlatform.config}-ranlib";
-
SIZE_FOR_TARGET = "${targetPlatform.config}-size";
-
STRINGS_FOR_TARGET = "${targetPlatform.config}-strings";
-
STRIP_FOR_TARGET = "${targetPlatform.config}-strip";
-
CC_FOR_TARGET = "${targetPlatform.config}-gcc";
-
CXX_FOR_TARGET = "${targetPlatform.config}-g++";
-
dontStrip = true;
buildFlags = "";
};
-
NIX_BUILD_BINTOOLS = buildPackages.stdenv.cc.bintools;
-
NIX_BUILD_CC = buildPackages.stdenv.cc;
-
-
# Needed for the cross compilation to work
-
AR = "ar";
-
LD = "ld";
# http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
-
CC = if stdenv.system == "x86_64-solaris" then "gcc -m64" else "gcc";
+
${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";
# Setting $CPATH and $LIBRARY_PATH to make sure both `gcc' and `xgcc' find the
# library headers and binaries, regarless of the language being compiled.
+4 -2
pkgs/development/compilers/gerbil/default.nix
···
{ stdenv, fetchurl, fetchgit, gambit,
coreutils, rsync, bash,
-
openssl, zlib, sqlite, libxml2, libyaml, libmysql, lmdb, leveldb }:
+
openssl, zlib, sqlite, libxml2, libyaml, mysql, lmdb, leveldb }:
# TODO: distinct packages for gerbil-release and gerbil-devel
···
buildInputs = [
gambit
coreutils rsync bash
-
openssl zlib sqlite libxml2 libyaml libmysql lmdb leveldb
+
openssl zlib sqlite libxml2 libyaml mysql.connector-c lmdb leveldb
];
+
+
NIX_CFLAGS_COMPILE = [ "-I${mysql.connector-c}/include/mysql" "-L${mysql.connector-c}/lib/mysql" ];
postPatch = ''
echo '(define (gerbil-version-string) "v${version}")' > src/gerbil/runtime/gx-version.scm
+1 -1
pkgs/development/compilers/go/setup-hook.sh
···
addToSearchPath GOPATH $1/share/go
}
-
envHooks=(${envHooks[@]} addToGoPath)
+
addEnvHooks "$targetOffset" addToGoPath
+1 -1
pkgs/development/compilers/haxe/setup-hook.sh
···
fi
}
-
envHooks+=(addHaxeLibPath)
+
addEnvHooks "$targetOffset" addHaxeLibPath
+2 -2
pkgs/development/compilers/hhvm/default.nix
···
, pcre, libevent, gd, curl, libxml2, icu, flex, bison, openssl, zlib, php
, expat, libcap, oniguruma, libdwarf, libmcrypt, tbb, gperftools, glog, libkrb5
, bzip2, openldap, readline, libelf, uwimap, binutils, cyrus_sasl, pam, libpng
-
, libxslt, freetype, gdb, git, perl, mariadb, gmp, libyaml, libedit
+
, libxslt, freetype, gdb, git, perl, mysql, gmp, libyaml, libedit
, libvpx, imagemagick, fribidi, gperf, which, ocamlPackages
}:
···
};
buildInputs =
-
[ cmake pkgconfig boost libunwind mariadb.client libmemcached pcre gdb git perl
+
[ cmake pkgconfig boost libunwind mysql.connector-c libmemcached pcre gdb git perl
libevent gd curl libxml2 icu flex bison openssl zlib php expat libcap
oniguruma libdwarf libmcrypt tbb gperftools bzip2 openldap readline
libelf uwimap binutils cyrus_sasl pam glog libpng libxslt libkrb5
-4
pkgs/development/compilers/llvm/3.7/default.nix
···
stdenv = stdenv.override (drv: {
allowedRequisites = null;
cc = self.clang;
-
# Don't include the libc++ and libc++abi from the original stdenv.
-
extraBuildInputs = stdenv.lib.optional stdenv.isDarwin darwin.CF;
});
libcxxStdenv = stdenv.override (drv: {
allowedRequisites = null;
cc = self.libcxxClang;
-
# Don't include the libc++ and libc++abi from the original stdenv.
-
extraBuildInputs = stdenv.lib.optional stdenv.isDarwin darwin.CF;
});
lldb = callPackage ./lldb.nix {};
-4
pkgs/development/compilers/llvm/3.8/default.nix
···
stdenv = stdenv.override (drv: {
allowedRequisites = null;
cc = self.clang;
-
# Don't include the libc++ and libc++abi from the original stdenv.
-
extraBuildInputs = stdenv.lib.optional stdenv.isDarwin darwin.CF;
});
libcxxStdenv = stdenv.override (drv: {
allowedRequisites = null;
cc = self.libcxxClang;
-
# Don't include the libc++ and libc++abi from the original stdenv.
-
extraBuildInputs = stdenv.lib.optional stdenv.isDarwin darwin.CF;
});
lldb = callPackage ./lldb.nix {};
-4
pkgs/development/compilers/llvm/3.9/default.nix
···
stdenv = stdenv.override (drv: {
allowedRequisites = null;
cc = self.clang;
-
# Don't include the libc++ and libc++abi from the original stdenv.
-
extraBuildInputs = stdenv.lib.optional stdenv.isDarwin darwin.CF;
});
libcxxStdenv = stdenv.override (drv: {
allowedRequisites = null;
cc = self.libcxxClang;
-
# Don't include the libc++ and libc++abi from the original stdenv.
-
extraBuildInputs = stdenv.lib.optional stdenv.isDarwin darwin.CF;
});
lldb = callPackage ./lldb.nix {};
-4
pkgs/development/compilers/llvm/4/default.nix
···
stdenv = stdenv.override (drv: {
allowedRequisites = null;
cc = self.clang;
-
# Don't include the libc++ and libc++abi from the original stdenv.
-
extraBuildInputs = stdenv.lib.optional stdenv.isDarwin darwin.CF;
});
libcxxStdenv = stdenv.override (drv: {
allowedRequisites = null;
cc = self.libcxxClang;
-
# Don't include the libc++ and libc++abi from the original stdenv.
-
extraBuildInputs = stdenv.lib.optional stdenv.isDarwin darwin.CF;
});
lld = callPackage ./lld.nix {};
+1 -1
pkgs/development/compilers/llvm/5/clang/default.nix
···
name = "clang-${version}";
unpackPhase = ''
-
unpackFile ${fetch "cfe" "0w09s8fn3lkn6i04nj0cisgp821r815fk5b5fjn97xrd371277q1"}
+
unpackFile ${fetch "cfe" "1zyh4dggxd55lnfg73c8fybnkssqcaa6bq2h4bzimnnj1jdnqpqk"}
mv cfe-${version}* clang
sourceRoot=$PWD/clang
unpackFile ${clang-tools-extra_src}
+3 -7
pkgs/development/compilers/llvm/5/default.nix
···
let
callPackage = newScope (self // { inherit stdenv cmake libxml2 python2 isl release_version version fetch; });
-
release_version = "5.0.0";
+
release_version = "5.0.1";
version = release_version; # differentiating these is important for rc's
fetch = name: sha256: fetchurl {
···
inherit sha256;
};
-
compiler-rt_src = fetch "compiler-rt" "1cy0y389zxn7mk8vffqvfirk9bbcbc8ziwc1nf1a8d118rk55bfm";
-
clang-tools-extra_src = fetch "clang-tools-extra" "1ikkv6k8cfgpjqlm24iqz52i5nyafzsc4dyikzzyb9n4b6wpil47";
+
compiler-rt_src = fetch "compiler-rt" "1nlmm0b3wpdwxkldqp1klzv3rpqf94q2a248xgqb7aapyhbi9paf";
+
clang-tools-extra_src = fetch "clang-tools-extra" "09fjii7w43kvxvsxxs6gig9vz95vnvx1779rqd36h8kksvws3bcs";
# Add man output without introducing extra dependencies.
overrideManOutput = drv:
···
stdenv = stdenv.override (drv: {
allowedRequisites = null;
cc = self.clang;
-
# Don't include the libc++ and libc++abi from the original stdenv.
-
extraBuildInputs = stdenv.lib.optional stdenv.isDarwin darwin.CF;
});
libcxxStdenv = stdenv.override (drv: {
allowedRequisites = null;
cc = self.libcxxClang;
-
# Don't include the libc++ and libc++abi from the original stdenv.
-
extraBuildInputs = stdenv.lib.optional stdenv.isDarwin darwin.CF;
});
lld = callPackage ./lld.nix {};
+1 -1
pkgs/development/compilers/llvm/5/libc++/default.nix
···
stdenv.mkDerivation rec {
name = "libc++-${version}";
-
src = fetch "libcxx" "1cf953msb0vwgjjrapw06950dnsdb2ps305czkn0vvr1k8g9irga";
+
src = fetch "libcxx" "003wwniwlikgh38cbqbcshc5gkiv3a2jkmbn6am9s46y5gfrk3zs";
postUnpack = ''
unpackFile ${libcxxabi.src}
+1 -1
pkgs/development/compilers/llvm/5/libc++abi.nix
···
stdenv.mkDerivation {
name = "libc++abi-${version}";
-
src = fetch "libcxxabi" "04c9dfmrr8diih73x0wq99dk9xb99mg0bvsnbhx5q912xg3ihs8p";
+
src = fetch "libcxxabi" "0m78yr4arlz2b9m96xcygk15m2pbz8i10snk78i3q7pjnwn1a9as";
nativeBuildInputs = [ cmake ];
buildInputs = stdenv.lib.optional (!stdenv.isDarwin && !stdenv.isFreeBSD) libunwind;
+1 -1
pkgs/development/compilers/llvm/5/lld.nix
···
stdenv.mkDerivation {
name = "lld-${version}";
-
src = fetch "lld" "15rqsmfw0jlsri7hszbs8l0j7v1030cy9xvvdb245397llh7k6ir";
+
src = fetch "lld" "15fq2zvkliyiw5qi7ig2r8bshgbz4kzvs5in16mhfkw20l06rcym";
nativeBuildInputs = [ cmake ];
buildInputs = [ llvm ];
+1 -1
pkgs/development/compilers/llvm/5/lldb.nix
···
stdenv.mkDerivation {
name = "lldb-${version}";
-
src = fetch "lldb" "0zcbav39srf6awv9znvzr7nqdrj704i8da3wdgc8362y20rcm860";
+
src = fetch "lldb" "0sipv8k37ai44m7jcf6wsbm2q41dgk3sk9m3i6823jkmg7kckhdp";
postPatch = ''
# Fix up various paths that assume llvm and clang are installed in the same place
+1 -1
pkgs/development/compilers/llvm/5/llvm.nix
···
}:
let
-
src = fetch "llvm" "1nin64vz21hyng6jr19knxipvggaqlkl2l9jpd5czbc4c2pcnpg3";
+
src = fetch "llvm" "1c07i0b61j69m578lgjkyayg419sh7sn40xb3j112nr2q2gli9sz";
# Used when creating a version-suffixed symlink of libLLVM.dylib
shortVersion = with stdenv.lib;
+1 -1
pkgs/development/compilers/llvm/5/openmp.nix
···
stdenv.mkDerivation {
name = "openmp-${version}";
-
src = fetch "openmp" "1igplg89bl6k6r9q88hnpcznq3g9lb79w7bix025lwp00ldhivy0";
+
src = fetch "openmp" "0lr6r87xzg87w1q9rrh04nqpyr8c929dh4qy3csjiy7rsb6kbdmd";
nativeBuildInputs = [ cmake perl ];
buildInputs = [ llvm ];
+2 -2
pkgs/development/compilers/neko/default.nix
···
{ stdenv, fetchurl, boehmgc, zlib, sqlite, pcre, cmake, pkgconfig
-
, git, apacheHttpd, apr, aprutil, mariadb, mbedtls, openssl, pkgs, gtk2, libpthreadstubs
+
, git, apacheHttpd, apr, aprutil, mysql, mbedtls, openssl, pkgs, gtk2, libpthreadstubs
}:
stdenv.mkDerivation rec {
···
nativeBuildInputs = [ cmake pkgconfig git ];
buildInputs =
[ boehmgc zlib sqlite pcre apacheHttpd apr aprutil
-
mariadb.client mbedtls openssl libpthreadstubs ]
+
mysql.connector-c mbedtls openssl libpthreadstubs ]
++ stdenv.lib.optional stdenv.isLinux gtk2
++ stdenv.lib.optionals stdenv.isDarwin [ pkgs.darwin.apple_sdk.frameworks.Security
pkgs.darwin.apple_sdk.frameworks.Carbon];
+1 -1
pkgs/development/compilers/sbcl/default.nix
···
# Specifying $SBCL_HOME is only truly needed with `purgeNixReferences = true`.
setupHook = writeText "setupHook.sh" ''
-
envHooks+=(_setSbclHome)
+
addEnvHooks "$targetOffset" _setSbclHome
_setSbclHome() {
export SBCL_HOME='@out@/lib/sbcl/'
}
+3 -3
pkgs/development/compilers/urweb/default.nix
···
sha256 = "17qh9mcmlhbv6r52yij8l9ik7j7x6x7c09lf6pznnbdh4sf8p5wb";
};
-
buildInputs = [ openssl mlton mysql.client postgresql sqlite ];
+
buildInputs = [ openssl mlton mysql.connector-c postgresql sqlite ];
prePatch = ''
sed -e 's@/usr/bin/file@${file}/bin/file@g' -i configure
···
preConfigure = ''
export PGHEADER="${postgresql}/include/libpq-fe.h";
-
export MSHEADER="${lib.getDev mysql.client}/include/mysql/mysql.h";
+
export MSHEADER="${mysql.connector-c}/include/mysql/mysql.h";
export SQHEADER="${sqlite.dev}/include/sqlite3.h";
export CC="${gcc}/bin/gcc";
export CCARGS="-I$out/include \
-L${openssl.out}/lib \
-
-L${lib.getLib mysql.client}/lib \
+
-L${mysql.connector-c}/lib \
-L${postgresql.lib}/lib \
-L${sqlite.out}/lib";
'';
+18 -6
pkgs/development/compilers/vala/default.nix
···
in rec {
+
vala_0_23 = generic {
+
major = "0.23";
+
minor = "3";
+
sha256 = "101xjbc818g4849n9a80c2aai13zakj7mpnd7470xnkvz5jwqq96";
+
};
+
vala_0_26 = generic {
major = "0.26";
minor = "2";
···
vala_0_28 = generic {
major = "0.28";
-
minor = "0";
-
sha256 = "0zwpzhkhfk3piya14m7p2hl2vaabahprphppfm46ci91z39kp7hd";
+
minor = "1";
+
sha256 = "0isg327w6rfqqdjja6a8pc3xcdkj7pqrkdhw48bsyxab2fkaw3hw";
};
vala_0_32 = generic {
···
vala_0_34 = generic {
major = "0.34";
-
minor = "1";
-
sha256 = "16cjybjw100qps6jg0jdyjh8hndz8a876zmxpybnf30a8vygrk7m";
+
minor = "13";
+
sha256 = "0ahbnhgwhhjkndmbr1d039ws0g2bb324c60fk6wgx7py5wvmgcd2";
+
};
+
+
vala_0_36 = generic {
+
major = "0.36";
+
minor = "8";
+
sha256 = "1nz5a8kcb22ss9idb7k1higwpvghd617xwf40fi0a9ggws614lfz";
};
vala_0_38 = generic {
major = "0.38";
-
minor = "1";
-
sha256 = "112hl3lkcyakrk8c3qgw12gzn3nxjkvx7bn0jhl5f2m57d7k8d8h";
+
minor = "4";
+
sha256 = "1sg5gaq3jhgr9vzh2ypiw475167k150wmyglymr7wwqppmikmcrc";
extraNativeBuildInputs = [ autoconf ] ++ stdenv.lib.optionals stdenv.isDarwin [ libtool expat ];
extraBuildInputs = [ graphviz ];
};
+1 -1
pkgs/development/haskell-modules/configuration-common.nix
···
# Use the default version of mysql to build this package (which is actually mariadb).
# test phase requires networking
-
mysql = dontCheck (super.mysql.override { mysql = pkgs.mysql.lib; });
+
mysql = dontCheck (super.mysql.override { mysql = pkgs.mysql.connector-c; });
# check requires mysql server
mysql-simple = dontCheck super.mysql-simple;
+1 -1
pkgs/development/haskell-modules/configuration-nix.nix
···
# Use the default version of mysql to build this package (which is actually mariadb).
# test phase requires networking
-
mysql = dontCheck (super.mysql.override { mysql = pkgs.mysql.lib; });
+
mysql = dontCheck (super.mysql.override { mysql = pkgs.mysql.connector-c; });
# CUDA needs help finding the SDK headers and libraries.
cuda = overrideCabal super.cuda (drv: {
+2 -2
pkgs/development/haskell-modules/generic-builder.nix
···
setupCompileFlags="${concatStringsSep " " setupCompileFlags}"
configureFlags="${concatStringsSep " " defaultConfigureFlags} $configureFlags"
-
# nativePkgs defined in stdenv/setup.hs
-
for p in "''${nativePkgs[@]}"; do
+
# host.*Pkgs defined in stdenv/setup.hs
+
for p in "''${pkgsHostHost[@]}" "''${pkgsHostTarget[@]}"; do
if [ -d "$p/lib/${ghc.name}/package.conf.d" ]; then
cp -f "$p/lib/${ghc.name}/package.conf.d/"*.conf $packageConfDir/
continue
+2 -1
pkgs/development/idris-modules/build-idris-package.nix
···
fi
}
-
envHooks+=(addIdrisLibs)
+
# All run-time deps
+
addEnvHooks 0 addIdrisLibs
'';
buildPhase = ''
+1 -1
pkgs/development/idris-modules/with-packages.nix
···
fi
}
-
envHooks+=(installIdrisLib)
+
envHostTargetHooks+=(installIdrisLib)
'';
unpackPhase = ''
+1 -1
pkgs/development/interpreters/elixir/setup-hook.sh
···
addToSearchPath ERL_LIBS $1/lib/elixir/lib
}
-
envHooks+=(addErlLibPath)
+
addEnvHooks "$hostOffset" addErlLibPath
+1 -1
pkgs/development/interpreters/erlang/setup-hook.sh
···
addToSearchPath ERL_LIBS $1/lib/erlang/lib
}
-
envHooks+=(addErlangLibPath)
+
addEnvHooks "$hostOffset" addErlangLibPath
+1 -1
pkgs/development/interpreters/guile/setup-hook-2.0.sh
···
fi
}
-
envHooks+=(addGuileLibPath)
+
addEnvHooks "$hostOffset" addGuileLibPath
+1 -1
pkgs/development/interpreters/guile/setup-hook-2.2.sh
···
fi
}
-
envHooks+=(addGuileLibPath)
+
addEnvHooks "$hostOffset" addGuileLibPath
+1 -1
pkgs/development/interpreters/guile/setup-hook.sh
···
fi
}
-
envHooks+=(addGuileLibPath)
+
addEnvHooks "$hostOffset" addGuileLibPath
+1 -1
pkgs/development/interpreters/jruby/default.nix
···
addToSearchPath GEM_PATH \$1/${passthru.gemPath}
}
-
envHooks+=(addGemPath)
+
addEnvHooks "$hostOffset" addGemPath
EOF
'';
+1 -1
pkgs/development/interpreters/perl/setup-hook.sh
···
addToSearchPath PERL5LIB $1/lib/perl5/site_perl
}
-
envHooks+=(addPerlLibPath)
+
addEnvHooks "$hostOffset" addPerlLibPath
+3 -4
pkgs/development/interpreters/php/default.nix
···
{ version, sha256 }:
let php7 = lib.versionAtLeast version "7.0";
-
mysqlHeaders = mysql.lib.dev or mysql;
mysqlndSupport = config.php.mysqlnd or false;
-
mysqlBuildInputs = lib.optional (!mysqlndSupport) mysqlHeaders;
+
mysqlBuildInputs = lib.optional (!mysqlndSupport) mysql.connector-c;
in composableDerivation.composableDerivation {} (fixed: {
···
};
mysqli = {
-
configureFlags = ["--with-mysqli=${if mysqlndSupport then "mysqlnd" else "${mysqlHeaders}/bin/mysql_config"}"];
+
configureFlags = ["--with-mysqli=${if mysqlndSupport then "mysqlnd" else "${mysql.connector-c}/bin/mysql_config"}"];
buildInputs = mysqlBuildInputs;
};
···
};
pdo_mysql = {
-
configureFlags = ["--with-pdo-mysql=${if mysqlndSupport then "mysqlnd" else mysqlHeaders}"];
+
configureFlags = ["--with-pdo-mysql=${if mysqlndSupport then "mysqlnd" else mysql.connector-c}"];
buildInputs = mysqlBuildInputs;
};
+11 -6
pkgs/development/interpreters/python/mk-python-derivation.nix
···
{ name ? "${attrs.pname}-${attrs.version}"
-
# Dependencies for building the package
+
# Build-time dependencies for the package
+
, nativeBuildInputs ? []
+
+
# Run-time dependencies for the package
, buildInputs ? []
# Dependencies needed for running the checkPhase.
···
name = namePrefix + name;
-
buildInputs = ([ wrapPython (ensureNewerSourcesHook { year = "1980"; }) ]
-
++ (lib.optional (lib.hasSuffix "zip" attrs.src.name or "") unzip)
+
nativeBuildInputs = [ (ensureNewerSourcesHook { year = "1980"; }) ]
+
++ nativeBuildInputs;
+
+
buildInputs = [ wrapPython ]
+
++ lib.optional (lib.hasSuffix "zip" (attrs.src.name or "")) unzip
++ lib.optionals doCheck checkInputs
-
++ lib.optional catchConflicts setuptools # If we nog longer propagate setuptools
+
++ lib.optional catchConflicts setuptools # If we no longer propagate setuptools
++ buildInputs
-
++ pythonPath
-
);
+
++ pythonPath;
# Propagate python and setuptools. We should stop propagating setuptools.
propagatedBuildInputs = propagatedBuildInputs ++ [ python setuptools ];
+4 -1
pkgs/development/interpreters/python/setup-hook.sh
···
echo $result
}
-
envHooks+=(addPythonPath)
+
addEnvHooks "$hostOffset" addPythonPath
# Determinism: The interpreter is patched to write null timestamps when compiling python files.
# This way python doesn't try to update them when we freeze timestamps in nix store.
export DETERMINISTIC_BUILD=1;
# Determinism: We fix the hashes of str, bytes and datetime objects.
export PYTHONHASHSEED=0;
+
# Determinism. Whenever Python is included, it should not check user site-packages.
+
# This option is only relevant when the sandbox is disabled.
+
export PYTHONNOUSERSITE=1;
+1 -1
pkgs/development/interpreters/ruby/default.nix
···
addToSearchPath GEM_PATH \$1/${passthru.gemPath}
}
-
envHooks+=(addGemPath)
+
addEnvHooks "$hostOffset" addGemPath
EOF
'' + opString useRailsExpress ''
rbConfig=$(find $out/lib/ruby -name rbconfig.rb)
+1 -5
pkgs/development/libraries/SDL/setup-hook.sh
···
fi
}
-
if test -n "$crossConfig"; then
-
crossEnvHooks+=(addSDLPath)
-
else
-
envHooks+=(addSDLPath)
-
fi
+
addEnvHooks "$hostOffset" addSDLPath
+1 -5
pkgs/development/libraries/SDL2/setup-hook.sh
···
fi
}
-
if test -n "$crossConfig"; then
-
crossEnvHooks+=(addSDL2Path)
-
else
-
envHooks+=(addSDL2Path)
-
fi
+
addEnvHooks "$hostOffset" addSDL2Path
+1 -3
pkgs/development/libraries/atk/default.nix
···
buildInputs = libintlOrEmpty;
-
nativeBuildInputs = [ pkgconfig perl ];
+
nativeBuildInputs = [ pkgconfig perl gobjectIntrospection ];
propagatedBuildInputs = [
# Required by atk.pc
glib
-
# TODO: Why propagate?
-
gobjectIntrospection
];
doCheck = true;
+29 -29
pkgs/development/libraries/boost/1.59.nix
···
sha256 = "1jj1aai5rdmd72g90a3pd8sw9vi32zad46xv5av8fhnr48ir6ykj";
};
-
patches = if stdenv.isCygwin then [
-
./cygwin-fedora-boost-1.50.0-fix-non-utf8-files.patch
-
./cygwin-fedora-boost-1.50.0-pool.patch
-
./cygwin-fedora-boost-1.57.0-mpl-print.patch
-
./cygwin-fedora-boost-1.57.0-spirit-unused_typedef.patch
-
./cygwin-fedora-boost-1.54.0-locale-unused_typedef.patch
-
./cygwin-fedora-boost-1.54.0-python-unused_typedef.patch
-
./cygwin-fedora-boost-1.57.0-pool-test_linking.patch
-
./cygwin-fedora-boost-1.54.0-pool-max_chunks_shadow.patch
-
./cygwin-fedora-boost-1.57.0-signals2-weak_ptr.patch
-
./cygwin-fedora-boost-1.57.0-uuid-comparison.patch
-
./cygwin-fedora-boost-1.57.0-move-is_class.patch
-
./cygwin-1.40.0-cstdint-cygwin.patch
-
./cygwin-1.57.0-asio-cygwin.patch
-
./cygwin-1.55.0-asio-MSG_EOR.patch
-
./cygwin-1.57.0-config-cygwin.patch
-
./cygwin-1.57.0-context-cygwin.patch
-
./cygwin-1.57.0-filesystem-cygwin.patch
-
./cygwin-1.55.0-interlocked-cygwin.patch
-
./cygwin-1.40.0-iostreams-cygwin.patch
-
./cygwin-1.57.0-locale-cygwin.patch
-
./cygwin-1.57.0-log-cygwin.patch
-
./cygwin-1.40.0-python-cygwin.patch
-
./cygwin-1.40.0-regex-cygwin.patch
-
./cygwin-1.57.0-smart_ptr-cygwin.patch
-
./cygwin-1.57.0-system-cygwin.patch
-
./cygwin-1.45.0-jam-cygwin.patch
-
./cygwin-1.50.0-jam-pep3149.patch
-
] else null;
+
patches = stdenv.lib.optionals stdenv.isCygwin [
+
./cygwin-fedora-boost-1.50.0-fix-non-utf8-files.patch
+
./cygwin-fedora-boost-1.50.0-pool.patch
+
./cygwin-fedora-boost-1.57.0-mpl-print.patch
+
./cygwin-fedora-boost-1.57.0-spirit-unused_typedef.patch
+
./cygwin-fedora-boost-1.54.0-locale-unused_typedef.patch
+
./cygwin-fedora-boost-1.54.0-python-unused_typedef.patch
+
./cygwin-fedora-boost-1.57.0-pool-test_linking.patch
+
./cygwin-fedora-boost-1.54.0-pool-max_chunks_shadow.patch
+
./cygwin-fedora-boost-1.57.0-signals2-weak_ptr.patch
+
./cygwin-fedora-boost-1.57.0-uuid-comparison.patch
+
./cygwin-fedora-boost-1.57.0-move-is_class.patch
+
./cygwin-1.40.0-cstdint-cygwin.patch
+
./cygwin-1.57.0-asio-cygwin.patch
+
./cygwin-1.55.0-asio-MSG_EOR.patch
+
./cygwin-1.57.0-config-cygwin.patch
+
./cygwin-1.57.0-context-cygwin.patch
+
./cygwin-1.57.0-filesystem-cygwin.patch
+
./cygwin-1.55.0-interlocked-cygwin.patch
+
./cygwin-1.40.0-iostreams-cygwin.patch
+
./cygwin-1.57.0-locale-cygwin.patch
+
./cygwin-1.57.0-log-cygwin.patch
+
./cygwin-1.40.0-python-cygwin.patch
+
./cygwin-1.40.0-regex-cygwin.patch
+
./cygwin-1.57.0-smart_ptr-cygwin.patch
+
./cygwin-1.57.0-system-cygwin.patch
+
./cygwin-1.45.0-jam-cygwin.patch
+
./cygwin-1.50.0-jam-pep3149.patch
+
];
})
+1 -1
pkgs/development/libraries/boost/1.65.nix
···
sha256 = "9807a5d16566c57fd74fb522764e0b134a8bbe6b6e8967b83afefd30dcd3be81";
};
-
enableNumpy = true;
+
enableNumpy = args.enableNumpy or true;
})
+14
pkgs/development/libraries/boost/1.66.nix
···
+
{ stdenv, callPackage, fetchurl, ... } @ args:
+
+
callPackage ./generic.nix (args // rec {
+
version = "1.66_0";
+
+
src = fetchurl {
+
url = "mirror://sourceforge/boost/boost_1_66_0.tar.bz2";
+
# SHA256 from http://www.boost.org/users/history/version_1_66_0.html
+
sha256 = "5721818253e6a0989583192f96782c4a98eb6204965316df9f5ad75819225ca9";
+
};
+
+
enableNumpy = args.enableNumpy or true;
+
+
})
+54 -96
pkgs/development/libraries/boost/generic.nix
···
{ stdenv, fetchurl, icu, expat, zlib, bzip2, python, fixDarwinDylibNames, libiconv
-
, buildPlatform, hostPlatform
-
, toolset ? if stdenv.cc.isClang then "clang" else null
+
, which
+
, buildPackages, buildPlatform, hostPlatform
+
, toolset ? /**/ if stdenv.cc.isClang then "clang"
+
else if stdenv.cc.isGNU && hostPlatform != buildPlatform then "gcc-cross"
+
else null
, enableRelease ? true
, enableDebug ? false
, enableSingleThreaded ? false
, enableMultiThreaded ? true
, enableShared ? !(hostPlatform.libc == "msvcrt") # problems for now
, enableStatic ? !enableShared
-
, enablePIC ? false
-
, enableExceptions ? false
, enablePython ? hostPlatform == buildPlatform
, enableNumpy ? false
, taggedLayout ? ((enableRelease && enableDebug) || (enableSingleThreaded && enableMultiThreaded) || (enableShared && enableStatic))
-
, patches ? null
+
, patches ? []
, mpi ? null
# Attributes inherit from specific versions
···
}:
# We must build at least one type of libraries
-
assert !enableShared -> enableStatic;
+
assert enableShared || enableStatic;
+
# Python isn't supported when cross-compiling
assert enablePython -> hostPlatform == buildPlatform;
assert enableNumpy -> enablePython;
···
# To avoid library name collisions
layout = if taggedLayout then "tagged" else "system";
-
cflags = if enablePIC && enableExceptions then
-
"cflags=\"-fPIC -fexceptions\" cxxflags=-fPIC linkflags=-fPIC"
-
else if enablePIC then
-
"cflags=-fPIC cxxflags=-fPIC linkflags=-fPIC"
-
else if enableExceptions then
-
"cflags=-fexceptions"
-
else
-
"";
-
-
withToolset = stdenv.lib.optionalString (toolset != null) "--with-toolset=${toolset}";
-
-
genericB2Flags = [
+
b2Args = concatStringsSep " " ([
"--includedir=$dev/include"
"--libdir=$out/lib"
"-j$NIX_BUILD_CORES"
"--layout=${layout}"
"variant=${variant}"
"threading=${threading}"
-
] ++ optional (link != "static") "runtime-link=${runtime-link}" ++ [
+
"runtime-link=${runtime-link}"
"link=${link}"
-
"${cflags}"
-
] ++ optional (variant == "release") "debug-symbols=off"
-
++ optional (!enablePython) "--without-python";
-
-
nativeB2Flags = [
"-sEXPAT_INCLUDE=${expat.dev}/include"
"-sEXPAT_LIBPATH=${expat.out}/lib"
-
] ++ optional (toolset != null) "toolset=${toolset}"
-
++ optional (mpi != null) "--user-config=user-config.jam";
-
nativeB2Args = concatStringsSep " " (genericB2Flags ++ nativeB2Flags);
-
-
crossB2Flags = [
-
"-sEXPAT_INCLUDE=${expat.crossDrv}/include"
-
"-sEXPAT_LIBPATH=${expat.crossDrv}/lib"
-
"--user-config=user-config.jam"
-
"toolset=gcc-cross"
-
] ++ optionals (hostPlatform.libc == "msvcrt") [
+
] ++ optional (variant == "release") "debug-symbols=off"
+
++ optional (toolset != null) "toolset=${toolset}"
+
++ optional (mpi != null || hostPlatform != buildPlatform) "--user-config=user-config.jam"
+
++ optionals (hostPlatform.libc == "msvcrt") [
"target-os=windows"
"threadapi=win32"
"binary-format=pe"
"address-model=${toString hostPlatform.parsed.cpu.bits}"
"architecture=x86"
-
];
-
crossB2Args = concatStringsSep " " (genericB2Flags ++ crossB2Flags);
-
-
builder = b2Args: ''
-
./b2 ${b2Args}
-
'';
-
-
installer = b2Args: ''
-
# boostbook is needed by some applications
-
mkdir -p $dev/share/boostbook
-
cp -a tools/boostbook/{xsl,dtd} $dev/share/boostbook/
-
-
# Let boost install everything else
-
./b2 ${b2Args} install
-
'';
-
-
commonConfigureFlags = [
-
"--includedir=$(dev)/include"
-
"--libdir=$(out)/lib"
-
];
-
-
fixup = ''
-
# Make boost header paths relative so that they are not runtime dependencies
-
(
-
cd "$dev"
-
find include \( -name '*.hpp' -or -name '*.h' -or -name '*.ipp' \) \
-
-exec sed '1i#line 1 "{}"' -i '{}' \;
-
)
-
'' + optionalString (hostPlatform.libc == "msvcrt") ''
-
${stdenv.cc.targetPrefix}ranlib "$out/lib/"*.a
-
'';
+
]);
in
stdenv.mkDerivation {
name = "boost-${version}";
-
inherit src patches version;
+
inherit src;
+
+
patchFlags = optionalString (hostPlatform.libc == "msvcrt") "-p0";
+
patches = patches ++ optional (hostPlatform.libc == "msvcrt") (fetchurl {
+
url = "https://svn.boost.org/trac/boost/raw-attachment/tickaet/7262/"
+
+ "boost-mingw.patch";
+
sha256 = "0s32kwll66k50w6r5np1y5g907b7lcpsjhfgr7rsw7q5syhzddyj";
+
});
meta = {
homepage = http://boost.org/;
···
--replace '@rpath/$(<[1]:D=)' "$out/lib/\$(<[1]:D=)";
fi;
'' + optionalString (mpi != null) ''
-
cat << EOF > user-config.jam
+
cat << EOF >> user-config.jam
using mpi : ${mpi}/bin/mpiCC ;
EOF
+
'' + optionalString (hostPlatform != buildPlatform) ''
+
cat << EOF >> user-config.jam
+
using gcc : cross : ${stdenv.cc.targetPrefix}c++ ;
+
EOF
'';
NIX_CFLAGS_LINK = stdenv.lib.optionalString stdenv.isDarwin
···
enableParallelBuilding = true;
+
nativeBuildInputs = [ which buildPackages.stdenv.cc ];
buildInputs = [ expat zlib bzip2 libiconv ]
++ optional (hostPlatform == buildPlatform) icu
++ optional stdenv.isDarwin fixDarwinDylibNames
···
++ optional enableNumpy python.pkgs.numpy;
configureScript = "./bootstrap.sh";
-
configureFlags = commonConfigureFlags
-
++ [ "--with-python=${python.interpreter}" ]
-
++ optional (hostPlatform == buildPlatform) "--with-icu=${icu.dev}"
-
++ optional (toolset != null) "--with-toolset=${toolset}";
+
configurePlatforms = [];
+
configureFlags = [
+
"--includedir=$(dev)/include"
+
"--libdir=$(out)/lib"
+
(if enablePython then "--with-python=${python.interpreter}" else "--without-python")
+
(if hostPlatform == buildPlatform then "--with-icu=${icu.dev}" else "--without-icu")
+
] ++ optional (toolset != null) "--with-toolset=${toolset}";
+
+
buildPhase = ''
+
./b2 ${b2Args}
+
'';
-
buildPhase = builder nativeB2Args;
+
installPhase = ''
+
# boostbook is needed by some applications
+
mkdir -p $dev/share/boostbook
+
cp -a tools/boostbook/{xsl,dtd} $dev/share/boostbook/
-
installPhase = installer nativeB2Args;
+
# Let boost install everything else
+
./b2 ${b2Args} install
+
'';
-
postFixup = fixup;
+
postFixup = ''
+
# Make boost header paths relative so that they are not runtime dependencies
+
find "$dev/include" \( -name '*.hpp' -or -name '*.h' -or -name '*.ipp' \) \
+
-exec sed '1i#line 1 "{}"' -i '{}' \;
+
'' + optionalString (hostPlatform.libc == "msvcrt") ''
+
$RANLIB "$out/lib/"*.a
+
'';
outputs = [ "out" "dev" ];
setOutputFlags = false;
-
-
crossAttrs = rec {
-
# We want to substitute the contents of configureFlags, removing thus the
-
# usual --build and --host added on cross building.
-
preConfigure = ''
-
export configureFlags="--without-icu ${concatStringsSep " " commonConfigureFlags}"
-
cat << EOF > user-config.jam
-
using gcc : cross : $crossConfig-g++ ;
-
EOF
-
'';
-
buildPhase = builder crossB2Args;
-
installPhase = installer crossB2Args;
-
postFixup = fixup;
-
} // optionalAttrs (hostPlatform.libc == "msvcrt") {
-
patches = fetchurl {
-
url = "https://svn.boost.org/trac/boost/raw-attachment/ticket/7262/"
-
+ "boost-mingw.patch";
-
sha256 = "0s32kwll66k50w6r5np1y5g907b7lcpsjhfgr7rsw7q5syhzddyj";
-
};
-
-
patchFlags = "-p0";
-
};
}
+3 -3
pkgs/development/libraries/cppdb/default.nix
···
-
{ stdenv, fetchurl, cmake, sqlite, libmysql, postgresql, unixODBC }:
+
{ stdenv, fetchurl, cmake, sqlite, mysql, postgresql, unixODBC }:
stdenv.mkDerivation rec {
name = "cppdb";
···
enableParallelBuilding = true;
-
buildInputs = [ cmake sqlite libmysql postgresql unixODBC ];
+
buildInputs = [ cmake sqlite mysql.connector-c postgresql unixODBC ];
cmakeFlags = [ "--no-warn-unused-cli" ];
+
NIX_CFLAGS_COMPILE = [ "-I${mysql.connector-c}/include/mysql" "-L${mysql.connector-c}/lib/mysql" ];
meta = with stdenv.lib; {
homepage = http://cppcms.com/sql/cppdb/;
···
maintainers = [ maintainers.juliendehos ];
};
}
-
+1 -1
pkgs/development/libraries/gdal/default.nix
···
"--with-poppler=${poppler.dev}" # optional
"--with-libz=${zlib.dev}" # optional
"--with-pg=${postgresql}/bin/pg_config"
-
"--with-mysql=${mysql.lib.dev}/bin/mysql_config"
+
"--with-mysql=${mysql.connector-c or mysql}/bin/mysql_config"
"--with-geotiff=${libgeotiff}"
"--with-sqlite3=${sqlite.dev}"
"--with-spatialite=${libspatialite}"
+2 -2
pkgs/development/libraries/gdal/gdal-1_11.nix
···
{ stdenv, fetchurl, unzip, libjpeg, libtiff, zlib
-
, postgresql, mysql, libgeotiff, python, pythonPackages, proj, geos, openssl
+
, postgresql, mysql57, libgeotiff, python, pythonPackages, proj, geos, openssl
, libpng }:
stdenv.mkDerivation rec {
···
"--with-libz=${zlib.dev}" # optional
"--with-pg=${postgresql}/bin/pg_config"
-
"--with-mysql=${mysql.lib.dev}/bin/mysql_config"
+
"--with-mysql=${mysql57.connector-c}/bin/mysql_config"
"--with-geotiff=${libgeotiff}"
"--with-python" # optional
"--with-static-proj4=${proj}" # optional
+1 -1
pkgs/development/libraries/gdk-pixbuf/setup-hook.sh
···
}
-
envHooks+=(findGdkPixbufLoaders)
+
addEnvHooks "$hostOffset" findGdkPixbufLoaders
+1 -1
pkgs/development/libraries/glib/setup-hook.sh
···
addToSearchPath GSETTINGS_SCHEMAS_PATH "$1/share/gsettings-schemas/"*
fi
}
-
envHooks+=(make_glib_find_gsettings_schemas)
+
addEnvHooks "$hostOffset" make_glib_find_gsettings_schemas
# Install gschemas, if any, in a package-specific directory
glibPreInstallPhase() {
pkgs/development/libraries/glibc/2.26-75to115.diff.gz

This is a binary file and will not be displayed.

+39
pkgs/development/libraries/glibc/allow-kernel-2.6.32.patch
···
+
diff --git a/sysdeps/unix/sysv/linux/configure b/sysdeps/unix/sysv/linux/configure
+
index cace758c01..38fe7fe0b0 100644
+
--- a/sysdeps/unix/sysv/linux/configure
+
+++ b/sysdeps/unix/sysv/linux/configure
+
@@ -69,7 +69,7 @@ fi
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel header at least $minimum_kernel" >&5
+
$as_echo_n "checking for kernel header at least $minimum_kernel... " >&6; }
+
decnum=`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/(\1 * 65536 + \2 * 256 + \3)/'`;
+
-abinum=`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1,\2,\3/'`;
+
+abinum=`echo "2.6.32.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1,\2,\3/'`;
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+
/* end confdefs.h. */
+
#include <linux/version.h>
+
diff --git a/sysdeps/unix/sysv/linux/configure.ac b/sysdeps/unix/sysv/linux/configure.ac
+
index 13abda0a51..6abc12eaed 100644
+
--- a/sysdeps/unix/sysv/linux/configure.ac
+
+++ b/sysdeps/unix/sysv/linux/configure.ac
+
@@ -50,7 +50,7 @@ fi
+
AC_MSG_CHECKING(for kernel header at least $minimum_kernel)
+
changequote(,)dnl
+
decnum=`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/(\1 * 65536 + \2 * 256 + \3)/'`;
+
-abinum=`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1,\2,\3/'`;
+
+abinum=`echo "2.6.32.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1,\2,\3/'`;
+
changequote([,])dnl
+
AC_TRY_COMPILE([#include <linux/version.h>
+
#if LINUX_VERSION_CODE < $decnum
+
diff --git a/sysdeps/unix/sysv/linux/dl-osinfo.h b/sysdeps/unix/sysv/linux/dl-osinfo.h
+
index 823cd8224d..482caaeeec 100644
+
--- a/sysdeps/unix/sysv/linux/dl-osinfo.h
+
+++ b/sysdeps/unix/sysv/linux/dl-osinfo.h
+
@@ -39,7 +39,7 @@
+
GLRO(dl_osversion) = version; \
+
\
+
/* Now we can test with the required version. */ \
+
- if (__LINUX_KERNEL_VERSION > 0 && version < __LINUX_KERNEL_VERSION) \
+
+ if (__LINUX_KERNEL_VERSION > 0 && version < __LINUX_KERNEL_VERSION && version != 0x020620) \
+
/* Not sufficent. */ \
+
FATAL ("FATAL: kernel too old\n"); \
+
} \
+22 -2
pkgs/development/libraries/glibc/common.nix
···
let
version = "2.26";
-
patchSuffix = "-75";
+
patchSuffix = "-115";
sha256 = "1ggnj1hzjym7sn93rbwydcqd562q73lsb7g7kd199g6j9j9hlkp5";
cross = if buildPlatform != hostPlatform then hostPlatform else null;
in
···
$ git show --reverse glibc-2.25..release/2.25/master | gzip -n -9 --rsyncable - > 2.25-49.patch.gz
*/
./2.26-75.patch.gz
+
./2.26-75to115.diff.gz
/* Have rpcgen(1) look for cpp(1) in $PATH. */
./rpcgen-path.patch
···
"/bin:/usr/bin", which is inappropriate on NixOS machines. This
patch extends the search path by "/run/current-system/sw/bin". */
./fix_path_attribute_in_getconf.patch
+
+
/* Allow running with RHEL 6 -like kernels. The patch adds an exception
+
for glibc to accept 2.6.32 and to tag the ELFs as 2.6.32-compatible
+
(otherwise the loader would refuse libc).
+
Note that glibc will fully work only on their heavily patched kernels
+
and we lose early mismatch detection on 2.6.32.
+
+
On major glibc updates we should check that the patched kernel supports
+
all the required features. ATM it's verified up to glibc-2.26-115.
+
# HOWTO: check glibc sources for changes in kernel requirements
+
git log -p glibc-2.25.. sysdeps/unix/sysv/linux/x86_64/kernel-features.h sysdeps/unix/sysv/linux/kernel-features.h
+
# get kernel sources (update the URL)
+
mkdir tmp && cd tmp
+
curl http://vault.centos.org/6.9/os/Source/SPackages/kernel-2.6.32-696.el6.src.rpm | rpm2cpio - | cpio -idmv
+
tar xf linux-*.bz2
+
# check syscall presence, for example
+
less linux-*?/arch/x86/kernel/syscall_table_32.S
+
*/
+
./allow-kernel-2.6.32.patch
]
++ lib.optional stdenv.isx86_64 ./fix-x64-abi.patch;
···
outputs = [ "out" "bin" "dev" "static" ];
-
nativeBuildInputs = lib.optional (cross != null) buildPackages.stdenv.cc;
+
depsBuildBuild = [ buildPackages.stdenv.cc ];
buildInputs = lib.optionals withGd [ gd libpng ];
# Needed to install share/zoneinfo/zone.tab. Set to impure /bin/sh to
+2 -2
pkgs/development/libraries/gmp/6.x.nix
···
outputs = [ "out" "dev" "info" ];
passthru.static = self.out;
-
nativeBuildInputs = [ m4 ]
-
++ stdenv.lib.optional (buildPlatform != hostPlatform) buildPackages.stdenv.cc;
+
depsBuildBuild = [ buildPackages.stdenv.cc ];
+
nativeBuildInputs = [ m4 ];
configureFlags =
# Build a "fat binary", with routines for several sub-architectures
+9 -3
pkgs/development/libraries/gobject-introspection/setup-hook.sh
···
make_gobject_introspection_find_gir_files() {
-
# required for .typelib files, eg mypaint git version
if [ -d "$1/lib/girepository-1.0" ]; then
addToSearchPath GI_TYPELIB_PATH $1/lib/girepository-1.0
···
fi
}
-
envHooks+=(make_gobject_introspection_find_gir_files)
+
addEnvHooks "$hostOffset" make_gobject_introspection_find_gir_files
+
+
giDiscoverSelf() {
+
if [ -d "$prefix/lib/girepository-1.0" ]; then
+
addToSearchPath GI_TYPELIB_PATH $prefix/lib/girepository-1.0
+
fi
+
}
+
+
preFixupHooks+=(giDiscoverSelf)
_multioutMoveGlibGir() {
moveToOutput share/gir-1.0 "${!outputDev}"
}
preFixupHooks+=(_multioutMoveGlibGir)
-
+1 -5
pkgs/development/libraries/grantlee/5/setup-hook.sh
···
propagatedUserEnvPkgs+=" $1"
fi
}
-
if [ "$crossEnv" ]; then
-
crossEnvHooks+=(_grantleeEnvHook)
-
else
-
envHooks+=(_grantleeEnvHook)
-
fi
+
addEnvHooks "$hostOffset" _grantleeEnvHook
+1 -1
pkgs/development/libraries/gstreamer/core/setup-hook.sh
···
fi
}
-
envHooks+=(addGstreamer1LibPath)
+
addEnvHooks "$hostOffset" addGstreamer1LibPath
+1 -1
pkgs/development/libraries/gstreamer/legacy/gstreamer/setup-hook.sh
···
fi
}
-
envHooks+=(addGstreamerLibPath)
+
addEnvHooks "$hostOffset" addGstreamerLibPath
+2 -2
pkgs/development/libraries/gtk+/2.x.nix
···
{ stdenv, fetchurl, pkgconfig, gettext, glib, atk, pango, cairo, perl, xorg
-
, gdk_pixbuf, libintlOrEmpty, xlibsWrapper
+
, gdk_pixbuf, libintlOrEmpty, xlibsWrapper, gobjectIntrospection
, xineramaSupport ? stdenv.isLinux
, cupsSupport ? true, cups ? null
, gdktarget ? "x11"
···
setupHook = ./setup-hook.sh;
-
nativeBuildInputs = [ setupHook perl pkgconfig gettext ];
+
nativeBuildInputs = [ setupHook perl pkgconfig gettext gobjectIntrospection ];
patches = [ ./2.0-immodules.cache.patch ./gtk2-theme-paths.patch ];
+2 -2
pkgs/development/libraries/kdb/default.nix
···
{
mkDerivation, lib, fetchurl,
extra-cmake-modules,
-
qtbase, qttranslations, kcoreaddons, python2, sqlite, postgresql, libmysql
+
qtbase, qttranslations, kcoreaddons, python2, sqlite, postgresql, mysql
}:
mkDerivation rec {
···
nativeBuildInputs = [ extra-cmake-modules ];
-
buildInputs = [ qttranslations kcoreaddons python2 sqlite postgresql libmysql ];
+
buildInputs = [ qttranslations kcoreaddons python2 sqlite postgresql mysql.connector-c ];
propagatedBuildInputs = [ qtbase ];
+1 -1
pkgs/development/libraries/kde-frameworks/extra-cmake-modules/setup-hook.sh
···
addToSearchPath XDG_DATA_DIRS "$1/share"
addToSearchPath XDG_CONFIG_DIRS "$1/etc/xdg"
}
-
envHooks+=(_ecmEnvHook)
+
addEnvHooks "$targetOffset" _ecmEnvHook
_ecmPreConfigureHook() {
# Because we need to use absolute paths here, we must set *all* the paths.
+11 -3
pkgs/development/libraries/kde-frameworks/kdoctools/default.nix
···
mkDerivation {
name = "kdoctools";
meta = { maintainers = [ lib.maintainers.ttuegel ]; };
-
nativeBuildInputs = [ extra-cmake-modules ];
-
propagatedNativeBuildInputs = [ perl perlPackages.URI ];
+
nativeBuildInputs = [
+
extra-cmake-modules
+
# The build system insists on having native Perl.
+
perl perlPackages.URI
+
];
+
propagatedBuildInputs = [
+
# kdoctools at runtime actually needs Perl for the platform kdoctools is
+
# running on, not necessarily native perl.
+
perl perlPackages.URI
+
qtbase
+
];
buildInputs = [ karchive ki18n ];
-
propagatedBuildInputs = [ qtbase ];
outputs = [ "out" "dev" ];
patches = [ ./kdoctools-no-find-docbook-xml.patch ];
cmakeFlags = [
+1 -1
pkgs/development/libraries/kde-frameworks/kdoctools/setup-hook.sh
···
addToSearchPath XDG_DATA_DIRS "$1/share"
}
-
envHooks+=(addXdgData)
+
addEnvHooks "$targetOffset" addXdgData
+3 -2
pkgs/development/libraries/libagar/default.nix
···
"--with-gettext=${gettext}"
"--with-jpeg=${libjpeg.dev}"
"--with-gl=${mesa}"
-
"--with-mysql=yes"
+
"--with-mysql=${mysql.connector-c}"
"--with-manpages=yes"
];
outputs = [ "out" "devdoc" ];
nativeBuildInputs = [ pkgconfig libtool gettext ];
+
buildInputs = [
-
bsdbuild perl xlibsWrapper libXinerama SDL mesa mysql.client mandoc
+
bsdbuild perl xlibsWrapper libXinerama SDL mesa mysql.connector-c mandoc
freetype.dev libpng libjpeg.dev fontconfig portaudio libsndfile
];
+2 -2
pkgs/development/libraries/libassuan/default.nix
···
{ fetchurl, stdenv, pth, libgpgerror }:
stdenv.mkDerivation rec {
-
name = "libassuan-2.4.3";
+
name = "libassuan-2.5.1";
src = fetchurl {
url = "mirror://gnupg/libassuan/${name}.tar.bz2";
-
sha256 = "0w9bmasln4z8mn16s1is55a06w3nv8jbyal496z5jvr5vcxkm112";
+
sha256 = "0jb4nb4nrjr949gd3lw8lh4v5d6qigxaq6xwy24w5apjnhvnrya7";
};
outputs = [ "out" "dev" "info" ];
+11 -7
pkgs/development/libraries/libdbi-drivers/default.nix
···
{ stdenv, fetchurl, libdbi
-
, libmysql ? null, sqlite ? null, postgresql ? null
+
, mysql ? null
+
, sqlite ? null
+
, postgresql ? null
}:
with stdenv.lib;
···
sha256 = "0m680h8cc4428xin4p733azysamzgzcmv4psjvraykrsaz6ymlj3";
};
-
buildInputs = [ libdbi libmysql sqlite postgresql ];
+
buildInputs = [ libdbi sqlite postgresql ] ++ optional (mysql != null) mysql.connector-c;
postPatch = ''
sed -i '/SQLITE3_LIBS/ s/-lsqlite/-lsqlite3/' configure;
···
"--enable-libdbi"
"--with-dbi-incdir=${libdbi}/include"
"--with-dbi-libdir=${libdbi}/lib"
-
] ++ optionals (libmysql != null) [
+
] ++ optionals (mysql != null) [
"--with-mysql"
-
] ++ optionals (postgresql != null) [
-
"--with-pgsql"
-
"--with-pgsql_incdir=${postgresql}/include"
-
"--with-pgsql_libdir=${postgresql.lib}/lib"
+
"--with-mysql-incdir=${mysql.connector-c}/include/mysql"
+
"--with-mysql-libdir=${mysql.connector-c}/lib/mysql"
] ++ optionals (sqlite != null) [
"--with-sqlite3"
"--with-sqlite3-incdir=${sqlite.dev}/include/sqlite"
"--with-sqlite3-libdir=${sqlite.out}/lib/sqlite"
+
] ++ optionals (postgresql != null) [
+
"--with-pgsql"
+
"--with-pgsql_incdir=${postgresql}/include"
+
"--with-pgsql_libdir=${postgresql.lib}/lib"
];
installFlags = [ "DESTDIR=\${out}" ];
+2 -2
pkgs/development/libraries/libdrm/default.nix
···
{ stdenv, fetchurl, pkgconfig, libpthreadstubs, libpciaccess, valgrind-light }:
stdenv.mkDerivation rec {
-
name = "libdrm-2.4.88";
+
name = "libdrm-2.4.89";
src = fetchurl {
url = "http://dri.freedesktop.org/libdrm/${name}.tar.bz2";
-
sha256 = "b5e55dbac2124e742e639f5b8553e8b7395863bf73dab4f77e99fe2fc25572b5";
+
sha256 = "629f9782aabbb4809166de5f24d26fe0766055255038f16935602d89f136a02e";
};
outputs = [ "out" "dev" "bin" ];
+15 -7
pkgs/development/libraries/libelf/default.nix
···
-
{ stdenv, fetchurl
-
, gettext, glibc
+
{ stdenv
+
, fetchurl, autoreconfHook, gettext
, buildPlatform, hostPlatform
}:
···
doCheck = true;
-
# Libelf's custom NLS macros fail to determine the catalog file extension on
-
# Darwin, so disable NLS for now.
-
# FIXME: Eventually make Gettext a build input on all platforms.
-
configureFlags = stdenv.lib.optional hostPlatform.isDarwin "--disable-nls";
+
configureFlags = []
+
# Configure check for dynamic lib support is broken, see
+
# http://lists.uclibc.org/pipermail/uclibc-cvs/2005-August/019383.html
+
++ stdenv.lib.optional (hostPlatform != buildPlatform) "mr_cv_target_elf=yes"
+
# Libelf's custom NLS macros fail to determine the catalog file extension
+
# on Darwin, so disable NLS for now.
+
++ stdenv.lib.optional hostPlatform.isDarwin "--disable-nls";
-
nativeBuildInputs = [ gettext ];
+
nativeBuildInputs = [ gettext ]
+
# Need to regenerate configure script with newer version in order to pass
+
# "mr_cv_target_elf=yes", but `autoreconfHook` brings in `makeWrapper`
+
# which doesn't work with the bootstrapTools bash, so can only do this
+
# for cross builds when `stdenv.shell` is a newer bash.
+
++ stdenv.lib.optional (hostPlatform != buildPlatform) autoreconfHook;
meta = {
description = "ELF object file access library";
+2 -2
pkgs/development/libraries/libgcrypt/default.nix
···
stdenv.mkDerivation rec {
name = "libgcrypt-${version}";
-
version = "1.8.1";
+
version = "1.8.2";
src = fetchurl {
url = "mirror://gnupg/libgcrypt/${name}.tar.bz2";
-
sha256 = "1cvqd9jk5qshbh48yh3ixw4zyr4n5k50r3475rrh20xfn7w7aa3s";
+
sha256 = "01sca9m8hm6b5v8hmqsfdjhyz013869p1f0fxw9ln52qfnp4q1n8";
};
outputs = [ "out" "dev" "info" ];
+2 -2
pkgs/development/libraries/libnftnl/default.nix
···
{ stdenv, fetchurl, pkgconfig, libmnl }:
stdenv.mkDerivation rec {
-
name = "libnftnl-1.0.7";
+
name = "libnftnl-1.0.8";
src = fetchurl {
url = "http://netfilter.org/projects/libnftnl/files/${name}.tar.bz2";
-
sha256 = "10irjrylcfkbp11617yr19vpfhgl54w0kw02jhj0i1abqv5nxdlv";
+
sha256 = "0f10cfiyl4c0f8k3brxfrw28x7a6qvrakaslg4jgqncwxycxggg6";
};
nativeBuildInputs = [ pkgconfig ];
+2 -1
pkgs/development/libraries/libopcodes/default.nix
···
find . ../include/opcode -type f -exec sed {} -i -e 's/"bfd.h"/<bfd.h>/' \;
'';
-
nativeBuildInputs = [ autoreconfHook264 bison buildPackages.stdenv.cc ];
+
depsBuildBuild = [ buildPackages.stdenv.cc ];
+
nativeBuildInputs = [ autoreconfHook264 bison ];
buildInputs = [ libiberty ];
# dis-asm.h includes bfd.h
propagatedBuildInputs = [ libbfd ];
+1 -1
pkgs/development/libraries/librdf/redland.nix
···
nativeBuildInputs = [ perl pkgconfig ];
buildInputs = [ openssl libxslt curl pcre libxml2 ]
-
++ stdenv.lib.optional withMysql mysql
+
++ stdenv.lib.optional withMysql mysql.connector-c
++ stdenv.lib.optional withSqlite sqlite
++ stdenv.lib.optional withPostgresql postgresql
++ stdenv.lib.optional withBdb db;
+1 -1
pkgs/development/libraries/librep/setup-hook.sh
···
addToSearchPath REP_DL_LOAD_PATH $1/lib/rep
}
-
envHooks+=(addRepDLLoadPath)
+
addEnvHooks "$hostOffset" addRepDLLoadPath
+2 -2
pkgs/development/libraries/mesa/default.nix
···
in
let
-
version = "17.2.7";
+
version = "17.2.8";
branch = head (splitString "." version);
driverLink = "/run/opengl-driver" + optionalString stdenv.isi686 "-32";
in
···
"ftp://ftp.freedesktop.org/pub/mesa/older-versions/${branch}.x/${version}/mesa-${version}.tar.xz"
"https://mesa.freedesktop.org/archive/mesa-${version}.tar.xz"
];
-
sha256 = "0s3slgjxnx482yw0knn4a6alsy2cq28rah6hnjbmf12mvyldxksh";
+
sha256 = "0pq9kmmyllgd63d936f3x1zsg7sqaswx47khbn0gvbgari2h753f";
};
prePatch = "patchShebangs .";
+2 -1
pkgs/development/libraries/ncurses/default.nix
···
# Only the C compiler, and explicitly not C++ compiler needs this flag on solaris:
CFLAGS = lib.optionalString stdenv.isSunOS "-D_XOPEN_SOURCE_EXTENDED";
+
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [
pkgconfig
] ++ lib.optionals (buildPlatform != hostPlatform) [
-
buildPackages.ncurses buildPackages.stdenv.cc
+
buildPackages.ncurses
];
buildInputs = lib.optional (mouseSupport && stdenv.isLinux) gpm;
+3 -3
pkgs/development/libraries/opendbx/default.nix
···
};
preConfigure = ''
-
export CPPFLAGS="-I${getDev mysql.client}/include/mysql"
-
export LDFLAGS="-L${getLib mysql.client}/lib/mysql -L${getLib postgresql}/lib"
+
export CPPFLAGS="-I${mysql.connector-c}/include/mysql"
+
export LDFLAGS="-L${mysql.connector-c}/lib/mysql -L${postgresql}/lib"
configureFlagsArray=(--with-backends="mysql pgsql sqlite3")
'';
-
buildInputs = [ readline mysql.client postgresql sqlite ];
+
buildInputs = [ readline mysql.connector-c postgresql sqlite ];
}
+3
pkgs/development/libraries/pcre/default.nix
···
buildInputs = optional (hostPlatform.libc == "msvcrt") windows.mingw_w64_pthreads;
+
# https://bugs.exim.org/show_bug.cgi?id=2173
+
patches = [ ./stacksize-detection.patch ];
+
doCheck = !(with hostPlatform; isCygwin || isFreeBSD) && hostPlatform == buildPlatform;
# XXX: test failure on Cygwin
# we are running out of stack on both freeBSDs on Hydra
+16
pkgs/development/libraries/pcre/stacksize-detection.patch
···
+
diff --git a/pcre_exec.c b/pcre_exec.c
+
--- a/pcre_exec.c
+
+++ b/pcre_exec.c
+
@@ -509,6 +509,12 @@
+
(e.g. stopped by repeated call or recursion limit)
+
*/
+
+
+#ifdef __GNUC__
+
+static int
+
+match(REGISTER PCRE_PUCHAR eptr, REGISTER const pcre_uchar *ecode,
+
+ PCRE_PUCHAR mstart, int offset_top, match_data *md, eptrblock *eptrb,
+
+ unsigned int rdepth) __attribute__((noinline,noclone));
+
+#endif
+
static int
+
match(REGISTER PCRE_PUCHAR eptr, REGISTER const pcre_uchar *ecode,
+
PCRE_PUCHAR mstart, int offset_top, match_data *md, eptrblock *eptrb,
+2 -3
pkgs/development/libraries/poco/default.nix
···
-
{ stdenv, fetchurl, cmake, pkgconfig, zlib, pcre, expat, sqlite, openssl, unixODBC, libmysql }:
+
{ stdenv, fetchurl, cmake, pkgconfig, zlib, pcre, expat, sqlite, openssl, unixODBC, mysql }:
stdenv.mkDerivation rec {
name = "poco-${version}";
···
nativeBuildInputs = [ cmake pkgconfig ];
-
buildInputs = [ zlib pcre expat sqlite openssl unixODBC libmysql ];
+
buildInputs = [ zlib pcre expat sqlite openssl unixODBC mysql.connector-c ];
cmakeFlags = [
-
"-DMYSQL_INCLUDE_DIR=${libmysql.dev}/include/mysql"
"-DPOCO_UNBUNDLED=ON"
];
+1 -1
pkgs/development/libraries/qt-3/default.nix
···
-I${randrproto}/include" else "-no-xrandr"}
${if xineramaSupport then "-xinerama -L${libXinerama.out}/lib -I${libXinerama.dev}/include" else "-no-xinerama"}
${if cursorSupport then "-L${libXcursor.out}/lib -I${libXcursor.dev}/include" else ""}
-
${if mysqlSupport then "-qt-sql-mysql -L${stdenv.lib.getLib mysql.client}/lib/mysql -I${mysql.client}/include/mysql" else ""}
+
${if mysqlSupport then "-qt-sql-mysql -L${mysql.connector-c}/lib/mysql -I${mysql.connector-c}/include/mysql" else ""}
${if xftSupport then "-xft
-L${libXft.out}/lib -I${libXft.dev}/include
-L${libXft.freetype.out}/lib -I${libXft.freetype.dev}/include
+1 -1
pkgs/development/libraries/qt-4.x/4.8/default.nix
···
buildInputs =
[ cups # Qt dlopen's libcups instead of linking to it
postgresql sqlite libjpeg libmng libtiff icu ]
-
++ optionals (mysql != null) [ mysql.lib ]
+
++ optionals (mysql != null) [ mysql.connector-c ]
++ optionals gtkStyle [ gtk2 gdk_pixbuf ]
++ optionals stdenv.isDarwin [ cf-private ApplicationServices OpenGL Cocoa AGL libcxx libobjc ];
+1 -5
pkgs/development/libraries/qt-5/hooks/qtbase-setup-hook.sh
···
propagatedUserEnvPkgs+=" $1"
fi
}
-
if [ "$crossConfig" ]; then
-
crossEnvHooks+=(qtEnvHook)
-
else
-
envHooks+=(qtEnvHook)
-
fi
+
envHostTargetHooks+=(qtEnvHook)
postPatchMkspecs() {
local bin="${!outputBin}"
+1 -1
pkgs/development/libraries/qt-5/modules/qtbase.nix
···
)
++ lib.optional developerBuild gdb
++ lib.optional (cups != null) cups
-
++ lib.optional (mysql != null) mysql.lib
+
++ lib.optional (mysql != null) mysql.connector-c
++ lib.optional (postgresql != null) postgresql;
nativeBuildInputs =
+1 -1
pkgs/development/libraries/rep-gtk/setup-hook.sh
···
addToSearchPath REP_DL_LOAD_PATH $1/lib/rep
}
-
envHooks+=(addRepDLLoadPath)
+
addEnvHooks "$hostOffset" addRepDLLoadPath
+1 -1
pkgs/development/libraries/slib/setup-hook.sh
···
fi
}
-
envHooks+=(addSlibPath)
+
addEnvHooks "$hostOffset" addSlibPath
+1 -1
pkgs/development/libraries/tntdb/default.nix
···
sha256 = "0js79dbvkic30bzw1pf26m64vs2ssw2sbj55w1dc0sy69dlv4fh9";
};
-
buildInputs = [ cxxtools postgresql mysql sqlite zlib openssl ];
+
buildInputs = [ cxxtools postgresql mysql.connector-c sqlite zlib openssl ];
enableParallelBuilding = true;
+2 -10
pkgs/development/libraries/unixODBCDrivers/default.nix
···
};
nativeBuildInputs = [ cmake ];
-
buildInputs = [ unixODBC mariadb.lib ];
+
buildInputs = [ unixODBC mariadb.connector-c ];
cmakeFlags = [
-
"-DMARIADB_INCLUDE_DIR=${mariadb.lib}/include/mysql"
+
"-DMARIADB_INCLUDE_DIR=${mariadb.connector-c}/include/mariadb"
];
-
preConfigure = ''
-
sed -i \
-
-e 's,mariadb_config,mysql_config,g' \
-
-e 's,libmariadbclient,libmysqlclient,g' \
-
cmake/FindMariaDB.cmake
-
'';
-
passthru = {
fancyName = "MariaDB";
driver = "lib/libmyodbc3-3.51.12.so";
···
homepage = https://downloads.mariadb.org/connector-odbc/;
license = licenses.gpl2;
platforms = platforms.linux;
-
broken = true;
};
};
+3 -3
pkgs/development/libraries/wt/default.nix
···
{ stdenv, fetchFromGitHub, cmake, boost, pkgconfig, doxygen, qt48Full, libharu
-
, pango, fcgi, firebird, libmysql, postgresql, graphicsmagick, glew, openssl
+
, pango, fcgi, firebird, mysql, postgresql, graphicsmagick, glew, openssl
, pcre
}:
···
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
cmake boost doxygen qt48Full libharu
-
pango fcgi firebird libmysql postgresql graphicsmagick glew
+
pango fcgi firebird mysql.connector-c postgresql graphicsmagick glew
openssl pcre
];
···
"-DWT_WRASTERIMAGE_IMPLEMENTATION=GraphicsMagick"
"-DWT_CPP_11_MODE=-std=c++11"
"-DGM_PREFIX=${graphicsmagick}"
-
"-DMYSQL_PREFIX=${libmysql.dev}"
+
"-DMYSQL_PREFIX=${mysql.connector-c}"
"--no-warn-unused-cli"
];
+1 -1
pkgs/development/libraries/xapian/default.nix
···
in {
# xapian-ruby needs 1.2.22 as of 2017-05-06
xapian_1_2_22 = generic "1.2.22" "0zsji22n0s7cdnbgj0kpil05a6bgm5cfv0mvx12d8ydg7z58g6r6";
-
xapian_1_4_4 = generic "1.4.4" "1n9j2w2as0flih3hgim7gprfxsx6gimijs91rxsjsi8shjlqbad6";
+
xapian_1_4 = generic "1.4.5" "0axhqrj202hbll9mcx1qdm8gsqj19216w3z02gyjbycxvr9gkdc5";
}
+1 -1
pkgs/development/libraries/xapian/tools/omega/default.nix
···
src = fetchurl {
url = "http://oligarchy.co.uk/xapian/${version}/xapian-omega-${version}.tar.xz";
-
sha256 = "0pl9gs0sbavxykfgrkm8syswqnfynmmqhf8429bv8a5qjh5pkp8l";
+
sha256 = "0zji8ckp4h5xdy2wbir3lvk680w1g1l4h5swmaxsx7ah12lkrjcr";
};
buildInputs = [ xapian perl pcre zlib libmagic ];
+1 -1
pkgs/development/lisp-modules/clwrapper/setup-hook.sh
···
export NIX_LISP_COMMAND NIX_LISP CL_SOURCE_REGISTRY NIX_LISP_ASDF
-
envHooks+=(addASDFPaths setLisp collectNixLispLDLP)
+
addEnvHooks "$targetOffset" addASDFPaths setLisp collectNixLispLDLP
mkdir -p "$HOME"/.cache/common-lisp || HOME="$TMP/.temp-$USER-home"
mkdir -p "$HOME"/.cache/common-lisp
+3 -3
pkgs/development/lisp-modules/quicklisp-to-nix-overrides.nix
···
cl-async-ssl = addNativeLibs [pkgs.openssl];
cl-async-test = addNativeLibs [pkgs.openssl];
clsql = x: {
-
propagatedBuildInputs = with pkgs; [mysql postgresql sqlite zlib];
+
propagatedBuildInputs = with pkgs; [mysql.connector-c postgresql sqlite zlib];
overrides = y: (x.overrides y) // {
preConfigure = ((x.overrides y).preConfigure or "") + ''
-
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${pkgs.lib.getDev pkgs.mysql.client}/include/mysql"
-
export NIX_LDFLAGS="$NIX_LDFLAGS -L${pkgs.lib.getLib pkgs.mysql.client}/lib/mysql"
+
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${pkgs.mysql.connector-c}/include/mysql"
+
export NIX_LDFLAGS="$NIX_LDFLAGS -L${pkgs.mysql.connector-c}/lib/mysql"
'';
};
};
+2 -2
pkgs/development/lisp-modules/shell.nix
···
env = buildEnv { name = name; paths = buildInputs; };
buildInputs = [
gcc stdenv
-
openssl fuse libuv mariadb libfixposix libev sqlite
+
openssl fuse libuv mysql.connector-c libfixposix libev sqlite
freetds
lispPackages.quicklisp-to-nix lispPackages.quicklisp-to-nix-system-info
];
CPATH = "${libfixposix}/include";
-
LD_LIBRARY_PATH = "${openssl.out}/lib:${fuse}/lib:${libuv}/lib:${libev}/lib:${mariadb}/lib:${postgresql.lib}/lib:${sqlite.out}/lib:${libfixposix}/lib:${freetds}/lib";
+
LD_LIBRARY_PATH = "${openssl.out}/lib:${fuse}/lib:${libuv}/lib:${libev}/lib:${mysql.connector-c}/lib:${postgresql.lib}/lib:${sqlite.out}/lib:${libfixposix}/lib:${freetds}/lib";
};
in stdenv.mkDerivation self
+1 -1
pkgs/development/ocaml-modules/eliom/setup-hook.sh
···
addToSearchPathWithCustomDelimiter : ELIOM_DISTILLERY_PATH $1/eliom-distillery-templates
}
-
envHooks+=(addOcsigenDistilleryTemplate)
+
addEnvHooks "$hostOffset" addOcsigenDistilleryTemplate
+9 -2
pkgs/development/ocaml-modules/mysql/default.nix
···
-
{ stdenv, fetchurl, ocaml, findlib, mysql }:
+
{ stdenv, fetchurl, fetchpatch, ocaml, findlib, mysql, openssl }:
# TODO: la versione stabile da' un errore di compilazione dovuto a
# qualche cambiamento negli header .h
···
createFindlibDestdir = true;
-
propagatedBuildInputs = [ mysql.client ];
+
propagatedBuildInputs = [ mysql.connector-c ];
+
+
patches = [
+
(fetchpatch {
+
url = "https://github.com/ygrek/ocaml-mysql/compare/v1.2.1...d6d1b3b262ae2cf493ef56f1dd7afcf663a70a26.patch";
+
sha256 = "0018s2wcrvbsw9yaqmwq500qmikwffrgdp5xg9b8v7ixhd4gi6hn";
+
})
+
];
meta = {
homepage = http://ocaml-mysql.forge.ocamlcore.org;
+1 -1
pkgs/development/ocaml-modules/ocamlmake/setup-hook.sh
···
export OCAMLMAKEFILE="@out@/include/OCamlMakefile"
}
-
envHooks+=(addOcamlMakefile)
+
addEnvHooks "$targetOffset" addOcamlMakefile
+1 -1
pkgs/development/perl-modules/DBD-mysql/default.nix
···
sha256 = "0h4h6zwzj8fwh9ljb8svnsa0a3ch4p10hp59kpdibdb4qh8xwxs7";
};
-
buildInputs = [ mysql.lib ] ;
+
buildInputs = [ mysql.connector-c ] ;
propagatedBuildInputs = [ DBI ];
doCheck = false;
+3 -3
pkgs/development/pure-modules/glpk/default.nix
···
{ lib, stdenv, fetchurl,
-
pkgconfig, pure, glpk, gmp, libtool, libmysql, libiodbc, zlib }:
+
pkgconfig, pure, glpk, gmp, libtool, mysql, libiodbc, zlib }:
stdenv.mkDerivation rec {
baseName = "glpk";
···
};
glpkWithExtras = lib.overrideDerivation glpk (attrs: {
-
propagatedBuildInputs = [ gmp libtool libmysql libiodbc ];
+
propagatedBuildInputs = [ gmp libtool mysql.connector-c libiodbc ];
CPPFLAGS = "-I${gmp.dev}/include";
preConfigure = ''
substituteInPlace configure \
-
--replace /usr/include/mysql ${lib.getDev libmysql}/include/mysql
+
--replace /usr/include/mysql ${mysql.connector-c}/include/mysql
'';
configureFlags = [ "--enable-dl"
"--enable-odbc"
+2 -2
pkgs/development/python-modules/APScheduler/default.nix
···
buildPythonPackage rec {
pname = "APScheduler";
-
version = "3.4.0";
+
version = "3.5.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "b51118a8ed014104f7e440456dcbd90f2015aea7bcc34c57e307fb34bc746316";
+
sha256 = "1ce44d5132b7951f4614067c88ca34cfee1ff97f6f0892581d79b636d83eab89";
};
buildInputs = [
+32
pkgs/development/python-modules/Mako/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
, markupsafe
+
, nose
+
, mock
+
, pytest
+
, isPyPy
+
}:
+
+
buildPythonPackage rec {
+
pname = "Mako";
+
version = "1.0.7";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "4e02fde57bd4abb5ec400181e4c314f56ac3e49ba4fb8b0d50bba18cb27d25ae";
+
};
+
+
checkInputs = [ markupsafe nose mock pytest ];
+
propagatedBuildInputs = [ markupsafe ];
+
+
doCheck = !isPyPy; # https://bitbucket.org/zzzeek/mako/issue/238/2-tests-failed-on-pypy-24-25
+
+
meta = {
+
description = "Super-fast templating language";
+
homepage = http://www.makotemplates.org;
+
license = lib.licenses.mit;
+
platforms = lib.platforms.unix;
+
maintainers = with lib.maintainers; [ domenkozar ];
+
};
+
}
+5 -5
pkgs/development/python-modules/MechanicalSoup/default.nix
···
{ fetchPypi, buildPythonPackage, lib
-
, requests, beautifulsoup4, six
+
, requests, beautifulsoup4, six, lxml
, pytestrunner, requests-mock, pytestcov, pytest
}:
···
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "MechanicalSoup";
-
version = "0.8.0";
+
version = "0.9.0.post4";
src = fetchPypi {
inherit pname version;
-
sha256 = "38a6ca35428196be94f87f8f036ee4a88b1418d1f77e5634ad92acfaa22c28da";
+
sha256 = "ce8f822afbc9bef1499be417e8d5deecd0cd32606420165700e89477955f03ab";
};
checkInputs = [ pytest pytestrunner requests-mock pytestcov ];
-
propagatedBuildInputs = [ requests beautifulsoup4 six ];
+
propagatedBuildInputs = [ lxml requests beautifulsoup4 six ];
# Requires network
doCheck = false;
postPatch = ''
# Is in setup_requires but not used in setup.py...
-
substituteInPlace setup.py --replace "'pytest-runner'," ""
+
substituteInPlace setup.py --replace "'pytest-runner'" ""
'';
meta = with lib; {
+2 -2
pkgs/development/python-modules/Nikola/default.nix
···
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "Nikola";
-
version = "7.8.10";
+
version = "7.8.11";
# Nix contains only Python 3 supported version of doit, which is a dependency
# of Nikola. Python 2 support would require older doit 0.29.0 (which on the
···
src = fetchPypi {
inherit pname version;
-
sha256 = "e242c3d0dd175d95a0baf5268b108081ba160b83ceafec8c9bc2ec0a24a56537";
+
sha256 = "10d95b3af84e61496ef729665eafa2235fd0fd4cc6c57644dd0f2c19a968dd0f";
};
meta = {
+2 -2
pkgs/development/python-modules/Theano/default.nix
···
in buildPythonPackage rec {
name = "${pname}-${version}";
pname = "Theano";
-
version = "0.9.0";
+
version = "1.0.1";
disabled = isPyPy || pythonOlder "2.6" || (isPy3k && pythonOlder "3.3");
src = fetchPypi {
inherit pname version;
-
sha256 = "05xwg00da8smkvkh6ywbywqzj8dw7x840jr74wqhdy9icmqncpbl";
+
sha256 = "88d8aba1fe2b6b75eacf455d01bc7e31e838c5a0fb8c13dde2d9472495ff4662";
};
postPatch = ''
+2 -2
pkgs/development/python-modules/absl-py/default.nix
···
buildPythonPackage rec {
pname = "absl-py";
-
version = "0.1.5";
+
version = "0.1.7";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "94943ed0cd77077fe2d18e79b2f28d3e92f585f7d1c6edc75e640121f3c5d580";
+
sha256 = "4ea22ae860f3a556511291e7f1284942199c81377f47ec4248163defb1b9e6ee";
};
propagatedBuildInputs = [ six ];
+2 -2
pkgs/development/python-modules/aenum/default.nix
···
buildPythonPackage rec {
pname = "aenum";
-
version = "2.0.8";
+
version = "2.0.9";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "3209fa41b8c41345442e8d9b5158a57d3e96d84c3d5ebbe8e521e1e2eff1598d";
+
sha256 = "d98bc55136d696fcf323760c3db0de489da9e41fd51283fa6f90205deb85bf6a";
};
doCheck = !isPy3k;
+2 -2
pkgs/development/python-modules/aiohttp/default.nix
···
buildPythonPackage rec {
pname = "aiohttp";
-
version = "2.3.3";
+
version = "2.3.7";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "0a2e33e90560dacb819b095b9d9611597925d75d1b93dd9490055d3826d98a82";
+
sha256 = "fe294df38e9c67374263d783a7a29c79372030f5962bd5734fa51c6f4bbfee3b";
};
disabled = pythonOlder "3.4";
+5 -6
pkgs/development/python-modules/arrow/default.nix
···
{ stdenv, buildPythonPackage, fetchPypi
-
, nose, chai, simplejson
+
, nose, chai, simplejson, backports_functools_lru_cache
, dateutil }:
buildPythonPackage rec {
-
name = "${pname}-${version}";
pname = "arrow";
-
version = "0.10.0";
+
version = "0.12.0";
src = fetchPypi {
inherit pname version;
-
sha256 = "08n7q2l69hlainds1byd4lxhwrq7zsw7s640zkqc3bs5jkq0cnc0";
+
sha256 = "a15ecfddf334316e3ac8695e48c15d1be0d6038603b33043930dcf0e675c86ee";
};
checkPhase = ''
nosetests --cover-package=arrow
'';
-
buildInputs = [ nose chai simplejson ];
-
propagatedBuildInputs = [ dateutil ];
+
checkInputs = [ nose chai simplejson ];
+
propagatedBuildInputs = [ dateutil backports_functools_lru_cache ];
meta = with stdenv.lib; {
description = "Python library for date manipulation";
+2 -2
pkgs/development/python-modules/asgiref/default.nix
···
{ stdenv, buildPythonPackage, fetchurl, six }:
buildPythonPackage rec {
-
version = "1.1.2";
+
version = "2.0.1";
pname = "asgiref";
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://pypi/a/asgiref/${name}.tar.gz";
-
sha256 = "8b46c3d6e2ad354d9da3cfb9873f9bd46fe1b768fbc11065275ba5430a46700c";
+
sha256 = "c3d70c473a2b7e525e18e68504630943e107f5b32f440c00c8543f94f565c855";
};
propagatedBuildInputs = [ six ];
+2 -2
pkgs/development/python-modules/asn1crypto/default.nix
···
buildPythonPackage rec {
pname = "asn1crypto";
-
version = "0.23.0";
+
version = "0.24.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "0874981329cfebb366d6584c3d16e913f2a0eb026c9463efcc4aaf42a9d94d70";
+
sha256 = "9d5c20441baf0cb60a4ac34cc447c6c189024b6b4c6cd7877034f4965c464e49";
};
# No tests included
+2 -2
pkgs/development/python-modules/astor/default.nix
···
buildPythonPackage rec {
pname = "astor";
-
version = "0.5";
+
version = "0.6.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "1fdafq5hkis1fxqlmhw0sn44zp2ar46nxhbc22cvwg7hsd8z5gsa";
+
sha256 = "ff6d2e2962d834acb125cc4dcc80c54a8c17c253f4cc9d9c43b5102a560bb75d";
};
meta = with stdenv.lib; {
+2 -2
pkgs/development/python-modules/astroid/default.nix
···
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "astroid";
-
version = "1.5.3";
+
version = "1.6.0";
src = fetchPypi {
inherit pname version;
-
sha256 = "492c2a2044adbf6a84a671b7522e9295ad2f6a7c781b899014308db25312dd35";
+
sha256 = "71dadba2110008e2c03f9fde662ddd2053db3c0489d0e03c94e828a0399edd4f";
};
propagatedBuildInputs = [ logilab_common six lazy-object-proxy wrapt ]
+2 -2
pkgs/development/python-modules/astropy/default.nix
···
buildPythonPackage rec {
pname = "astropy";
-
version = "2.0.2";
+
version = "2.0.3";
name = "${pname}-${version}";
doCheck = false; #Some tests are failing. More importantly setup.py hangs on completion. Needs fixing with a proper shellhook.
src = fetchPypi {
inherit pname version;
-
sha256 = "4544a422b1173d79b2d65ba74c627f04a5fd8530d97fb604752d657d754e103d";
+
sha256 = "fdfc0248f6250798ed6d1327be609cb901db89ae01fc768cfbc9e263bdf56f4f";
};
propagatedBuildInputs = [ pytest numpy ]; # yes it really has pytest in install_requires
+6 -4
pkgs/development/python-modules/attrs/default.nix
···
, pympler, coverage, six, clang }:
buildPythonPackage rec {
-
name = "${pname}-${version}";
pname = "attrs";
-
version = "17.2.0";
+
version = "17.4.0";
src = fetchPypi {
inherit pname version;
-
sha256 = "04gx08ikpk26wnq22f7l42gapcvk8iz1512r927k6sadz6cinkax";
+
sha256 = "1c7960ccfd6a005cd9f7ba884e6316b5e430a3f1a6c37c5f87d8b43f83b54ec9";
};
# macOS needs clang for testing
-
buildInputs = [
+
checkInputs = [
pytest hypothesis zope_interface pympler coverage six
] ++ lib.optionals (stdenv.isDarwin) [ clang ];
checkPhase = ''
py.test
'';
+
+
# To prevent infinite recursion with pytest
+
doCheck = false;
meta = with lib; {
description = "Python attributes without boilerplate";
+29
pkgs/development/python-modules/aws-xray-sdk/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
, jsonpickle
+
, wrapt
+
, requests
+
}:
+
+
buildPythonPackage rec {
+
pname = "aws-xray-sdk";
+
version = "0.95";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "9e7ba8dd08fd2939376c21423376206bff01d0deaea7d7721c6b35921fed1943";
+
};
+
+
propagatedBuildInputs = [
+
jsonpickle wrapt requests
+
];
+
+
meta = {
+
description = "AWS X-Ray SDK for the Python programming language";
+
license = lib.licenses.asl20;
+
homepage = https://github.com/aws/aws-xray-sdk-python;
+
};
+
+
doCheck = false;
+
}
+25
pkgs/development/python-modules/backports_abc/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
, python
+
}:
+
+
buildPythonPackage rec {
+
pname = "backports_abc";
+
version = "0.5";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "033be54514a03e255df75c5aee8f9e672f663f93abb723444caec8fe43437bde";
+
};
+
+
checkPhase = ''
+
${python.interpreter} -m unittest discover
+
'';
+
+
meta = {
+
homepage = https://github.com/cython/backports_abc;
+
license = lib.licenses.psfl;
+
description = "A backport of recent additions to the 'collections.abc' module";
+
};
+
}
+24
pkgs/development/python-modules/backports_functools_lru_cache/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
, setuptools_scm
+
}:
+
+
buildPythonPackage rec {
+
pname = "backports.functools_lru_cache";
+
version = "1.4";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "31f235852f88edc1558d428d890663c49eb4514ffec9f3650e7f3c9e4a12e36f";
+
};
+
+
buildInputs = [ setuptools_scm ];
+
doCheck = false; # No proper test
+
+
meta = {
+
description = "Backport of functools.lru_cache";
+
homepage = https://github.com/jaraco/backports.functools_lru_cache;
+
license = lib.licenses.mit;
+
};
+
}
+32
pkgs/development/python-modules/backports_lzma/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
, isPy3k
+
, lzma
+
, python
+
}:
+
+
buildPythonPackage rec {
+
pname = "backports.lzma";
+
version = "0.0.8";
+
+
disabled = isPy3k;
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "200584ad5079d8ca6b1bfe14890c7be58666ab0128d8ca26cfb2669b476085f3";
+
};
+
+
buildInputs = [ lzma ];
+
+
# Needs the compiled module in $out
+
checkPhase = ''
+
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH ${python.interpreter} -m unittest discover -s test
+
'';
+
+
meta = {
+
description = "Backport of Python 3.3's 'lzma' module for XZ/LZMA compressed files";
+
homepage = https://github.com/peterjc/backports.lzma;
+
license = lib.licenses.bsd3;
+
};
+
}
+32
pkgs/development/python-modules/biopython/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
, numpy
+
}:
+
+
buildPythonPackage rec {
+
pname = "biopython";
+
version = "1.70";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "4a7c5298f03d1a45523f32bae1fffcff323ea9dce007fb1241af092f5ab2e45b";
+
};
+
+
propagatedBuildInputs = [ numpy ];
+
# Checks try to write to $HOME, which does not work with nix
+
doCheck = false;
+
meta = {
+
description = "Python library for bioinformatics";
+
longDescription = ''
+
Biopython is a set of freely available tools for biological computation
+
written in Python by an international team of developers. It is a
+
distributed collaborative effort to develop Python libraries and
+
applications which address the needs of current and future work in
+
bioinformatics.
+
'';
+
homepage = http://biopython.org/wiki/Documentation;
+
maintainers = with lib.maintainers; [ luispedro ];
+
license = lib.licenses.bsd3;
+
};
+
}
+3 -9
pkgs/development/python-modules/blaze/default.nix
···
buildPythonPackage rec {
pname = "blaze";
-
version = "0.11.0";
-
name = "${pname}-${version}";
+
version = "0.11.3";
src = fetchurl {
url = "https://github.com/blaze/blaze/archive/${version}.tar.gz";
-
sha256 = "07zrrxkmdqk84xvdmp29859zcfzlpx5pz6g62l28nqp6n6a7yq9a";
+
sha256 = "075gqc9d7g284z4nfwv5zbq99ln22w25l4lcndjg3v10kmsjadww";
};
checkInputs = [ pytest ];
···
toolz
];
-
# Failing test
-
# ERROR collecting blaze/tests/test_interactive.py
-
# E networkx.exception.NetworkXNoPath: node <class 'list'> not
-
# reachable from <class 'dask.array.core.Array'>
-
doCheck = false;
-
checkPhase = ''
+
rm pytest.ini # Not interested in coverage
py.test blaze/tests
'';
+2 -2
pkgs/development/python-modules/bokeh/default.nix
···
buildPythonPackage rec {
pname = "bokeh";
name = "${pname}${version}";
-
version = "0.12.10";
+
version = "0.12.13";
src = fetchPypi {
inherit pname version;
-
sha256 = "6465fae82e94223f16584645b38d34a73d95712870f29c0244649c2cbf2c8393";
+
sha256 = "6e28cbfd88de0c459435278b75f9982591ec0aaa3d37a195052645e1c62e89e3";
};
disabled = isPyPy;
+2 -2
pkgs/development/python-modules/bootstrapped-pip/default.nix
···
};
setuptools_source = fetchPypi {
pname = "setuptools";
-
version = "38.2.3";
+
version = "38.2.5";
format = "wheel";
-
sha256 = "0c4j3jiiwc0h1bdv4xklinp90spgvgiv5fsxp119hif9934nfxfs";
+
sha256 = "bcf0d4f3e2f7890e658db11e218b8643afffb905a0e2f2a7d5a6a3e949bb87e6";
};
# TODO: Shouldn't be necessary anymore for pip > 9.0.1!
+50
pkgs/development/python-modules/boto3/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchFromGitHub
+
, botocore
+
, jmespath
+
, s3transfer
+
, futures
+
, docutils
+
, nose
+
, mock
+
, isPy3k
+
}:
+
+
buildPythonPackage rec {
+
pname = "boto3";
+
version = "1.4.8";
+
+
src = fetchFromGitHub {
+
owner = "boto";
+
repo = "boto3";
+
rev = version;
+
sha256 = "11ysd7a9l5y98q7b7az56phsj2m7w90abf4jabwrknp2c43sq9bi";
+
};
+
+
propagatedBuildInputs = [ botocore jmespath s3transfer ] ++ lib.optionals (!isPy3k) [ futures ];
+
checkInputs = [ docutils nose mock ];
+
+
checkPhase = ''
+
runHook preCheck
+
# This method is not in mock. It might have appeared in some versions.
+
sed -i 's/action.assert_called_once()/self.assertEqual(action.call_count, 1)/' \
+
tests/unit/resources/test_factory.py
+
nosetests -d tests/unit --verbose
+
runHook postCheck
+
'';
+
+
# Network access
+
doCheck = false;
+
+
meta = {
+
homepage = https://github.com/boto/boto3;
+
license = lib.licenses.asl20;
+
description = "AWS SDK for Python";
+
longDescription = ''
+
Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for
+
Python, which allows Python developers to write software that makes use of
+
services like Amazon S3 and Amazon EC2.
+
'';
+
};
+
}
+2 -2
pkgs/development/python-modules/botocore/default.nix
···
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "botocore";
-
version = "1.8.10";
+
version = "1.8.21";
src = fetchPypi {
inherit pname version;
-
sha256 = "16dznd0mxxs8imsl228vx5s9bz9v7ggajs496jy21n5a19cadkch";
+
sha256 = "e4513a02f68e7efd7494ee56db201d87620218ca879aae361abbb71bcde3aa5f";
};
propagatedBuildInputs = [
+36
pkgs/development/python-modules/brotlipy/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
, cffi
+
, enum34
+
, construct
+
, pytest
+
, hypothesis
+
}:
+
+
buildPythonPackage rec {
+
pname = "brotlipy";
+
version = "0.7.0";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "36def0b859beaf21910157b4c33eb3b06d8ce459c942102f16988cca6ea164df";
+
};
+
+
propagatedBuildInputs = [ cffi enum34 construct ];
+
+
checkInputs = [ pytest hypothesis ];
+
+
checkPhase = ''
+
py.test
+
'';
+
+
# Missing test files
+
doCheck = false;
+
+
meta = {
+
description = "Python bindings for the reference Brotli encoder/decoder";
+
homepage = "https://github.com/python-hyper/brotlipy/";
+
license = lib.licenses.mit;
+
};
+
}
+25
pkgs/development/python-modules/cached-property/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
, freezegun
+
}:
+
+
buildPythonPackage rec {
+
pname = "cached-property";
+
version = "1.3.1";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "6562f0be134957547421dda11640e8cadfa7c23238fc4e0821ab69efdb1095f3";
+
};
+
+
checkInputs = [ freezegun ];
+
+
meta = {
+
description = "A decorator for caching properties in classes";
+
homepage = https://github.com/pydanny/cached-property;
+
license = lib.licenses.bsd3;
+
platforms = lib.platforms.unix;
+
maintainers = with lib.maintainers; [ ericsagnes ];
+
};
+
}
+2 -2
pkgs/development/python-modules/credstash/default.nix
···
buildPythonPackage rec {
pname = "credstash";
-
version = "1.13.4";
+
version = "1.14.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "676cc03a6143dec260c78aeef09d08a64faf27c411f8a94f6d9338e985879f81";
+
sha256 = "718b337f7a6fa001e014386071f05c59900525d0507009126d2fe8d75fe0761d";
};
propagatedBuildInputs = [ cryptography boto3 pyyaml docutils ];
+2 -2
pkgs/development/python-modules/csscompressor/default.nix
···
{ stdenv, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "csscompressor";
-
version = "0.9.4";
+
version = "0.9.5";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "0e12f125b88379d7b680636d94a3c8fa14bed1de2358f7f9a9e6749e222cff3b";
+
sha256 = "afa22badbcf3120a4f392e4d22f9fff485c044a1feda4a950ecc5eba9dd31a05";
};
doCheck = false; # No tests
+2 -2
pkgs/development/python-modules/cx_freeze/default.nix
···
buildPythonPackage rec {
pname = "cx_Freeze";
-
version = "5.0.2";
+
version = "5.1.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "0zbx9j5z5l06bvwvlqvvn7h9dm7zjcjgxm7agbb625nymkq6cd15";
+
sha256 = "2eadddde670f5c5f6cf88638a0ac4e5d5fe181292a31063275fa56c7bf22426b";
};
propagatedBuildInputs = [ ncurses ];
+2 -2
pkgs/development/python-modules/cytoolz/default.nix
···
buildPythonPackage rec {
pname = "cytoolz";
-
version = "0.8.2";
+
version = "0.9.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "476a2ad176de5eaef80499b7b43d4f72ba6d23df33d349088dae315e9b31c552";
+
sha256 = "5ebb55855a8bb7800afa58e52408763935527e0305f35600c71b43c86013dec2";
};
# Extension types
+2 -2
pkgs/development/python-modules/dask/default.nix
···
buildPythonPackage rec {
pname = "dask";
-
version = "0.15.4";
+
version = "0.16.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "cb93b8260f5f854ccf26b52bdc700600a08e6b7527085c7b7d63c04238bab9ea";
+
sha256 = "40d150b73e3366c9521e9dde206046a66906330074f87be901b1e1013ce6cb73";
};
checkInputs = [ pytest ];
+20
pkgs/development/python-modules/decorator/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
}:
+
+
buildPythonPackage rec {
+
pname = "decorator";
+
version = "4.1.2";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "7cb64d38cb8002971710c8899fbdfb859a23a364b7c99dab19d1f719c2ba16b5";
+
};
+
+
meta = {
+
homepage = https://pypi.python.org/pypi/decorator;
+
description = "Better living through Python with decorators";
+
license = lib.licenses.mit;
+
};
+
}
+2 -2
pkgs/development/python-modules/distro/default.nix
···
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "distro";
-
version = "1.0.4";
+
version = "1.2.0";
buildInputs = [ pytest pytestcov tox];
···
src = fetchPypi {
inherit pname version;
-
sha256 = "9b000b0d637bb0cbd130a7a4835681e6993e309a85564dfea9d884825fe46954";
+
sha256 = "d94370e43b676ac44fbe1ab68ca903a6147eaba3a9e8eff85b2c05556a455b76";
};
meta = with stdenv.lib; {
+2 -2
pkgs/development/python-modules/django-jinja2/default.nix
···
buildPythonPackage rec {
pname = "django-jinja";
name = "${pname}-${version}";
-
version = "2.2.2";
+
version = "2.4.1";
meta = {
description = "Simple and nonobstructive jinja2 integration with Django";
···
src = fetchPypi {
inherit pname version;
-
sha256 = "099b99iprkvlsndrjmw4v3i3i60i9gm1aq5r88z15r7vgmv6sigj";
+
sha256 = "8a49d73de616a12075eee14c6d3bbab936261a463457d40348d8b8e2995cfbed";
};
buildInputs = [ django pytz tox ];
+2 -2
pkgs/development/python-modules/djangorestframework/default.nix
···
{ stdenv, buildPythonPackage, fetchurl, django }:
buildPythonPackage rec {
-
version = "3.7.3";
+
version = "3.7.7";
pname = "djangorestframework";
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://pypi/d/djangorestframework/${name}.tar.gz";
-
sha256 = "067960e5e9e5586d3b2d53a1d626c4800dc33cd8309487d404fc63355674556f";
+
sha256 = "9f9e94e8d22b100ed3a43cee8c47a7ff7b185e778a1f2da9ec5c73fc4e081b87";
};
# Test settings are missing
+2 -2
pkgs/development/python-modules/docker/default.nix
···
, ipaddress, backports_ssl_match_hostname, docker_pycreds
}:
buildPythonPackage rec {
-
version = "2.5.1";
+
version = "2.7.0";
pname = "docker";
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://pypi/d/docker/${name}.tar.gz";
-
sha256 = "b876e6909d8d2360e0540364c3a952a62847137f4674f2439320ede16d6db880";
+
sha256 = "144248308e8ea31c4863c6d74e1b55daf97cc190b61d0fe7b7313ab920d6a76c";
};
propagatedBuildInputs = [
+5 -6
pkgs/development/python-modules/docker_compose/default.nix
···
, pyyaml, backports_ssl_match_hostname, colorama, docopt
, dockerpty, docker, ipaddress, jsonschema, requests
, six, texttable, websocket_client, cached-property
-
, enum34, functools32
+
, enum34, functools32,
}:
buildPythonApplication rec {
-
version = "1.15.0";
+
version = "1.18.0";
pname = "docker-compose";
-
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "0yg58m5kk22kihbra0h40miqnbdmkirjr9y47wns613sdikrymmg";
+
sha256 = "2930cbfe2685018fbb75377600ab6288861d9955717b3f14212f63950351d379";
};
# lots of networking and other fails
doCheck = false;
-
buildInputs = [ mock pytest nose ];
+
checkInputs = [ mock pytest nose ];
propagatedBuildInputs = [
pyyaml backports_ssl_match_hostname colorama dockerpty docker
ipaddress jsonschema requests six texttable websocket_client
···
stdenv.lib.optional (pythonOlder "3.4") enum34 ++
stdenv.lib.optional (pythonOlder "3.2") functools32;
-
patchPhase = ''
+
postPatch = ''
# Remove upper bound on requires, see also
# https://github.com/docker/compose/issues/4431
sed -i "s/, < .*',$/',/" setup.py
+2 -2
pkgs/development/python-modules/easy-thumbnails/default.nix
···
buildPythonPackage rec {
pname = "easy-thumbnails";
name = "${pname}-${version}";
-
version = "2.4.2";
+
version = "2.5";
meta = {
description = "Easy thumbnails for Django";
···
src = fetchPypi {
inherit pname version;
-
sha256 = "8cad7ea4fb2b800284e842d8a44f685cbc1968535be04c24a4bbf6e6dbc550c4";
+
sha256 = "e244d1f26027fc32c6ca60ffb0169a39099446f614b0433e907a2588ae7d9b95";
};
propagatedBuildInputs = [ django pillow ];
+2 -2
pkgs/development/python-modules/eve/default.nix
···
buildPythonPackage rec {
pname = "Eve";
-
version = "0.7.4";
+
version = "0.7.5";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "0xihl5w2m4vkp0515qjibiy88pk380n5jmj8n9hh7q40b1vx1kwb";
+
sha256 = "dd4ffbc4725220ffdc8e32f8566c8870efaecdc238d0f96b18e1e83227eca55d";
};
patches = [
+23
pkgs/development/python-modules/extras/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
}:
+
+
buildPythonPackage rec {
+
pname = "extras";
+
version = "1.0.0";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "132e36de10b9c91d5d4cc620160a476e0468a88f16c9431817a6729611a81b4e";
+
};
+
+
# error: invalid command 'test'
+
doCheck = false;
+
+
meta = {
+
description = "A module provides basic functions for parsing mime-type names and matching them against a list of media-ranges";
+
homepage = https://code.google.com/p/mimeparse/;
+
license = lib.licenses.mit;
+
};
+
}
+2 -2
pkgs/development/python-modules/faker/default.nix
···
buildPythonPackage rec {
pname = "Faker";
-
version = "0.8.7";
+
version = "0.8.8";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "bf7dabcd6807c8829da28a4de491adf7998af506b8571db6a6eb58161157248a";
+
sha256 = "e928cf853ef69d7471421f2a3716a1239e43de0fa9855f4016ee0c9f1057328a";
};
checkInputs = [
+4 -4
pkgs/development/python-modules/fastimport/default.nix
···
-
{ stdenv, buildPythonPackage, python, fetchurl }:
+
{ stdenv, buildPythonPackage, python, fetchPypi}:
buildPythonPackage rec {
-
name = "fastimport-${version}";
+
pname = "fastimport";
version = "0.9.6";
-
src = fetchurl {
-
url = "mirror://pypi/f/fastimport/${name}.tar.gz";
+
src = fetchPypi {
+
inherit pname version;
sha256 = "1aqjsin4rmqm7ln4j0p73fzxifws6c6ikgyhav7r137m2ixsxl43";
};
+2 -2
pkgs/development/python-modules/faulthandler/default.nix
···
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "faulthandler";
-
version = "2.6";
+
version = "3.0";
src = fetchPypi {
inherit pname version;
-
sha256 = "0zywq3jaznddvqc3hnfrlv24wmpyq4xgajk9xhv6578qw1rpfj2r";
+
sha256 = "acc10e10909f0f956ba1b42b6c450ea0bdaaa27b3942899f65931396cfcdd36a";
};
meta = {
+2 -2
pkgs/development/python-modules/filelock/default.nix
···
buildPythonPackage rec {
pname = "filelock";
-
version = "2.0.13";
+
version = "2.0.14";
src = fetchPypi {
inherit pname version;
-
sha256 = "1n67dw7np5gsy5whynyk8c46pjlr353d6j9735p5gryaszkpjl6h";
+
sha256 = "ee355eb66e4c2e5d95689e1253515aad5b3177c274abdd00a57d5ab1aa6d071a";
};
meta = with stdenv.lib; {
+2 -2
pkgs/development/python-modules/fiona/default.nix
···
buildPythonPackage rec {
pname = "Fiona";
-
version = "1.7.10.post1";
+
version = "1.7.11";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "fc4c8996be3131f36c791d66273317d38b72b19dc24c2afc332fd734752eb7a8";
+
sha256 = "5e9c68ea71e9d79fcfb68c9a101c0b133301e233c9bcca7b7c65f33cc7636ef5";
};
buildInputs = [
+2 -2
pkgs/development/python-modules/flake8-debugger/default.nix
···
buildPythonPackage rec {
pname = "flake8-debugger";
name = "${pname}-${version}";
-
version = "1.4.0";
+
version = "3.0.0";
src = fetchurl {
url = "mirror://pypi/f/flake8-debugger/${name}.tar.gz";
-
sha256 = "0chjfa6wvnqjnx778qzahhwvjx1j0rc8ax0ipp5bn70gf47lj62r";
+
sha256 = "e5c8ac980d819db2f3fbb89fe0e43a2fe6c127edd6ce4984a3f7e0bbdac3d2d4";
};
buildInputs = [ nose ];
propagatedBuildInputs = [ flake8 ];
+2 -2
pkgs/development/python-modules/flask-testing/default.nix
···
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "Flask-Testing";
-
version = "0.6.2";
+
version = "0.7.1";
src = fetchPypi {
inherit pname version;
-
sha256 = "1w0dpwvrcpffm8ychyxpm8s5blm7slik9kplh9jb3sgwcv9gyppj";
+
sha256 = "dc076623d7d850653a018cb64f500948334c8aeb6b10a5a842bf1bcfb98122bc";
};
postPatch = ''
+6 -8
pkgs/development/python-modules/flit/default.nix
···
, pytest
, testpath
, responses
+
, pytoml
}:
# Flit is actually an application to build universal wheels.
···
buildPythonPackage rec {
pname = "flit";
-
version = "0.11.4";
-
name = "${pname}-${version}";
-
-
# format = "wheel";
+
version = "0.13";
src = fetchPypi {
inherit pname version;
-
# url = https://files.pythonhosted.org/packages/24/98/50a090112a04d9e29155c31a222637668b0a4dd778fefcd3132adc50e877/flit-0.10-py3-none-any.whl;
-
sha256 = "8ba7603cc3bf4149d81811d40fe331abc45ff37a207c63f5f712a0fdb69297bb";
+
sha256 = "8f558351bf4bb82b872d3bdbea7055cbb2e33ed2bdf809284bf927d4c78bf0ee";
};
disabled = !isPy3k;
-
propagatedBuildInputs = [ docutils requests requests_download ] ++ lib.optional (pythonOlder "3.6") zipfile36;
+
propagatedBuildInputs = [ docutils requests requests_download pytoml ] ++ lib.optional (pythonOlder "3.6") zipfile36;
checkInputs = [ pytest testpath responses ];
# Disable test that needs some ini file.
+
# Disable test that wants hg
checkPhase = ''
-
py.test -k "not test_invalid_classifier"
+
py.test -k "not test_invalid_classifier and not test_build_sdist"
'';
meta = {
+2 -2
pkgs/development/python-modules/fonttools/default.nix
···
buildPythonPackage rec {
pname = "fonttools";
-
version = "3.17.0";
+
version = "3.21.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "1c4f26bf32cd58d5881bfe1f42e5f0a1637a58452a60ae1623999f3ae7da0e24";
+
sha256 = "95b5c66d19dbffd57be1636d1f737c7644d280a48c28f933aeb4db73a7c83495";
extension = "zip";
};
+2 -2
pkgs/development/python-modules/ftfy/default.nix
···
name = "${pname}-${version}";
pname = "ftfy";
# latest is 5.1.1, buy spaCy requires 4.4.3
-
version = "5.1.1";
+
version = "5.2.0";
src = fetchPypi {
inherit pname version;
-
sha256 = "67a29a2fad5f72aec2d8a0a7084e4f499ed040455133ee96b1c458609fc29e78";
+
sha256 = "b9f84a1437f68ad0bb964fd9da9f6b88d090113ec9e78f290f6d6d0221468e38";
};
propagatedBuildInputs = [ html5lib wcwidth];
+2 -2
pkgs/development/python-modules/gensim/default.nix
···
buildPythonPackage rec {
pname = "gensim";
name = "${pname}-${version}";
-
version = "3.0.1";
+
version = "3.2.0";
src = fetchPypi {
inherit pname version;
-
sha256 = "4827012f6f020ac4f4067c2a2a88542391917113faaa417505e1ee8a1e7e2650";
+
sha256 = "db00b68c6567ba0598d400b917c889e8801adf249170ce0a80ec38187d1b0797";
};
propagatedBuildInputs = [ smart_open numpy six scipy
+3 -5
pkgs/development/python-modules/gflags/default.nix
···
buildPythonPackage rec {
version = "3.1.2";
-
pname = "gflags";
-
name = pname + "-" + version;
+
pname = "python-gflags";
src = fetchPypi {
-
inherit version;
-
pname = "python-gflags";
+
inherit pname version;
sha256 = "40ae131e899ef68e9e14aa53ca063839c34f6a168afe622217b5b875492a1ee2";
};
-
buildInputs = [ pytest ];
+
checkInputs = [ pytest ];
propagatedBuildInputs = [ six ];
+2 -2
pkgs/development/python-modules/google_api_core/default.nix
···
buildPythonPackage rec {
pname = "google-api-core";
-
version = "0.1.2";
+
version = "0.1.3";
src = fetchPypi {
inherit pname version;
-
sha256 = "0qmjswj079w7q7zbnh8p4n2r3f831wymm9hfdlc7zfrini7184xv";
+
sha256 = "03bc4b1ab69c0e113af07e706edee50f583abe8219fe1e1d529dee191cb8e0bf";
};
propagatedBuildInputs = [ google_auth protobuf googleapis_common_protos requests grpcio ];
+2 -2
pkgs/development/python-modules/gpy/default.nix
···
buildPythonPackage rec {
pname = "GPy";
-
version = "1.8.4";
+
version = "1.8.5";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "38c1202f1790952b88c298224139ee5b14d4518e3ddc6186c60db2ece016d8c1";
+
sha256 = "1562e34629192f209273f454e41614a127c6ef04144cd0eb5992d484721d55d3";
};
# running tests produces "ImportError: cannot import name 'linalg_cython'"
+2 -2
pkgs/development/python-modules/grpcio/default.nix
···
buildPythonPackage rec {
pname = "grpcio";
-
version = "1.7.3";
+
version = "1.8.2";
src = fetchPypi {
inherit pname version;
-
sha256 = "1wkrxj1jmf2dyx207fc9ysyns9h27gls3drgg05mzdckjqr5lnl6";
+
sha256 = "1ea1336f0d1158c4e00e96a94df84b75f6bbff9816abb6cc68cbdc9442a9ac55";
};
propagatedBuildInputs = [ six protobuf ]
+2 -2
pkgs/development/python-modules/gssapi/default.nix
···
buildPythonPackage rec {
pname = "gssapi";
-
version = "1.2.0";
+
version = "1.3.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "1q6ccpz6anl9vggwxdq32wp6xjh2lyfbf7av6jqnmvmyqdfwh3b9";
+
sha256 = "765205082a9490c8e8be88ac16a6249d124396a671665edeec9927a7f244d712";
};
# It's used to locate headers
+42
pkgs/development/python-modules/html5lib/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
, flake8
+
, pytest
+
, pytest-expect
+
, mock
+
, six
+
, webencodings
+
}:
+
+
buildPythonPackage rec {
+
pname = "html5lib";
+
version = "1.0.1";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "66cb0dcfdbbc4f9c3ba1a63fdb511ffdbd4f513b2b6d81b80cd26ce6b3fb3736";
+
};
+
+
checkInputs = [ flake8 pytest pytest-expect mock ];
+
propagatedBuildInputs = [
+
six webencodings
+
];
+
+
checkPhase = ''
+
py.test
+
'';
+
+
meta = {
+
homepage = https://github.com/html5lib/html5lib-python;
+
downloadPage = https://github.com/html5lib/html5lib-python/releases;
+
description = "HTML parser based on WHAT-WG HTML5 specification";
+
longDescription = ''
+
html5lib is a pure-python library for parsing HTML. It is designed to
+
conform to the WHATWG HTML specification, as is implemented by all
+
major web browsers.
+
'';
+
license = lib.licenses.mit;
+
maintainers = with lib.maintainers; [ domenkozar prikhi ];
+
};
+
}
+2 -2
pkgs/development/python-modules/htmlmin/default.nix
···
{ stdenv, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "htmlmin";
-
version = "0.1.11";
+
version = "0.1.12";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "f27fb96fdddeb1725ee077be532c7bea23288c69d0e996e7798f24fae7a14e5e";
+
sha256 = "50c1ef4630374a5d723900096a961cff426dff46b48f34d194a81bbe14eca178";
};
# Tests run fine in a normal source checkout, but not when being built by nix.
+2 -2
pkgs/development/python-modules/httpbin/default.nix
···
buildPythonPackage rec {
pname = "httpbin";
-
version = "0.5.0";
+
version = "0.6.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "6b57f563900ecfe126015223a259463848daafbdc2687442317c0992773b9054";
+
sha256 = "0afa0486a76305cac441b5cc80d5d4ccd82b20875da7c5119ecfe616cefef45f";
};
propagatedBuildInputs = [ flask markupsafe decorator itsdangerous six ];
+20
pkgs/development/python-modules/idna/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
}:
+
+
buildPythonPackage rec {
+
pname = "idna";
+
version = "2.6";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "2c6a5de3089009e3da7c5dde64a141dbc8551d5b7f6cf4ed7c2568d0cc520a8f";
+
};
+
+
meta = {
+
homepage = "http://github.com/kjd/idna/";
+
description = "Internationalized Domain Names in Applications (IDNA)";
+
license = lib.licenses.bsd3;
+
};
+
}
+2 -2
pkgs/development/python-modules/ipykernel/default.nix
···
buildPythonPackage rec {
pname = "ipykernel";
-
version = "4.6.1";
+
version = "4.7.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "2e1825aca4e2585b5adb7953ea16e53f53a62159ed49952a564b1e23507205db";
+
sha256 = "354986612a38f0555c43d5af2425e2a67506b63b313a0325e38904003b9d977b";
};
buildInputs = [ nose ] ++ lib.optional isPy27 mock;
+2 -2
pkgs/development/python-modules/ipywidgets/default.nix
···
buildPythonPackage rec {
pname = "ipywidgets";
-
version = "7.0.5";
+
version = "7.1.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "321be3dc48193130ba16e8080172bb5cd052eb65e3ad0ea7b5f80ff73e24bc54";
+
sha256 = "3e2be7dea4f97c9a4df71ef065cad9f2e420dd901127bf7cb690fb56d2b34ea3";
};
# Tests are not distributed
+27
pkgs/development/python-modules/iso8601/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
, pytest
+
}:
+
+
buildPythonPackage rec {
+
pname = "iso8601";
+
version = "0.1.12";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "49c4b20e1f38aa5cf109ddcd39647ac419f928512c869dc01d5c7098eddede82";
+
};
+
+
checkInputs = [ pytest ];
+
+
checkPhase = ''
+
py.test iso8601
+
'';
+
+
meta = {
+
homepage = https://bitbucket.org/micktwomey/pyiso8601/;
+
description = "Simple module to parse ISO 8601 dates";
+
maintainers = with lib.maintainers; [ phreedom ];
+
};
+
}
+28
pkgs/development/python-modules/jdcal/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
, pytest
+
}:
+
+
buildPythonPackage rec {
+
pname = "jdcal";
+
version = "1.3";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "b760160f8dc8cc51d17875c6b663fafe64be699e10ce34b6a95184b5aa0fdc9e";
+
};
+
+
checkInputs = [ pytest ];
+
+
checkPhase = ''
+
py.test
+
'';
+
+
meta = {
+
description = "A module containing functions for converting between Julian dates and calendar dates";
+
homepage = "https://github.com/phn/jdcal";
+
license = lib.licenses.bsd2;
+
maintainers = with lib.maintainers; [ lihop ];
+
};
+
}
+2 -2
pkgs/development/python-modules/jedi/default.nix
···
buildPythonPackage rec {
pname = "jedi";
-
version = "0.11.0";
+
version = "0.11.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "f6d5973573e76b1fd2ea75f6dcd6445d02d41ff3af5fc61b275b4e323d1dd396";
+
sha256 = "d6e799d04d1ade9459ed0f20de47c32f2285438956a677d083d3c98def59fa97";
};
postPatch = ''
+24
pkgs/development/python-modules/jellyfish/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
, pytest
+
, unicodecsv
+
}:
+
+
buildPythonPackage rec {
+
pname = "jellyfish";
+
version = "0.5.6";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "887a9a49d0caee913a883c3e7eb185f6260ebe2137562365be422d1316bd39c9";
+
};
+
+
checkInputs = [ pytest unicodecsv ];
+
+
meta = {
+
homepage = https://github.com/sunlightlabs/jellyfish;
+
description = "Approximate and phonetic matching of strings";
+
maintainers = with lib.maintainers; [ koral ];
+
};
+
}
+12 -8
pkgs/development/python-modules/jinja2/default.nix
···
-
{ stdenv, buildPythonPackage, fetchPypi
-
, markupsafe }:
+
{ stdenv, buildPythonPackage, fetchFromGitHub
+
, pytest, markupsafe }:
buildPythonPackage rec {
pname = "Jinja2";
version = "2.9.6";
name = "${pname}-${version}";
-
src = fetchPypi {
-
inherit pname version;
-
sha256 = "1zzrkywhziqffrzks14kzixz7nd4yh2vc0fb04a68vfd2ai03anx";
+
src = fetchFromGitHub {
+
owner = "pallets";
+
repo = "jinja";
+
rev = version;
+
sha256 = "1xxc5vdhz214aawmllv0fi4ak6d7zac662yb7gn1xfgqfz392pg5";
};
+
checkInputs = [ pytest ];
propagatedBuildInputs = [ markupsafe ];
-
# No tests included
-
doCheck = false;
+
checkPhase = ''
+
pytest -v
+
'';
meta = with stdenv.lib; {
homepage = http://jinja.pocoo.org/;
···
Jinja2 is a template engine written in pure Python. It provides a
Django inspired non-XML syntax but supports inline expressions and
an optional sandboxed environment.
-
'';
+
'';
platforms = platforms.all;
maintainers = with maintainers; [ pierron garbas sjourdois ];
};
+2 -2
pkgs/development/python-modules/jsbeautifier/default.nix
···
buildPythonApplication rec {
pname = "jsbeautifier";
-
version = "1.7.4";
+
version = "1.7.5";
name = "${pname}-${version}";
propagatedBuildInputs = [ six ];
···
src = fetchurl {
url = "mirror://pypi/j/jsbeautifier/${name}.tar.gz";
-
sha256 = "7fc14f279117a55a5e854602f6e8c1cb178c6d83f7cf75e2e9f50678fe11079e";
+
sha256 = "78eb1e5c8535484f0d0b588aca38da3fb5e0e34de2d1ab53c077e71c55757473";
};
meta = with stdenv.lib; {
+24
pkgs/development/python-modules/jsondiff/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
}:
+
+
buildPythonPackage rec {
+
pname = "jsondiff";
+
version = "1.1.1";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "2d0437782de9418efa34e694aa59f43d7adb1899bd9a793f063867ddba8f7893";
+
};
+
+
# No tests
+
doCheck = false;
+
+
meta = {
+
description = "Diff JSON and JSON-like structures in Python";
+
homepage = https://github.com/ZoomerAnalytics/jsondiff;
+
license = lib.licenses.mit;
+
};
+
+
}
+2 -2
pkgs/development/python-modules/jsonpatch/default.nix
···
buildPythonPackage rec {
pname = "jsonpatch";
-
version = "1.16";
+
version = "1.21";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "f025c28a08ce747429ee746bb21796c3b6417ec82288f8fe6514db7398f2af8a";
+
sha256 = "11f5ffdf543a83047a2f54ac28f8caad7f34724cb1ea26b27547fd974f1a2153";
};
# test files are missing
+23
pkgs/development/python-modules/jsonpickle/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
}:
+
+
buildPythonPackage rec {
+
pname = "jsonpickle";
+
version = "0.9.5";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "cc25dc79571d4ad7db59d05ddb7de0d76a8d598cf6136e1dbeaa9361ebcfe749";
+
};
+
+
doCheck = false;
+
+
meta = {
+
description = "Python library for serializing any arbitrary object graph into JSON";
+
homepage = http://jsonpickle.github.io/;
+
license = lib.licenses.bsd3;
+
};
+
+
}
+12 -6
pkgs/development/python-modules/jupyter_client/default.nix
···
{ lib
, buildPythonPackage
, fetchPypi
-
, nose
, traitlets
, jupyter_core
, pyzmq
, dateutil
, isPyPy
, py
+
, ipykernel
+
, ipython
+
, mock
+
, pytest
}:
buildPythonPackage rec {
pname = "jupyter_client";
-
version = "5.1.0";
-
name = "${pname}-${version}";
+
version = "5.2.0";
src = fetchPypi {
inherit pname version;
-
sha256 = "08756b021765c97bc5665390700a4255c2df31666ead8bff116b368d09912aba";
+
sha256 = "ca30cf1786047925ebacd6f6faa3a993efaa004b584f7d83bc8b807f7cd3f6bb";
};
-
buildInputs = [ nose ];
+
checkInputs = [ ipykernel ipython mock pytest ];
propagatedBuildInputs = [traitlets jupyter_core pyzmq dateutil] ++ lib.optional isPyPy py;
checkPhase = ''
-
nosetests -v
+
py.test
'';
+
+
patches = [
+
./wheel_workaround.patch
+
];
# Circular dependency with ipykernel
doCheck = false;
+13
pkgs/development/python-modules/jupyter_client/wheel_workaround.patch
···
+
diff --git a/setup.py b/setup.py
+
index 95d4774..ee72cbc 100644
+
--- a/setup.py
+
+++ b/setup.py
+
@@ -86,7 +86,7 @@ setup_args = dict(
+
extras_require = {
+
'test': ['ipykernel', 'ipython', 'mock'],
+
'test:python_version == "3.3"': ['pytest<3.3.0'],
+
- 'test:python_version >= "3.4" or python_version == "2.7"': ['pytest'],
+
+ 'test:(python_version >= "3.4" or python_version == "2.7")': ['pytest'],
+
},
+
cmdclass = {
+
'bdist_egg': bdist_egg if 'bdist_egg' in sys.argv else bdist_egg_disabled,
+3 -3
pkgs/development/python-modules/jupyter_core/default.nix
···
buildPythonPackage rec {
pname = "jupyter_core";
-
version = "4.3.0";
+
version = "4.4.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "a96b129e1641425bf057c3d46f4f44adce747a7d60107e8ad771045c36514d40";
+
sha256 = "ba70754aa680300306c699790128f6fbd8c306ee5927976cbe48adacf240c0b7";
};
-
buildInputs = [ pytest mock glibcLocales ];
+
checkInputs = [ pytest mock glibcLocales ];
propagatedBuildInputs = [ ipython traitlets ];
patches = [ ./tests_respect_pythonpath.patch ];
+20 -24
pkgs/development/python-modules/jupyter_core/tests_respect_pythonpath.patch
···
-
--- a/jupyter_core/tests/test_command.py 2016-09-13 15:22:49.000000000 +0200
-
+++ b/jupyter_core/tests/test_command.py 2017-10-23 12:49:27.489527705 +0200
-
@@ -113,7 +113,10 @@
-
witness = a.join(witness_cmd)
-
witness.write('#!%s\n%s\n' % (sys.executable, 'print("WITNESS ME")'))
-
witness.chmod(0o700)
-
- out = check_output([sys.executable, str(jupyter), 'witness'], env={'PATH': ''})
-
+ out = check_output(
-
+ [sys.executable, str(jupyter), 'witness'],
-
+ env={'PATH': '', 'PYTHONPATH': os.environ['PYTHONPATH']}
-
+ )
-
assert b'WITNESS' in out
-
-
-
@@ -136,5 +139,8 @@
-
witness_b.write('#!%s\n%s\n' % (sys.executable, 'print("WITNESS B")'))
-
witness_b.chmod(0o700)
-
-
- out = check_output([sys.executable, str(jupyter), 'witness'], env={'PATH': str(b)})
-
+ out = check_output(
-
+ [sys.executable, str(jupyter), 'witness'],
-
+ env={'PATH': str(b), 'PYTHONPATH': os.environ['PYTHONPATH']}
-
+ )
-
assert b'WITNESS A' in out
+
--- a/jupyter_core/tests/test_command.py
+
+++ b/jupyter_core/tests/test_command.py
+
@@ -131,7 +131,7 @@ def test_not_on_path(tmpdir):
+
witness_src = '#!%s\n%s\n' % (sys.executable, 'print("WITNESS ME")')
+
write_executable(witness, witness_src)
+
+
- env = {'PATH': ''}
+
+ env = {'PATH': '', 'PYTHONPATH': os.environ['PYTHONPATH']}
+
if 'SYSTEMROOT' in os.environ: # Windows http://bugs.python.org/issue20614
+
env[str('SYSTEMROOT')] = os.environ['SYSTEMROOT']
+
if sys.platform == 'win32':
+
@@ -157,7 +157,7 @@ def test_path_priority(tmpdir):
+
witness_b_src = '#!%s\n%s\n' % (sys.executable, 'print("WITNESS B")')
+
write_executable(witness_b, witness_b_src)
+
+
- env = {'PATH': str(b)}
+
+ env = {'PATH': str(b), 'PYTHONPATH': os.environ['PYTHONPATH']}
+
if 'SYSTEMROOT' in os.environ: # Windows http://bugs.python.org/issue20614
+
env[str('SYSTEMROOT')] = os.environ['SYSTEMROOT']
+
if sys.platform == 'win32':
+2 -2
pkgs/development/python-modules/keras/default.nix
···
buildPythonPackage rec {
pname = "Keras";
-
version = "2.1.1";
+
version = "2.1.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "f0ca2458c60d9711edf4291230b31795307ad3781cb6232ff4792b53c8f55123";
+
sha256 = "3ee56fc129d9d00b1916046e50056047836f97ada59df029e5661fb34442d5e8";
};
checkInputs = [
+2 -2
pkgs/development/python-modules/keyring/default.nix
···
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "keyring";
-
version = "10.4.0";
+
version = "10.5.1";
src = fetchPypi {
inherit pname version;
-
sha256 = "09iv50c14mdmdk7sjd6bb47yg7347gymh6r8c0q4gfnzs173y6lh";
+
sha256 = "f10674bb6ecbf82e2b713627c48ad0e84178e1c9d3dc1f0373261a0765402fb2";
};
buildInputs = [
+4 -4
pkgs/development/python-modules/ldap/default.nix
···
{ lib, writeText, buildPythonPackage, isPy3k, fetchPypi
-
, openldap, cyrus_sasl, openssl, pytest }:
+
, openldap, cyrus_sasl, openssl, pytest, pyasn1 }:
buildPythonPackage rec {
pname = "python-ldap";
-
version = "2.4.45";
+
version = "2.5.2";
name = "${pname}-${version}";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
-
sha256 = "824fde180a53772e23edc031c4dd64ac1af4a3eade78f00d9d510937d562f64e";
+
sha256 = "b8c134dfedaef0e6ff4a4b94277708dcadb758b448905a83b8946df077356ed2";
};
-
buildInputs = [ pytest ];
+
checkInputs = [ pytest pyasn1 ];
checkPhase = ''
# Needed by tests to setup a mockup ldap server.
+2 -3
pkgs/development/python-modules/ldap3/default.nix
···
{ stdenv, fetchPypi, buildPythonPackage, gssapi, pyasn1 }:
buildPythonPackage rec {
-
version = "2.3";
+
version = "2.4";
pname = "ldap3";
-
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "1b36lwil4iflk2ay8gi663abpnfm8id7qg4n3jkmmqbnc1sv6mn0";
+
sha256 = "888015f849eb33852583bbaf382f61593b03491cdac6098fd5d4d0252e0e7e66";
};
buildInputs = [ gssapi ];
+1 -1
pkgs/development/python-modules/libusb1/default.nix
···
postPatch = lib.optionalString stdenv.isLinux ''
substituteInPlace usb1/libusb1.py --replace \
"ctypes.util.find_library(base_name)" \
-
"'${libusb1}/lib/libusb${stdenv.hostPlatform.extensions.sharedLibrary}'"
+
"'${libusb1}/lib/libusb-1.0${stdenv.hostPlatform.extensions.sharedLibrary}'"
'';
buildInputs = [ libusb1 ];
+2 -2
pkgs/development/python-modules/line_profiler/default.nix
···
buildPythonPackage rec {
pname = "line_profiler";
-
version = "2.0";
+
version = "2.1.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "739f8ad0e4bcd0cb82e99afc09e00a0351234f6b3f0b1f7f0090a8a2fbbf8381";
+
sha256 = "efa66e9e3045aa7cb1dd4bf0106e07dec9f80bc781a993fbaf8162a36c20af5c";
};
buildInputs = [ cython ];
+2 -2
pkgs/development/python-modules/llfuse/default.nix
···
buildPythonPackage rec {
pname = "llfuse";
-
version = "1.0";
+
version = "1.3.2";
name = pname + "-" + version;
src = fetchurl {
url = "mirror://pypi/l/llfuse/${name}.tar.bz2";
-
sha256 = "1li7q04ljrvwharw4fblcbfhvk6s0l3lnv8yqb4c22lcgbkiqlps";
+
sha256 = "96252a286a2be25810904d969b330ef2a57c2b9c18c5b503bbfbae40feb2bb63";
};
nativeBuildInputs = [ pkgconfig ];
+6 -7
pkgs/development/python-modules/llvmlite/default.nix
···
{ stdenv
-
, fetchurl
+
, fetchPypi
, buildPythonPackage
, python
, llvm
···
buildPythonPackage rec {
pname = "llvmlite";
-
name = "${pname}-${version}";
-
version = "0.20.0";
+
version = "0.21.0";
disabled = isPyPy;
-
src = fetchurl {
-
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
-
sha256 = "b2f174848df16bb9195a07fec102110a06d018da736bd9b3570a54d44c797c29";
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "3a5dd0695fdfb9fd47464cd71791b84935bf9642e11f4811d57aa1f2da8cdaa8";
};
propagatedBuildInputs = [ llvm ] ++ stdenv.lib.optional (pythonOlder "3.4") enum34;
# Disable static linking
# https://github.com/numba/llvmlite/issues/93
-
patchPhase = ''
+
postPatch = ''
substituteInPlace ffi/Makefile.linux --replace "-static-libstdc++" ""
substituteInPlace llvmlite/tests/test_binding.py --replace "test_linux" "nope"
+27
pkgs/development/python-modules/lxml/default.nix
···
+
{ stdenv
+
, buildPythonPackage
+
, fetchPypi
+
, libxml2
+
, libxslt
+
}:
+
+
buildPythonPackage rec {
+
pname = "lxml";
+
version = "4.1.1";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "940caef1ec7c78e0c34b0f6b94fe42d0f2022915ffc78643d28538a5cfd0f40e";
+
};
+
+
buildInputs = [ libxml2 libxslt ];
+
+
hardeningDisable = stdenv.lib.optional stdenv.isDarwin "format";
+
+
meta = {
+
description = "Pythonic binding for the libxml2 and libxslt libraries";
+
homepage = http://lxml.de;
+
license = stdenv.lib.licenses.bsd3;
+
maintainers = with stdenv.lib.maintainers; [ sjourdois ];
+
};
+
}
+2 -2
pkgs/development/python-modules/marionette-harness/default.nix
···
buildPythonPackage rec {
pname = "marionette-harness";
-
version = "4.1.0";
+
version = "4.3.0";
name = "${pname}-${version}";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
-
sha256 = "20c188791e28d586c58acf86ff28cb704c4195a4da6eb10db7b8c6771e3f2983";
+
sha256 = "a98bb65a0c63f60d9e3d7ef21dabc9c29676917dc2ec0d46851a3ed694c820cc";
};
propagatedBuildInputs = [ mozprofile mozversion browsermob-proxy moztest
+28
pkgs/development/python-modules/markdown/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
, nose
+
, pyyaml
+
}:
+
+
buildPythonPackage rec {
+
pname = "Markdown";
+
version = "2.6.10";
+
+
src = fetchPypi {
+
extension = "zip";
+
inherit pname version;
+
sha256 = "cfa536d1ee8984007fcecc5a38a493ff05c174cb74cb2341dafd175e6bc30851";
+
};
+
+
# error: invalid command 'test'
+
# doCheck = false;
+
+
checkInputs = [ nose pyyaml ];
+
+
meta = {
+
description = "A Python implementation of John Gruber’s Markdown with Extension support";
+
homepage = https://github.com/Python-Markdown/markdown;
+
license = lib.licenses.bsd3;
+
};
+
}
+2 -2
pkgs/development/python-modules/marshmallow/default.nix
···
buildPythonPackage rec {
pname = "marshmallow";
name = "${pname}-${version}";
-
version = "2.14.0";
+
version = "2.15.0";
meta = {
homepage = "https://github.com/marshmallow-code/marshmallow";
···
src = fetchPypi {
inherit pname version;
-
sha256 = "09943a460026b9a61c3f4cedd0e5ccfed7cfce3271debd19e3f97df561088718";
+
sha256 = "d3f31fe7be2106b1d783cbd0765ef4e1c6615505514695f33082805f929dd584";
};
propagatedBuildInputs = [ dateutil simplejson ];
+2 -2
pkgs/development/python-modules/matplotlib/default.nix
···
assert enableQt -> pyqt4 != null;
buildPythonPackage rec {
-
version = "2.1.0";
+
version = "2.1.1";
pname = "matplotlib";
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://pypi/m/matplotlib/${name}.tar.gz";
-
sha256 = "4b5f16c9cefde553ea79975305dcaa67c8e13d927b6e55aa14b4a8d867e25387";
+
sha256 = "659f5e1aa0e0f01488c61eff47560c43b8be511c6a29293d7f3896ae17bd8b23";
};
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";
+2 -2
pkgs/development/python-modules/mistune/default.nix
···
buildPythonPackage rec {
pname = "mistune";
-
version = "0.7.4";
+
version = "0.8.3";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "0byj9jg9ly7karf5sb1aqcw7avaim9sxl8ws7yw7p1fibjgsy5w5";
+
sha256 = "bc10c33bfdcaa4e749b779f62f60d6e12f8215c46a292d05e486b869ae306619";
};
buildInputs = [ nose ];
+15 -5
pkgs/development/python-modules/moto/default.nix
···
-
{ stdenv, buildPythonPackage, fetchPypi, jinja2, werkzeug, flask, requests, pytz
-
, six, boto, httpretty, xmltodict, nose, sure, boto3, freezegun, dateutil }:
+
{ stdenv, buildPythonPackage, fetchPypi, jinja2, werkzeug, flask
+
, requests, pytz, backports_tempfile, cookies, jsondiff, botocore, aws-xray-sdk, docker
+
, six, boto, httpretty, xmltodict, nose, sure, boto3, freezegun, dateutil, mock, pyaml }:
buildPythonPackage rec {
pname = "moto";
-
version = "0.4.31";
-
name = "moto-${version}";
+
version = "1.1.25";
+
src = fetchPypi {
inherit pname version;
-
sha256 = "19s8hfz4mzzzdksa0ddlvrga5mxdaqahk89p5l29a5id8127shr8";
+
sha256 = "d427d6e1a81e926c2b6a071453807b05f4736d65068493e1f3055ac7ee24ea21";
};
propagatedBuildInputs = [
+
aws-xray-sdk
boto
+
boto3
dateutil
flask
httpretty
···
requests
six
xmltodict
+
mock
+
pyaml
+
backports_tempfile
+
cookies
+
jsondiff
+
botocore
+
docker
];
checkInputs = [ boto3 nose sure freezegun ];
+2 -3
pkgs/development/python-modules/mygpoclient/default.nix
···
{ stdenv, fetchFromGitHub, buildPythonPackage, nose, minimock }:
buildPythonPackage rec {
-
name = "mygpoclient-${version}";
+
pname = "mypgoclient";
version = "1.8";
src = fetchFromGitHub {
···
sha256 = "0aa28wc55x3rxa7clwfv5v5500ffyaq0vkxaa3v01y1r93dxkdvp";
};
-
buildInputs = [ nose minimock ];
+
checkInputs = [ nose minimock ];
checkPhase = ''
nosetests
···
'';
homepage = https://github.com/gpodder/mygpoclient;
license = with licenses; [ gpl3 ];
-
platforms = with platforms; linux ++ darwin;
maintainers = with maintainers; [ skeidel ];
};
}
+2 -2
pkgs/development/python-modules/nbxmpp/default.nix
···
buildPythonPackage rec {
pname = "nbxmpp";
-
version = "0.6.0";
+
version = "0.6.2";
src = fetchPypi {
inherit pname version;
-
sha256 = "0x495yb0abkdspyziw7dyyjwxx6ivnv5zznk92wa3mcind5s9757";
+
sha256 = "10bfb12b083a7509779298c31b4b61e2ed7e78d1960cbcfb3de8d38f3b830991";
};
meta = with stdenv.lib; {
+34
pkgs/development/python-modules/networkx/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
, nose
+
, decorator
+
, isPy36
+
, isPyPy
+
}:
+
+
buildPythonPackage rec {
+
pname = "networkx";
+
version = "1.11";
+
+
# Currently broken on PyPy.
+
# https://github.com/networkx/networkx/pull/1361
+
disabled = isPyPy;
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "1f74s56xb4ggixiq0vxyfxsfk8p20c7a099lpcf60izv1php03hd";
+
};
+
+
checkInputs = [ nose ];
+
propagatedBuildInputs = [ decorator ];
+
+
# 17 failures with 3.6 https://github.com/networkx/networkx/issues/2396#issuecomment-304437299
+
doCheck = !(isPy36);
+
+
meta = {
+
homepage = "https://networkx.github.io/";
+
description = "Library for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks";
+
license = lib.licenses.bsd3;
+
};
+
}
+2 -2
pkgs/development/python-modules/nilearn/default.nix
···
buildPythonPackage rec {
pname = "nilearn";
-
version = "0.3.1";
+
version = "0.4.0";
name = pname + "-" + version;
src = fetchPypi {
inherit pname version;
-
sha256 = "0kkarh5cdcd2czs0bf0s1g51qas84mfxfq0dzd7k5h5l0qr4zy06";
+
sha256 = "bb692254bde35d7e1d3d1534d9b3117810b35a744724625f150fbbc64d519c02";
};
checkPhase = "nosetests --exclude with_expand_user nilearn/tests";
+2 -2
pkgs/development/python-modules/notebook/default.nix
···
buildPythonPackage rec {
pname = "notebook";
-
version = "5.2.1";
+
version = "5.2.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "4ae5b81dd39b37cdd99dcffe83a5182c849947b92d46ac4d2b5093af2bb9f224";
+
sha256 = "7bb54fb61b9c5426bc116f840541b973431198e00ea2896122d05fc122dbbd67";
};
LC_ALL = "en_US.utf8";
+6 -7
pkgs/development/python-modules/numba/default.nix
···
{ stdenv
-
, fetchurl
+
, fetchPypi
, python
, buildPythonPackage
, isPy27
···
}:
buildPythonPackage rec {
-
version = "0.35.0";
+
version = "0.36.2";
pname = "numba";
-
name = "${pname}-${version}";
-
src = fetchurl {
-
url = "mirror://pypi/n/numba/${name}.tar.gz";
-
sha256 = "11564937757605bee590c5758c73cfe9fd6d569726b56d970316a6228971ecc3";
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "d61597808ce511e81b64e32da664f52beb7d947bf834dde8b8b60b29d205e5c2";
};
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";
···
# Copy test script into $out and run the test suite.
checkPhase = ''
-
python -m numba.runtests
+
${python.interpreter} -m numba.runtests
'';
# ImportError: cannot import name '_typeconv'
doCheck = false;
+4 -7
pkgs/development/python-modules/odfpy/default.nix
···
{ lib
, buildPythonPackage
, fetchPypi
+
, python
}:
buildPythonPackage rec {
pname = "odfpy";
-
version = "1.3.5";
+
version = "1.3.6";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "6f8163f8464868cff9421a058f25566e41d73c8f7e849c021b86630941b44366";
+
sha256 = "6bcaf3b23aa9e49ed8c8c177266539b211add4e02402748a994451482a10cb1b";
};
checkPhase = ''
-
pushd tests
-
rm runtests
-
for file in test*.py; do
-
python $file
-
done
+
${python.interpreter} -m unittest discover -s tests
'';
meta = {
+2 -2
pkgs/development/python-modules/pandas/default.nix
···
inherit (stdenv) isDarwin;
in buildPythonPackage rec {
pname = "pandas";
-
version = "0.21.1";
+
version = "0.22.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "c5f5cba88bf0659554c41c909e1f78139f6fce8fa9315a29a23692b38ff9788a";
+
sha256 = "44a94091dd71f05922eec661638ec1a35f26d573c119aa2fad964f10a2880e6c";
};
LC_ALL = "en_US.UTF-8";
+3 -4
pkgs/development/python-modules/parse-type/default.nix
···
, pytest, pytestrunner
, parse, six, enum34
}:
+
buildPythonPackage rec {
-
pname = "parse-type";
+
pname = "parse_type";
version = "0.3.4";
-
name = "${pname}-${version}";
src = fetchPypi {
-
inherit version;
-
pname = "parse_type";
+
inherit pname version;
sha256 = "3dd0b323bafcb8c25e000ce5589042a1c99cba9c3bec77b9f591e46bc9606147";
};
+35
pkgs/development/python-modules/partd/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
, pytest
+
, locket
+
, numpy
+
, pandas
+
, pyzmq
+
, toolz
+
}:
+
+
buildPythonPackage rec {
+
pname = "partd";
+
version = "0.3.8";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "67291f1c4827cde3e0148b3be5d69af64b6d6169feb9ba88f0a6cfe77089400f";
+
};
+
+
checkInputs = [ pytest ];
+
+
propagatedBuildInputs = [ locket numpy pandas pyzmq toolz ];
+
+
checkPhase = ''
+
rm partd/tests/test_zmq.py # requires network & fails
+
py.test
+
'';
+
+
meta = {
+
description = "Appendable key-value storage";
+
license = with lib.licenses; [ bsd3 ];
+
homepage = https://github.com/dask/partd/;
+
};
+
}
+2 -2
pkgs/development/python-modules/path.py/default.nix
···
buildPythonPackage rec {
pname = "path.py";
-
version = "10.4";
+
version = "10.5";
name = pname + "-" + version;
src = fetchPypi {
inherit pname version;
-
sha256 = "c63c75777c8a01f7b273c0065a8ea1e3ba0c9b369fa4a2601831e412b2c4881a";
+
sha256 = "63a7af08676668fd51750f111affbd38c1a13c61aba15c6665b16681771c79a8";
};
checkInputs = [ pytest pytestrunner ];
+4 -3
pkgs/development/python-modules/pathlib2/default.nix
···
, pythonOlder
, scandir
, glibcLocales
+
, mock
}:
if !(pythonOlder "3.4") then null else buildPythonPackage rec {
pname = "pathlib2";
-
version = "2.2.1";
+
version = "2.3.0";
src = fetchPypi {
inherit pname version;
-
sha256 = "ce9007df617ef6b7bd8a31cd2089ed0c1fed1f7c23cf2bf1ba140b3dd563175d";
+
sha256 = "d32550b75a818b289bd4c1f96b60c89957811da205afcceab75bc8b4857ea5b3";
};
propagatedBuildInputs = [ six ] ++ lib.optional (pythonOlder "3.5") scandir;
-
checkInputs = [ glibcLocales ];
+
checkInputs = [ glibcLocales ] ++ lib.optional (pythonOlder "3.3") mock;
preCheck = ''
export LC_ALL="en_US.UTF-8"
+2 -2
pkgs/development/python-modules/pexpect/default.nix
···
buildPythonPackage rec {
pname = "pexpect";
-
version = "4.3.0";
+
version = "4.3.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "1nfjmz81gsixv22dywidakm7pff3ly1i4yly950bfp8gz1r0iaq0";
+
sha256 = "8e287b171dbaf249d0b06b5f2e88cb7e694651d2d0b8c15bccb83170d3c55575";
};
# Wants to run pythonin a subprocess
+2 -2
pkgs/development/python-modules/phonenumbers/default.nix
···
buildPythonPackage rec {
pname = "phonenumbers";
-
version = "8.8.6";
+
version = "8.8.8";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "ab1fa853350dde91be672192b427169b29e3348c236e46ad7a757e4ac8163c8c";
+
sha256 = "ff2f492e49c212bb7185954efe09e68583a67daec586c02c49bc728c343d4eb0";
};
meta = {
+4 -2
pkgs/development/python-modules/pip-tools/default.nix
···
buildPythonPackage rec {
pname = "pip-tools";
-
version = "1.10.2";
+
version = "1.11.0";
name = pname + "-" + version;
src = fetchurl {
url = "mirror://pypi/p/pip-tools/${name}.tar.gz";
-
sha256 = "d381c7249eb48350cc49447cc106df3d90e9e806b13caaede602c1cd38f61b37";
+
sha256 = "ba427b68443466c389e3b0b0ef55f537ab39344190ea980dfebb333d0e6a50a3";
};
LC_ALL = "en_US.UTF-8";
···
"test_generate_hashes_all_platforms"
"test_generate_hashes_without_interfering_with_each_other"
"test_realistic_complex_sub_dependencies"
+
"test_generate_hashes_with_editable"
# Expect specific version of "six":
"test_editable_package"
"test_input_file_without_extension"
+
"test_locally_available_editable_package_is_not_archived_in_cache_dir"
];
checkPhase = ''
+27
pkgs/development/python-modules/plone-testing/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
, zope_testing
+
, setuptools
+
}:
+
+
buildPythonPackage rec {
+
pname = "plone.testing";
+
version = "5.1.1";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "2ca558a910b93355b760535b233518be3a06c58e46160487bf802b6f7cb1e511";
+
};
+
+
propagatedBuildInputs = [ setuptools zope_testing ];
+
+
# Huge amount of testing dependencies (including Zope2)
+
doCheck = false;
+
+
meta = {
+
description = "Testing infrastructure for Zope and Plone projects";
+
homepage = https://github.com/plone/plone.testing;
+
license = lib.licenses.bsd3;
+
};
+
}
+2 -2
pkgs/development/python-modules/plotly/default.nix
···
buildPythonPackage rec {
pname = "plotly";
-
version = "2.1.0";
+
version = "2.2.3";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "ff6899dc11907b1efb944f79f9583b2e30ba2964bb009145f3580bf30b4d9ee4";
+
sha256 = "dadd2263f1c0449b248fd3742a077d9594935921a9597529be76d6a841237ab0";
};
propagatedBuildInputs = [
+29
pkgs/development/python-modules/pluggy/default.nix
···
+
{ buildPythonPackage
+
, lib
+
, fetchPypi
+
, pytest
+
}:
+
+
buildPythonPackage rec {
+
pname = "pluggy";
+
version = "0.6.0";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "7f8ae7f5bdf75671a718d2daf0a64b7885f74510bcd98b1a0bb420eb9a9d0cff";
+
};
+
+
checkPhase = ''
+
py.test
+
'';
+
+
# To prevent infinite recursion with pytest
+
doCheck = false;
+
+
meta = {
+
description = "Plugin and hook calling mechanisms for Python";
+
homepage = "https://pypi.python.org/pypi/pluggy";
+
license = lib.licenses.mit;
+
maintainers = with lib.maintainers; [ jgeerds ];
+
};
+
}
+2 -2
pkgs/development/python-modules/plumbum/default.nix
···
buildPythonPackage rec {
pname = "plumbum";
-
version = "1.6.3";
+
version = "1.6.5";
name = "${pname}-${version}";
checkInputs = [ pytest ];
···
src = fetchPypi {
inherit pname version;
-
sha256 = "0249e708459f1b05627a7ca8787622c234e4db495a532acbbd1f1f17f28c7320";
+
sha256 = "d8abb059bb62beb6c99db08d3598167abaeeab53eaf218f91e74bae471a24bee";
};
}
+2 -2
pkgs/development/python-modules/psutil/default.nix
···
buildPythonPackage rec {
pname = "psutil";
-
version = "5.4.1";
+
version = "5.4.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "42e2de159e3c987435cb3b47d6f37035db190a1499f3af714ba7af5c379b6ba2";
+
sha256 = "00a1f9ff8d1e035fba7bfdd6977fa8ea7937afdb4477339e5df3dba78194fe11";
};
# No tests in archive
+2 -2
pkgs/development/python-modules/py/default.nix
···
{ stdenv, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "py";
-
version = "1.4.34";
+
version = "1.5.2";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "1qyd5z0hv8ymxy84v5vig3vps2fvhcf4bdlksb3r03h549fmhb8g";
+
sha256 = "ca18943e28235417756316bfada6cd96b23ce60dd532642690dcfdaba988a76d";
};
# Circular dependency on pytest
+27
pkgs/development/python-modules/pyaml/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
, pyyaml
+
, unidecode
+
, python
+
}:
+
+
buildPythonPackage rec {
+
pname = "pyaml";
+
version = "17.12.1";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "66623c52f34d83a2c0fc963e08e8b9d0c13d88404e3b43b1852ef71eda19afa3";
+
};
+
+
propagatedBuildInputs = [ pyyaml ];
+
+
checkInputs = [ unidecode ];
+
+
meta = {
+
description = "PyYAML-based module to produce pretty and readable YAML-serialized data";
+
homepage = https://github.com/mk-fg/pretty-yaml;
+
license = lib.licenses.wtfpl;
+
};
+
}
+2 -2
pkgs/development/python-modules/pyasn1-modules/default.nix
···
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "pyasn1-modules";
-
version = "0.1.5";
+
version = "0.2.1";
disabled = isPyPy;
src = fetchPypi {
inherit pname version;
-
sha256 = "1239h6h67vg0wazg2qgv6m3hdim2gs66pl89lbnayk55bbnkwc0x";
+
sha256 = "af00ea8f2022b6287dc375b2c70f31ab5af83989fc6fe9eacd4976ce26cd7ccc";
};
propagatedBuildInputs = [ pyasn1 ];
+2 -2
pkgs/development/python-modules/pyasn1/default.nix
···
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "pyasn1";
-
version = "0.3.4";
+
version = "0.4.2";
src = fetchPypi {
inherit pname version;
-
sha256 = "06hhy38jhwh95gpn8f03cr439273fsfsh4vhd5024r86nh5gyiir";
+
sha256 = "d258b0a71994f7770599835249cece1caef3c70def868c4915e6e5ca49b67d15";
};
meta = with stdenv.lib; {
+2 -2
pkgs/development/python-modules/pyblake2/default.nix
···
buildPythonPackage rec {
pname = "pyblake2";
-
version = "0.9.3";
+
version = "1.1.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "626448e1fe1cc01d2197118954bec9f158378577e12686d5b01979f7f0fa2212";
+
sha256 = "3a850036bf42053c74bfc52c063323ca78e40ba1f326b01777da5750a143631a";
};
# requires setting up sphinx doctest
+7 -6
pkgs/development/python-modules/pycangjie/default.nix
···
{ stdenv, fetchurl, bash, autoconf, automake, libtool, pkgconfig, libcangjie
-
, sqlite, python, cython
+
, sqlite, buildPythonPackage, cython
}:
-
stdenv.mkDerivation rec {
-
name = "${python.libPrefix}-pycangjie-${version}";
+
let
+
rev = "361bb413203fd43bab624d98edf6f7d20ce6bfd3";
+
in buildPythonPackage rec {
+
pname = "pycangjie";
version = "1.3_rev_${rev}";
-
rev = "361bb413203fd43bab624d98edf6f7d20ce6bfd3";
+
format = "other";
src = fetchurl {
-
name = "${name}.tar.gz";
url = "https://github.com/Cangjians/pycangjie/archive/${rev}.tar.gz";
sha256 = "12yi09nyffmn4va7lzk4irw349qzlbxgsnb89dh15cnw0xmrin05";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
-
autoconf automake libtool libcangjie sqlite python cython
+
autoconf automake libtool libcangjie sqlite cython
];
preConfigure = ''
+2 -2
pkgs/development/python-modules/pychromecast/default.nix
···
buildPythonPackage rec {
pname = "PyChromecast";
-
version = "0.8.1";
+
version = "1.0.3";
name = pname + "-" + version;
src = fetchurl {
url = "mirror://pypi/p/pychromecast/${name}.tar.gz";
-
sha256 = "05rlr2hjng0xg2a9k9vwmrlvd7vy9sjhxxfl96kx25xynlkq6yq6";
+
sha256 = "714a9e03e6a258081e3b6296ed15592e015facbe38bbe60819cca6f04c599f25";
};
propagatedBuildInputs = [ requests six zeroconf protobuf ];
+3 -4
pkgs/development/python-modules/pycollada/default.nix
···
buildPythonPackage rec {
pname = "pycollada";
-
version = "0.5";
-
name = "${pname}-${version}";
+
version = "0.6";
src = fetchPypi {
inherit pname version;
-
sha256 = "1g96maw2c25l4i3ks51784h33zf7s18vrn6iyz4ca34iy4sl7yq9";
+
sha256 = "fcd6f38fd981e350f9ec754d9671834017accd600e967d6d299a6cfdae5ba4f4";
};
-
buildInputs = [ numpy ] ++ (if isPy3k then [dateutil] else [dateutil_1_5]);
+
propagatedBuildInputs = [ numpy dateutil ];
# Some tests fail because they refer to test data files that don't exist
# (upstream packaging issue)
+2 -2
pkgs/development/python-modules/pydot/default.nix
···
buildPythonPackage rec {
pname = "pydot";
-
version = "1.2.3";
+
version = "1.2.4";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "edb5d3f249f97fbd9c4bb16959e61bc32ecf40eee1a9f6d27abe8d01c0a73502";
+
sha256 = "92d2e2d15531d00710f2d6fb5540d2acabc5399d464f2f20d5d21073af241eb6";
};
checkInputs = [ chardet ];
# No tests in archive
+2 -2
pkgs/development/python-modules/pygit2/default.nix
···
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "pygit2";
-
version = "0.26.0";
+
version = "0.26.3";
src = fetchPypi {
inherit pname version;
-
sha256 = "1cbc488ra3kg7r3qky17ms0szi3cda2d96qfkv1l9djsy9hnvw57";
+
sha256 = "29baa530d6fcbf7cca6a75cf9c78fb88613ca81afb39c62fe492f226f6b61800";
};
preConfigure = lib.optionalString stdenv.isDarwin ''
+6 -5
pkgs/development/python-modules/pyglet/default.nix
···
{ stdenv, buildPythonPackage, fetchPypi
-
, mesa, xorg, freetype, fontconfig}:
+
, mesa, xorg, freetype, fontconfig, future}:
buildPythonPackage rec {
-
version = "1.2.4";
+
version = "1.3.0";
pname = "pyglet";
-
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "9f62ffbbcf2b202d084bf158685e77d28b8f4f5f2738f4c5e63a947a07503445";
+
sha256 = "640a8f8e3d7bf8dbb551fa707f14021f619932990ab1401c48ba9dbcc6c2242c";
};
-
patchPhase = let
+
postPatch = let
libs = [ mesa xorg.libX11 freetype fontconfig ];
paths = builtins.concatStringsSep "," (map (l: "\"${l}/lib\"") libs);
in "sed -i -e 's|directories\.extend.*lib[^]]*|&,${paths}|' pyglet/lib.py";
doCheck = false;
+
+
propagatedBuildInputs = [ future ];
meta = with stdenv.lib; {
homepage = "http://www.pyglet.org/";
+2 -2
pkgs/development/python-modules/pylast/default.nix
···
buildPythonPackage rec {
pname = "pylast";
-
version = "1.9.0";
+
version = "2.0.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "ae1c4105cbe704d9ac10ba57ac4c26bc576cc33978f1b578101b20c6a2360ca4";
+
sha256 = "8e4d4962aa12d67bd357e1aa596a146b2e97afd943b5c9257e555014d13b3065";
};
propagatedBuildInputs = [ certifi six ];
+2 -2
pkgs/development/python-modules/pylint/default.nix
···
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "pylint";
-
version = "1.7.4";
+
version = "1.8.1";
src = fetchPypi {
inherit pname version;
-
sha256 = "1f65b3815c3bf7524b845711d54c4242e4057dd93826586620239ecdfe591fb1";
+
sha256 = "3035e44e37cd09919e9edad5573af01d7c6b9c52a0ebb4781185ae7ab690458b";
};
buildInputs = [ pytest pytestrunner mccabe configparser backports_functools_lru_cache ];
+2 -2
pkgs/development/python-modules/pymongo/default.nix
···
buildPythonPackage rec {
pname = "pymongo";
-
version = "3.5.1";
+
version = "3.6.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "0939bl3brrklvccicck62gs3zd7i9aysz13c8pxc3gpk2hsdj878";
+
sha256 = "c6de26d1e171cdc449745b82f1addbc873d105b8e7335097da991c0fc664a4a8";
};
doCheck = false;
+2 -2
pkgs/development/python-modules/pyobjc/default.nix
···
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "pyobjc";
-
version = "4.0b1";
+
version = "4.1";
# Gives "No matching distribution found for
# pyobjc-framework-Collaboration==4.0b1 (from pyobjc==4.0b1)"
···
src = fetchPypi {
inherit pname version;
-
sha256 = "16bng6960c1m57nnh1l09ycnyimrqzw9mx9pnyjxn5zzm5kalr37";
+
sha256 = "287db11f912ac7d05c4907dbf6e74abaa475e36368f7c92e05aca2886a94562c";
};
meta = {
+9 -4
pkgs/development/python-modules/pyopencl/default.nix
···
buildPythonPackage rec {
pname = "pyopencl";
-
version = "2017.2";
-
name = "${pname}-${version}";
+
version = "2017.2.2";
-
buildInputs = [ pytest opencl-headers ocl-icd ];
+
checkInputs = [ pytest ];
+
buildInputs = [ opencl-headers ocl-icd ];
propagatedBuildInputs = [ numpy cffi pytools decorator appdirs six Mako ];
src = fetchPypi {
inherit pname version;
-
sha256 = "039b689a58eb98e27a577ac086210deae959f40d657487f3199d2d217c270ff9";
+
sha256 = "d2f7b04d2e819c6e90d6366b7712a7452a39fba218e51b11b02c85ab07fd2983";
};
+
+
# py.test is not needed during runtime, so remove it from `install_requires`
+
postPatch = ''
+
substituteInPlace setup.py --replace "pytest>=2" ""
+
'';
# gcc: error: pygpu_language_opencl.cpp: No such file or directory
doCheck = false;
+1 -1
pkgs/development/python-modules/pysc2/default.nix
···
}:
buildPythonPackage rec {
+
pname = "PySC2";
version = "1.2";
-
name = "PySC2-${version}";
src = fetchFromGitHub {
owner = "deepmind";
+2 -2
pkgs/development/python-modules/pysoundfile/default.nix
···
buildPythonPackage rec {
pname = "PySoundFile";
-
version = "0.8.1";
+
version = "0.9.0.post1";
name = pname + "-" + version;
src = fetchPypi {
inherit pname version;
-
sha256 = "72c3e23b7c9998460ec78176084ea101e3439596ab29df476bc8508708df84df";
+
sha256 = "43dd46a2afc0484c26930a7e59eef9365cee81bce7a4aadc5699f788f60d32c3";
};
checkInputs = [ pytest ];
+2 -2
pkgs/development/python-modules/pytest-localserver/default.nix
···
buildPythonPackage rec {
pname = "pytest-localserver";
name = "${pname}-${version}";
-
version = "0.3.7";
+
version = "0.4.1";
src = fetchPypi {
inherit pname version;
-
sha256 = "1c11hn61n06ms0wmw6536vs5k4k9hlndxsb3p170nva56a9dfa6q";
+
sha256 = "a72af60a1ec8f73668a7884c86baf1fbe48394573cb4fa36709887217736c021";
};
propagatedBuildInputs = [ werkzeug ];
+2 -2
pkgs/development/python-modules/pytest-xdist/default.nix
···
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "pytest-xdist";
-
version = "1.20.1";
+
version = "1.21.0";
src = fetchPypi {
inherit pname version;
-
sha256 = "433e82f9b34986a4e4b2be38c60e82cca3ac64b7e1b38f4d8e3e118292939712";
+
sha256 = "0b8622435e3c0650a8d5a07b73a7f9c4f79b52d7ed060536a6041f0da423ba8e";
};
buildInputs = [ pytest setuptools_scm pytest-forked];
+27
pkgs/development/python-modules/pytest/3_2.nix
···
+
{ stdenv, buildPythonPackage, fetchPypi, isPy26, argparse, hypothesis, py
+
, setuptools_scm, setuptools
+
}:
+
buildPythonPackage rec {
+
version = "3.2.5";
+
pname = "pytest";
+
+
preCheck = ''
+
# don't test bash builtins
+
rm testing/test_argcomplete.py
+
'';
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "6d5bd4f7113b444c55a3bbb5c738a3dd80d43563d063fc42dcb0aaefbdd78b81";
+
};
+
+
checkInputs = [ hypothesis ];
+
buildInputs = [ setuptools_scm ];
+
propagatedBuildInputs = [ py setuptools ]
+
++ (stdenv.lib.optional isPy26 argparse);
+
+
meta = with stdenv.lib; {
+
maintainers = with maintainers; [ domenkozar lovek323 madjar lsix ];
+
platforms = platforms.unix;
+
};
+
}
+7 -5
pkgs/development/python-modules/pytest/default.nix
···
-
{ stdenv, buildPythonPackage, fetchPypi, isPy26, argparse, hypothesis, py
-
, setuptools_scm, setuptools
+
{ stdenv, buildPythonPackage, fetchPypi, isPy26, argparse, attrs, hypothesis, py
+
, setuptools_scm, setuptools, six, pluggy, funcsigs, isPy3k
}:
buildPythonPackage rec {
-
version = "3.2.5";
+
version = "3.3.1";
pname = "pytest";
preCheck = ''
···
src = fetchPypi {
inherit pname version;
-
sha256 = "6d5bd4f7113b444c55a3bbb5c738a3dd80d43563d063fc42dcb0aaefbdd78b81";
+
sha256 = "cf8436dc59d8695346fcd3ab296de46425ecab00d64096cebe79fb51ecb2eb93";
};
checkInputs = [ hypothesis ];
buildInputs = [ setuptools_scm ];
-
propagatedBuildInputs = [ py setuptools ]
+
propagatedBuildInputs = [ attrs py setuptools six pluggy ]
+
++ (stdenv.lib.optional (!isPy3k) funcsigs)
++ (stdenv.lib.optional isPy26 argparse);
meta = with stdenv.lib; {
maintainers = with maintainers; [ domenkozar lovek323 madjar lsix ];
platforms = platforms.unix;
+
description = "Framework for writing tests";
};
}
+14 -14
pkgs/development/python-modules/python-fuse/default.nix
···
}:
buildPythonPackage rec {
-
baseName = "fuse";
-
version = "0.2.1";
-
name = "${baseName}-${version}";
-
disabled = isPy3k;
+
pname = "fuse";
+
version = "0.2.1";
-
src = fetchurl {
-
url = "mirror://sourceforge/fuse/fuse-python-${version}.tar.gz";
-
sha256 = "06rmp1ap6flh64m81j0n3a357ij2vj9zwcvvw0p31y6hz1id9shi";
-
};
+
disabled = isPy3k;
-
nativeBuildInputs = [ pkgconfig ];
-
buildInputs = [ fuse ];
+
src = fetchurl {
+
url = "mirror://sourceforge/fuse/fuse-python-${version}.tar.gz";
+
sha256 = "06rmp1ap6flh64m81j0n3a357ij2vj9zwcvvw0p31y6hz1id9shi";
+
};
-
meta = {
-
description = "Python bindings for FUSE";
-
license = lib.licenses.lgpl21;
-
};
+
nativeBuildInputs = [ pkgconfig ];
+
buildInputs = [ fuse ];
+
+
meta = {
+
description = "Python bindings for FUSE";
+
license = lib.licenses.lgpl21;
+
};
}
+10 -6
pkgs/development/python-modules/pytoml/default.nix
···
-
{ stdenv, buildPythonPackage, fetchgit
-
, python }:
+
{ stdenv
+
, buildPythonPackage
+
, fetchgit
+
, python
+
}:
buildPythonPackage rec {
pname = "pytoml";
-
version = "0.1.11";
-
name = "${pname}-${version}";
+
version = "0.1.14";
-
checkPhase = "${python.interpreter} test/test.py";
+
checkPhase = ''
+
${python.interpreter} test/test.py
+
'';
# fetchgit used to ensure test submodule is available
src = fetchgit {
url = "${meta.homepage}.git";
rev = "refs/tags/v${version}";
-
sha256 = "1jiw04zk9ccynr8kb1vqh9r1p2kh0al7g7b1f94911iazg7dgs9j";
+
sha256 = "1ip71yqxnyi4jhw5x1q7a0za61ndhpfh0vbx08jfv0w4ayng6rgv";
};
meta = with stdenv.lib; {
+39
pkgs/development/python-modules/pytools/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
, decorator
+
, appdirs
+
, six
+
, numpy
+
, pytest
+
}:
+
+
buildPythonPackage rec {
+
pname = "pytools";
+
version = "2017.6";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "80f1bba4469d473c1b3969bc8e188c03bcc94d35807a889ceebbfc78e3208115";
+
};
+
+
checkInputs = [ pytest ];
+
+
propagatedBuildInputs = [
+
decorator
+
appdirs
+
six
+
numpy
+
];
+
+
checkPhase = ''
+
py.test -k 'not test_persistent_dict'
+
'';
+
+
meta = {
+
homepage = https://github.com/inducer/pytools/;
+
description = "Miscellaneous Python lifesavers.";
+
license = lib.licenses.mit;
+
maintainers = with lib.maintainers; [ artuuge ];
+
};
+
}
+1 -1
pkgs/development/python-modules/pywbem/default.nix
···
}:
buildPythonPackage rec {
-
name = "pywbem-${version}";
+
pname = "pywbem";
version = "0.10.0";
src = fetchFromGitHub {
+2 -2
pkgs/development/python-modules/pywinrm/default.nix
···
buildPythonPackage rec {
pname = "pywinrm";
-
version = "0.2.2";
+
version = "0.3.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "06xc0mbqf718vmsp0fq0rb64nql66l5w2x23bmqnzl6nzc0gfc1h";
+
sha256 = "799fc3e33fec8684443adf5778860388289102ea4fa1458f1bf307d167855573";
};
checkInputs = [ mock pytest ];
+23
pkgs/development/python-modules/regex/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
}:
+
+
+
buildPythonPackage rec {
+
pname = "regex";
+
version = "2017.12.12";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "ee069308c2757e565cc2b6f417ba5288e76cfe4c1764b6826063f4fbd53219d7";
+
};
+
+
meta = {
+
description = "Alternative regular expression module, to replace re";
+
homepage = "https://bitbucket.org/mrabarnett/mrab-regex";
+
license = lib.licenses.psfl;
+
platforms = lib.platforms.linux;
+
maintainers = with lib.maintainers; [ abbradar ];
+
};
+
}
+2 -2
pkgs/development/python-modules/relatorio/default.nix
···
buildPythonPackage rec {
pname = "relatorio";
name = "${pname}-${version}";
-
version = "0.7.1";
+
version = "0.8.0";
src = fetchurl {
url = "mirror://pypi/r/relatorio/${name}.tar.gz";
-
sha256 = "744f1e39313f037a0ab52a154338ece151d83e5442a9278db1f8ce450ce6c2cd";
+
sha256 = "bddf85d029c5c85a0f976d73907e14e4c3093065fe8527170c91abf0218546d9";
};
propagatedBuildInputs = [
genshi
+2 -2
pkgs/development/python-modules/restview/default.nix
···
buildPythonPackage rec {
pname = "restview";
name = "${pname}-${version}";
-
version = "2.7.0";
+
version = "2.8.0";
src = fetchPypi {
inherit pname version;
-
sha256 = "e7842100f3de179c68cfe7c2cf56c61509cd6068bc6dd58ab42c0ade5d5f97ec";
+
sha256 = "5f6f1523228eab3269f59dd03ac560f7d370cd81df6fdbcb4914b5e6bd896a11";
};
propagatedBuildInputs = [ docutils readme_renderer pygments ];
+2 -2
pkgs/development/python-modules/robomachine/default.nix
···
buildPythonPackage rec {
pname = "robomachine";
-
version = "0.6";
+
version = "0.8.0";
name = pname + "-" + version;
src = fetchurl {
url = "mirror://pypi/R/RoboMachine/RoboMachine-0.6.tar.gz";
-
sha256 = "6c9a9bae7bffa272b2a09b05df06c29a3a776542c70cae8041a8975a061d2e54";
+
sha256 = "242cfd9be0f7591138eaeba03c9c190f894ce045e1767ab7b90eca330259fc45";
};
propagatedBuildInputs = [ pyparsing argparse robotframework ];
+7 -5
pkgs/development/python-modules/ropper/default.nix
···
, fetchPypi
, capstone
, filebytes
-
, pytest }:
+
, pytest
+
}:
buildPythonApplication rec {
-
name = "${pname}-${version}";
pname = "ropper";
-
version = "1.10.10";
+
version = "1.11.2";
src = fetchPypi {
inherit pname version;
-
sha256 = "1676e07947a19df9d17002307a7555c2647a4224d6f2869949e8fc4bd18f2e87";
+
sha256 = "2183feedfe8b01a27301eee07383b481ece01b2319bdba3afebe33e19ca14aa3";
};
# XXX tests rely on user-writeable /dev/shm to obtain process locks and return PermissionError otherwise
# workaround: sudo chmod 777 /dev/shm
checkPhase = ''
py.test testcases
'';
-
buildInputs = [pytest];
+
doCheck = false; # Tests not included in archive
+
+
checkInputs = [pytest];
propagatedBuildInputs = [ capstone filebytes ];
meta = with stdenv.lib; {
homepage = https://scoding.de/ropper/;
+2 -2
pkgs/development/python-modules/scrapy/default.nix
···
testfixtures, pillow, six, twisted, w3lib, lxml, queuelib, pyopenssl,
service-identity, parsel, pydispatcher, cssselect, lib }:
buildPythonPackage rec {
-
version = "1.4.0";
+
version = "1.5.0";
pname = "Scrapy";
name = "${pname}-${version}";
···
src = fetchurl {
url = "mirror://pypi/S/Scrapy/${name}.tar.gz";
-
sha256 = "04a08f027eef5d271342a016439533c81ba46f14bfcf230fecf602e99beaf233";
+
sha256 = "31a0bf05d43198afaf3acfb9b4fb0c09c1d7d7ff641e58c66e36117f26c4b755";
};
meta = with lib; {
+2 -2
pkgs/development/python-modules/seaborn/default.nix
···
buildPythonPackage rec {
pname = "seaborn";
-
version = "0.7.1";
+
version = "0.8.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "0pawrqc3mxpwd5g9pvi9gba02637bh5c8ldpp8izfwpfn52469zs";
+
sha256 = "6702978b903d0284446e935916b980dfebae4063c18ad8eb6e8f9e76d0257eae";
};
checkInputs = [ nose ];
+2 -2
pkgs/development/python-modules/serpy/default.nix
···
buildPythonPackage rec {
pname = "serpy";
name = "${pname}-${version}";
-
version = "0.2.0";
+
version = "0.3.1";
meta = {
description = "ridiculously fast object serialization";
···
src = fetchPypi {
inherit pname version;
-
sha256 = "7e62e242321b208362966d5ab32b45df93b1cb88da4ce6260277da060b4f7475";
+
sha256 = "3772b2a9923fbf674000ff51abebf6ea8f0fca0a2cfcbfa0d63ff118193d1ec5";
};
buildInputs = [ flake8 py pyflakes tox ];
+2 -2
pkgs/development/python-modules/setuptools/default.nix
···
# Should use buildPythonPackage here somehow
stdenv.mkDerivation rec {
pname = "setuptools";
-
version = "38.2.3";
+
version = "38.2.5";
name = "${python.libPrefix}-${pname}-${version}";
src = fetchPypi {
inherit pname version;
extension = "zip";
-
sha256 = "124jlg72bbk2xxv5wqbwcl4h5cdslslzk92rxjxiplg79l499hv3";
+
sha256 = "b080f276cc868670540b2c03cee06cc14d2faf9da7bec0f15058d1b402c94507";
};
buildInputs = [ python wrapPython unzip ];
+2 -2
pkgs/development/python-modules/shapely/default.nix
···
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "Shapely";
-
version = "1.6.2.post1";
+
version = "1.6.3";
src = fetchPypi {
inherit pname version;
-
sha256 = "07fba518e76b3276558f62a5829bdfa476f790cdef752383ccdc8c66b04b0899";
+
sha256 = "14152f111c7711fc6756fd538ec12fc8cdde7419f869b244922f71f61b2a6c6b";
};
buildInputs = [ geos glibcLocales cython ];
+2 -2
pkgs/development/python-modules/simplejson/default.nix
···
buildPythonPackage rec {
pname = "simplejson";
-
version = "3.11.1";
+
version = "3.13.2";
name = "${pname}-${version}";
doCheck = !stdenv.isDarwin;
src = fetchPypi {
inherit pname version;
-
sha256 = "01a22d49ddd9a168b136f26cac87d9a335660ce07aa5c630b8e3607d6f4325e7";
+
sha256 = "4c4ecf20e054716cc1e5a81cadc44d3f4027108d8dd0861d8b1e3bd7a32d4f0a";
};
meta = {
+3
pkgs/development/python-modules/six/default.nix
···
py.test test_six.py
'';
+
# To prevent infinite recursion with pytest
+
doCheck = false;
+
meta = {
description = "A Python 2 and 3 compatibility library";
homepage = https://pypi.python.org/pypi/six/;
+2 -2
pkgs/development/python-modules/smart_open/default.nix
···
buildPythonPackage rec {
pname = "smart_open";
name = "${pname}-${version}";
-
version = "1.5.3";
+
version = "1.5.6";
src = fetchPypi {
inherit pname version;
-
sha256 = "0m5j71f7f36s17v4mwv0bxg4azknvcy82rbjp28b4vifrjd6dm7s";
+
sha256 = "8fd2de1c359bd0074bd6d334a5b9820ae1c5b6ba563970b95052bace4b71baeb";
};
propagatedBuildInputs = [ boto bz2file requests responses moto ];
+3 -14
pkgs/development/python-modules/spacy/default.nix
···
, ftfy
, thinc
, pip
+
, regex
}:
-
let
-
enableDebugging = true;
-
regexLocked = buildPythonPackage rec {
-
name = "${pname}-${version}";
-
pname = "regex";
-
version = "2017.04.05";
-
src = fetchPypi {
-
inherit pname version;
-
sha256 = "0c95gf3jzz8mv52lkgq0h7sbasjwvdhghm4s0phmy5k9sr78f4fq";
-
};
-
};
-
in buildPythonPackage rec {
+
buildPythonPackage rec {
pname = "spacy";
version = "1.8.2";
-
name = pname + "-" + version;
src = fetchFromGitHub {
owner = "explosion";
···
ujson
dill
requests
-
regexLocked
+
regex
ftfy
thinc
pytest
+30
pkgs/development/python-modules/splinter/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
, selenium
+
, flask
+
, coverage
+
}:
+
+
buildPythonPackage rec {
+
pname = "splinter";
+
version = "0.7.7";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "f97119f84d339067169451d56043f37f6b0a504a17a7ac6e48c91c012be72af6";
+
};
+
+
propagatedBuildInputs = [ selenium ];
+
+
checkInputs = [ flask coverage ];
+
+
# No tests included
+
doCheck = false;
+
+
meta = {
+
description = "Browser abstraction for web acceptance testing";
+
homepage = https://github.com/cobrateam/splinter;
+
license = lib.licenses.bsd3;
+
};
+
}
+2 -2
pkgs/development/python-modules/sqlalchemy/default.nix
···
buildPythonPackage rec {
pname = "SQLAlchemy";
name = "${pname}-${version}";
-
version = "1.1.15";
+
version = "1.2.0";
src = fetchPypi {
inherit pname version;
-
sha256 = "8b79a5ed91cdcb5abe97b0045664c55c140aec09e5dd5c01303e23de5fe7a95a";
+
sha256 = "7dda3e0b1b12215e3bb05368d1abbf7d747112a43738e0a4e6deb466b83fd88e";
};
checkInputs = [
+2 -2
pkgs/development/python-modules/sqlmap/default.nix
···
buildPythonPackage rec {
pname = "sqlmap";
-
version = "1.1.11";
+
version = "1.1.12";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "bb5297df9cd97316b3c7ca64f8e31cae5cc6b94c015afd84c546877f1f77d6e4";
+
sha256 = "86a1078ceb1e79f891633c7e4c7b07949fd9135a0e4c0738abd5111e2e6b96c0";
};
# No tests in archive
+2 -2
pkgs/development/python-modules/stevedore/default.nix
···
buildPythonPackage rec {
pname = "stevedore";
-
version = "1.27.1";
+
version = "1.28.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "236468dae36707069e8b3bdb455e9f1be090b1e6b937f4ac0c56a538d6f50be0";
+
sha256 = "f1c7518e7b160336040fee272174f1f7b29a46febb3632502a8f2055f973d60b";
};
doCheck = false;
+2 -2
pkgs/development/python-modules/stripe/default.nix
···
buildPythonPackage rec {
pname = "stripe";
-
version = "1.70.0";
+
version = "1.77.0";
name = "${pname}-${version}";
# Tests require network connectivity and there's no easy way to disable
···
src = fetchPypi {
inherit pname version;
-
sha256 = "ee77103d2d18fe6369f23c40c93067425c5ed67e08b1a7678e681217e8fa8062";
+
sha256 = "6503851d2309dd9c1307e3f0a1cb33ac1427fee25d38ecba1f8bf73a0d74defc";
};
buildInputs = [ unittest2 mock ];
+32
pkgs/development/python-modules/structlog/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
, pytest
+
, pretend
+
, freezegun
+
, simplejson
+
}:
+
+
buildPythonPackage rec {
+
pname = "structlog";
+
version = "17.2.0";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "6980001045abd235fa12582222627c19b89109e58b85eb77d5a5abc778df6e20";
+
};
+
+
checkInputs = [ pytest pretend freezegun ];
+
propagatedBuildInputs = [ simplejson ];
+
+
checkPhase = ''
+
rm tests/test_twisted.py*
+
py.test
+
'';
+
+
meta = {
+
description = "Painless structural logging";
+
homepage = http://www.structlog.org/;
+
license = lib.licenses.asl20;
+
};
+
}
+2 -2
pkgs/development/python-modules/supervise_api/default.nix
···
buildPythonPackage rec {
pname = "supervise_api";
-
version = "0.1.5";
+
version = "0.2.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "1pqqlw80cjdgrlpvdmydkyhsrr4s531mn6bfkshm68j9gk4kq6px";
+
sha256 = "e6982633a924cb5192d2291d25b366ff311876a31b0f5961471b39d87397ef5b";
};
propagatedBuildInputs = [ supervise ];
+2 -2
pkgs/development/python-modules/sybil/default.nix
···
buildPythonApplication rec {
pname = "sybil";
-
version = "1.0.5";
+
version = "1.0.6";
src = fetchPypi {
inherit pname version;
-
sha256 = "0x8qd5p5qliv8wmdglda2iy3f70i4jg8zqyk8yhklm5hrxm8jdl6";
+
sha256 = "5bd7dd09eff68cbec9062e6950124fadfaaccbc0f50b23c1037f4d70ae86f0f1";
};
checkInputs = [ pytest nose ];
+2 -2
pkgs/development/python-modules/tabulate/default.nix
···
}:
buildPythonPackage rec {
-
version = "0.7.7";
+
version = "0.8.2";
pname = "tabulate";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "83a0b8e17c09f012090a50e1e97ae897300a72b35e0c86c0b53d3bd2ae86d8c6";
+
sha256 = "e4ca13f26d0a6be2a2915428dc21e732f1e44dad7f76d7030b2ef1ec251cf7f2";
};
checkInputs = [ nose ];
+8 -4
pkgs/development/python-modules/testtools/default.nix
···
, pyrsistent
}:
-
# testtools 2.0.0 and up has a circular run-time dependency on futures
+
buildPythonPackage rec {
pname = "testtools";
-
version = "1.9.0";
-
name = "${pname}-${version}";
+
version = "2.3.0";
# Python 2 only judging from SyntaxError
# disabled = isPy3k;
src = fetchPypi {
inherit pname version;
-
sha256 = "b46eec2ad3da6e83d53f2b0eca9a8debb687b4f71343a074f83a16bbdb3c0644";
+
sha256 = "5827ec6cf8233e0f29f51025addd713ca010061204fdea77484a2934690a0559";
};
propagatedBuildInputs = [ pbr python_mimeparse extras lxml unittest2 pyrsistent ];
···
# No tests in archive
doCheck = false;
+
+
# testtools 2.0.0 and up has a circular run-time dependency on futures
+
postPatch = ''
+
substituteInPlace requirements.txt --replace "fixtures>=1.3.0" ""
+
'';
meta = {
description = "A set of extensions to the Python standard library's unit testing framework";
+2 -2
pkgs/development/python-modules/textacy/default.nix
···
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "textacy";
-
version = "0.4.1";
+
version = "0.5.0";
src = fetchPypi {
inherit pname version;
-
sha256 = "04wf3a7zgzz83nmgkh488wkl50zm9yfdpv3sl12sm2zj685plqcz";
+
sha256 = "6fc4603fd52c386081b063ef7aa15ca77e5e937a3064b197359659fccfdeb406";
};
disabled = isPy27; # 2.7 requires backports.csv
+20
pkgs/development/python-modules/texttable/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
}:
+
+
buildPythonPackage rec {
+
pname = "texttable";
+
version = "1.1.1";
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "44674d1d470a9fc264c4d1eba44b74463ca0066d7b954453dd5a4f8057779c9c";
+
};
+
+
meta = {
+
description = "A module to generate a formatted text table, using ASCII characters";
+
homepage = http://foutaise.org/code/;
+
license = lib.licenses.lgpl2;
+
};
+
}
+2 -2
pkgs/development/python-modules/thespian/default.nix
···
{ stdenv, fetchPypi, buildPythonPackage, lib }:
buildPythonPackage rec {
-
version = "3.8.3";
+
version = "3.9.0";
pname = "thespian";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
extension = "zip";
-
sha256 = "0vvwsh3waxd5ldrayr86kdcshv07bp361fl7p16g9i044vklwly4";
+
sha256 = "e698e3c5369d7b06de5c4ce7b877ea65991c99f7b0fabd09f29e91bc981c7d22";
};
# Do not run the test suite: it takes a long type and uses
+2 -2
pkgs/development/python-modules/toolz/default.nix
···
buildPythonPackage rec{
pname = "toolz";
-
version = "0.8.2";
+
version = "0.9.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "0l3czks4xy37i8099waxk2fdz5g0k1dwys2mkhlxc0b0886cj4sa";
+
sha256 = "929f0a7ea7f61c178bd951bdae93920515d3fbdbafc8e6caf82d752b9b3b31c9";
};
checkInputs = [ nose ];
+24
pkgs/development/python-modules/tox/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
, py
+
, virtualenv
+
, pluggy
+
, setuptools_scm
+
, six
+
}:
+
+
buildPythonPackage rec {
+
pname = "tox";
+
version = "2.9.1";
+
+
buildInputs = [ setuptools_scm ];
+
propagatedBuildInputs = [ py virtualenv pluggy six ];
+
+
doCheck = false;
+
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "752f5ec561c6c08c5ecb167d3b20f4f4ffc158c0ab78855701a75f5cef05f4b8";
+
};
+
}
+2 -2
pkgs/development/python-modules/tqdm/default.nix
···
buildPythonPackage rec {
pname = "tqdm";
-
version = "4.19.4";
+
version = "4.19.5";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "7ca803c2ea268c6bdb541e2dac74a3af23cf4bf7b4132a6a78926d255f8c8df1";
+
sha256 = "df32e6f127dc0ccbc675eadb33f749abbcb8f174c5cb9ec49c0cdb73aa737377";
};
buildInputs = [ nose coverage glibcLocales flake8 ];
+2 -2
pkgs/development/python-modules/tzlocal/default.nix
···
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "tzlocal";
-
version = "1.4";
+
version = "1.5.1";
propagatedBuildInputs = [ pytz ];
src = fetchPypi {
inherit pname version;
-
sha256 = "0n9hw4kqblyc0avzwi26rqmvyk9impb608rvy11qifmigy7r18h5";
+
sha256 = "4ebeb848845ac898da6519b9b31879cf13b6626f7184c496037b818e238f2c4e";
};
# test fail (timezone test fail)
+2 -2
pkgs/development/python-modules/vowpalwabbit/default.nix
···
pythonPackages.buildPythonPackage rec {
pname = "vowpalwabbit";
name = "${pname}-${version}";
-
version = "8.3.2";
+
version = "8.4.0";
src = fetchurl{
url = "mirror://pypi/v/vowpalwabbit/${name}.tar.gz";
-
sha256 = "0qm8rlrs2gfgamqnpx4lapxakpzgh0yh3kp1lbd7lhb0r748m3k7";
+
sha256 = "abd22bfae99fb102cf8a6aec49e8c278cb7317d3a7eb60f70cd102be9c336fd5";
};
# vw tries to write some explicit things to home
# python installed: The directory '/homeless-shelter/.cache/pip/http'
+2 -2
pkgs/development/python-modules/websockets/default.nix
···
let
pname = "websockets";
-
version = "3.4";
+
version = "4.0.1";
in buildPythonPackage rec {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
-
sha256 = "43e5b9f51dd0000a4c6f646e2ade0c886bd14a784ffac08b9e079bd17a63bcc5";
+
sha256 = "da4d4fbe059b0453e726d6d993760065d69b823a27efc3040402a6fcfe6a1ed9";
};
disabled = pythonOlder "3.3";
+8 -6
pkgs/development/python-modules/werkzeug/default.nix
···
{ stdenv, buildPythonPackage, fetchPypi
-
, itsdangerous
+
, itsdangerous, hypothesis
, pytest, requests, glibcLocales }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "Werkzeug";
-
version = "0.12.2";
+
version = "0.14.1";
src = fetchPypi {
inherit pname version;
-
sha256 = "09mv4cya3lywkn4mi3qrqmjgwiw99kdk03dk912j8da6ny3pnflh";
+
sha256 = "c3fd7a7d41976d9f44db327260e263132466836cef6f91512889ed60ad26557c";
};
-
LC_ALL = "en_US.UTF-8";
+
propagatedBuildInputs = [ itsdangerous ];
+
checkInputs = [ pytest requests glibcLocales hypothesis ];
-
propagatedBuildInputs = [ itsdangerous ];
-
buildInputs = [ pytest requests glibcLocales ];
+
checkPhase = ''
+
LC_ALL="en_US.UTF-8" py.test
+
'';
meta = with stdenv.lib; {
homepage = http://werkzeug.pocoo.org/;
+2 -2
pkgs/development/python-modules/widgetsnbextension/default.nix
···
buildPythonPackage rec {
pname = "widgetsnbextension";
name = "${pname}-${version}";
-
version = "3.0.8";
+
version = "3.1.0";
src = fetchPypi {
inherit pname version;
-
sha256 = "a57e29e733b989e68fdd0f3d6927a3691763b39792591d573b95a89a5a12ec15";
+
sha256 = "67fc28c3b9fede955d69bccbd92784e3f0c6d0dee3a71532cd3367c257feb178";
};
propagatedBuildInputs = [ notebook ];
+2 -2
pkgs/development/python-modules/ws4py/default.nix
···
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "ws4py";
-
version = "0.4.2";
+
version = "0.4.3";
src = fetchPypi {
inherit pname version;
-
sha256 = "0zr3254ky6r7q15l3dhdczfa8i723055zdkqssjifsgcwvirriks";
+
sha256 = "ee12b58384bab8bfdcd1c76dcd6852047aec163af17175fc0f73e255d107dd7a";
};
checkInputs = [ pytest mock git ];
+6 -13
pkgs/development/python-modules/xarray/default.nix
···
buildPythonPackage rec {
pname = "xarray";
-
version = "0.9.6";
-
name = "${pname}-${version}";
+
version = "0.10.0";
src = fetchPypi {
inherit pname version;
-
sha256 = "f649a41d43b5a6c64bdcbd57e994932656b689f9593a86dd0be95778a2b47494";
+
sha256 = "af1449e8df84a6eb09eb1d56c1dc5ac7f24a9563d4f2b9391ff364dc0c62344c";
};
-
# Temporary patch until next release (later than 0.9.6) to fix
-
# a broken test case.
-
patches = [
-
(fetchurl {
-
url = "https://github.com/pydata/xarray/commit/726c6a3638ecf95889c541d84e892a106c2f2f92.patch";
-
sha256 = "1i2hsj5v5qlvqfj48vyn9931yndsf4k4wrk3qpqpywh32s7r007b";
-
})
-
];
-
-
buildInputs = [ pytest ];
+
checkInputs = [ pytest ];
propagatedBuildInputs = [numpy pandas];
checkPhase = ''
py.test $out/${python.sitePackages}
'';
+
+
# There always seem to be broken tests...
+
doCheck = false;
meta = {
description = "N-D labeled arrays and datasets in Python";
+2 -2
pkgs/development/python-modules/yapf/default.nix
···
buildPythonPackage rec {
pname = "yapf";
-
version = "0.19.0";
+
version = "0.20.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
-
sha256 = "701b076a4916e3cfbba345e0297dcd54a02fd0fdcae1f43346f8a043c3bbd052";
+
sha256 = "ff28f8839a9a105854a099026a33f4cbec8bd933554bfed658aec359bfc88ae8";
};
meta = with stdenv.lib; {
+9 -10
pkgs/development/python-modules/yarl/default.nix
···
{ lib
-
, fetchurl
+
, fetchPypi
, buildPythonPackage
, multidict
, pytestrunner
, pytest
+
, idna
}:
-
let
+
buildPythonPackage rec {
pname = "yarl";
-
version = "0.13.0";
-
in buildPythonPackage rec {
+
version = "0.17.0";
name = "${pname}-${version}";
-
src = fetchurl {
-
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
-
sha256 = "25fe681a982f2cec567df8abac7cbd2ac27016e4aec89193945cab0643bfdb42";
+
src = fetchPypi {
+
inherit pname version;
+
sha256 = "2e4e1aec650ad80e73e7063941cd8aadb48e72487ec680a093ad364cc61efe64";
};
-
buildInputs = [ pytest pytestrunner ];
-
propagatedBuildInputs = [ multidict ];
-
+
checkInputs = [ pytest pytestrunner ];
+
propagatedBuildInputs = [ multidict idna ];
meta = {
description = "Yet another URL library";
+27
pkgs/development/python-modules/zope_copy/default.nix
···
+
{ lib
+
, buildPythonPackage
+
, fetchPypi
+
, zope_interface
+
, zope_location
+
, zope_schema
+
}:
+
+
+
buildPythonPackage rec {
+
pname = "zope_copy";
+
version = "4.0.2";
+
+
src = fetchPypi {
+
inherit pname version;
+
extension = "zip";
+
sha256 = "eb2a95866df1377741876a3ee62d8600e80089e6246e1a235e86791b29534457";
+
};
+
+
propagatedBuildInputs = [ zope_interface ];
+
+
checkInputs = [ zope_location zope_schema ];
+
+
meta = {
+
maintainers = with lib.maintainers; [ domenkozar ];
+
};
+
}
+3 -3
pkgs/development/r-modules/default.nix
···
rmatio = [ pkgs.zlib.dev ];
Rmpfr = [ pkgs.gmp pkgs.mpfr.dev ];
Rmpi = [ pkgs.openmpi ];
-
RMySQL = [ pkgs.zlib pkgs.mysql.lib pkgs.mariadb pkgs.openssl.dev ];
+
RMySQL = [ pkgs.zlib pkgs.mysql.connector-c pkgs.openssl.dev ];
RNetCDF = [ pkgs.netcdf pkgs.udunits ];
RODBCext = [ pkgs.libiodbc ];
RODBC = [ pkgs.libiodbc ];
···
});
RMySQL = old.RMySQL.overrideDerivation (attrs: {
-
MYSQL_DIR="${pkgs.mysql.lib}";
+
MYSQL_DIR="${pkgs.mysql.connector-c}";
preConfigure = ''
patchShebangs configure
-
'';
+
'';
});
devEMF = old.devEMF.overrideDerivation (attrs: {
+3 -3
pkgs/development/ruby-modules/gem-config/default.nix
···
gio2 = attrs: {
nativeBuildInputs = [ pkgconfig ];
-
buildInputs = [ gtk2 pcre ];
+
buildInputs = [ gtk2 pcre gobjectIntrospection ];
};
gitlab-markup = attrs: { meta.priority = 1; };
···
};
mysql = attrs: {
-
buildInputs = [ mysql.lib zlib openssl ];
+
buildInputs = [ mysql.connector-c zlib openssl ];
};
mysql2 = attrs: {
-
buildInputs = [ mysql.lib zlib openssl ];
+
buildInputs = [ mysql.connector-c zlib openssl ];
};
ncursesw = attrs: {
+1 -5
pkgs/development/tools/build-managers/cmake/setup-hook.sh
···
configurePhase=cmakeConfigurePhase
fi
-
if [ -n "$crossConfig" ]; then
-
crossEnvHooks+=(addCMakeParams)
-
else
-
envHooks+=(addCMakeParams)
-
fi
+
addEnvHooks "$targetOffset" addCMakeParams
makeCmakeFindLibs(){
isystem_seen=
+2 -2
pkgs/development/tools/database/shmig/default.nix
···
{ stdenv, fetchFromGitHub
, withMySQL ? false, withPSQL ? false, withSQLite ? false
-
, mariadb, postgresql, sqlite, gawk, which
+
, mysql, postgresql, sqlite, gawk, which
, lib
}:
···
patchShebangs .
substituteInPlace shmig \
-
--replace "\`which mysql\`" "${lib.optionalString withMySQL "${mariadb}/bin/mysql"}" \
+
--replace "\`which mysql\`" "${lib.optionalString withMySQL "${mysql.client}/bin/mysql"}" \
--replace "\`which psql\`" "${lib.optionalString withPSQL "${postgresql}/bin/psql"}" \
--replace "\`which sqlite3\`" "${lib.optionalString withSQLite "${sqlite}/bin/sqlite3"}" \
--replace "awk" "${gawk}/bin/awk" \
+1 -1
pkgs/development/tools/misc/automake/setup-hook.sh
···
addToSearchPathWithCustomDelimiter : ACLOCAL_PATH $1/share/aclocal
}
-
envHooks+=(addAclocals)
+
addEnvHooks "$hostOffset" addAclocals
+14
pkgs/development/tools/misc/binutils/always-search-rpath.patch
···
+
diff --git a/ld/genscripts.sh b/ld/genscripts.sh
+
index b6940d376d..0feb1adfd0 100755
+
--- a/ld/genscripts.sh
+
+++ b/ld/genscripts.sh
+
@@ -125,6 +125,9 @@ if test "x$NATIVE" = "xyes" ; then
+
USE_LIBPATH=yes
+
fi
+
+
+# TODO: why is this needed?
+
+USE_LIBPATH=yes
+
+
+
# Set the library search path, for libraries named by -lfoo.
+
# If LIB_PATH is defined (e.g., by Makefile) and non-empty, it is used.
+
# Otherwise, the default is set here.
+11 -6
pkgs/development/tools/misc/binutils/default.nix
···
# elf32-littlearm-vxworks in favor of the first.
# https://github.com/NixOS/nixpkgs/pull/30484#issuecomment-345472766
./disambiguate-arm-targets.patch
+
+
# For some reason bfd ld doesn't search DT_RPATH when cross-compiling. It's
+
# not clear why this behavior was decided upon but it has the unfortunate
+
# consequence that the linker will fail to find transitive dependencies of
+
# shared objects when cross-compiling. Consequently, we are forced to
+
# override this behavior, forcing ld to search DT_RPATH even when
+
# cross-compiling.
+
./always-search-rpath.patch
];
outputs = [ "out" "info" "man" ];
-
nativeBuildInputs = [ bison buildPackages.stdenv.cc ];
+
depsBuildBuild = [ buildPackages.stdenv.cc ];
+
nativeBuildInputs = [ bison ];
buildInputs = [ zlib ];
inherit noSysDirs;
···
else "-static-libgcc";
# TODO(@Ericson2314): Always pass "--target" and always targetPrefix.
-
configurePlatforms =
-
# TODO(@Ericson2314): Figure out what's going wrong with Arm
-
if hostPlatform == targetPlatform && targetPlatform.isArm
-
then []
-
else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
+
configurePlatforms = [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
configureFlags = [
"--enable-targets=all" "--enable-64-bit-bfd"
+2 -2
pkgs/development/tools/misc/d-feet/default.nix
···
{ stdenv, pkgconfig, fetchurl, itstool, intltool, libxml2, glib, gtk3
-
, python3Packages, wrapGAppsHook, gnome3, libwnck3 }:
+
, python3Packages, wrapGAppsHook, gnome3, libwnck3, gobjectIntrospection }:
let
version = "${major}.13";
···
};
nativeBuildInputs = [ pkgconfig itstool intltool wrapGAppsHook libxml2 ];
-
buildInputs = [ glib gtk3 gnome3.defaultIconTheme libwnck3 ];
+
buildInputs = [ glib gtk3 gnome3.defaultIconTheme libwnck3 gobjectIntrospection ];
propagatedBuildInputs = with python3Packages; [ pygobject3 pep8 ];
+1 -5
pkgs/development/tools/misc/pkgconfig/setup-hook.sh
···
addToSearchPath PKG_CONFIG_PATH $1/share/pkgconfig
}
-
if test -n "$crossConfig"; then
-
crossEnvHooks+=(addPkgConfigPath)
-
else
-
envHooks+=(addPkgConfigPath)
-
fi
+
addEnvHooks "$targetOffset" addPkgConfigPath
+3 -3
pkgs/development/tools/misc/sysbench/default.nix
···
-
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, vim, libmysql,
-
libaio }:
+
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, vim, mysql
+
, libaio }:
stdenv.mkDerivation rec {
name = "sysbench-1.0.6";
nativeBuildInputs = [ autoreconfHook pkgconfig ];
-
buildInputs = [ vim libmysql libaio ];
+
buildInputs = [ vim mysql.connector-c libaio ];
src = fetchFromGitHub {
owner = "akopytov";
+1 -1
pkgs/development/tools/ocaml/findlib/default.nix
···
fi
}
-
envHooks+=(addOCamlPath)
+
addEnvHooks "$targetOffset" addOCamlPath
'';
meta = {
+3 -1
pkgs/development/tools/tora/default.nix
···
nativeBuildInputs = [ cmake extra-cmake-modules makeWrapper ];
buildInputs = [
-
boost doxygen graphviz loki mysql openssl postgresql qscintillaLib qtbase
+
boost doxygen graphviz loki mysql.connector-c openssl postgresql qscintillaLib qtbase
];
preConfigure = ''
···
"-lecpg"
"-lssl"
];
+
+
NIX_CFLAGS_COMPILE = [ "-L${mysql.connector-c}/lib/mysql" "-I${mysql.connector-c}/include/mysql" ];
postFixup = ''
wrapProgram $out/bin/tora \
+1 -1
pkgs/development/web/nodejs/setup-hook.sh
···
addToSearchPath NODE_PATH $1/lib/node_modules
}
-
envHooks+=(addNodePath)
+
addEnvHooks "$hostOffset" addNodePath
+3 -3
pkgs/games/zod/default.nix
···
{ fetchurl, stdenv, unrar, unzip, SDL, SDL_image, SDL_ttf, SDL_mixer
-
, libmysql, makeWrapper }:
+
, mysql, makeWrapper }:
stdenv.mkDerivation rec {
name = "zod-engine-2011-03-18";
···
sourceRoot=`pwd`/src
'';
-
buildInputs = [ unrar unzip SDL SDL_image SDL_ttf SDL_mixer libmysql makeWrapper ];
+
buildInputs = [ unrar unzip SDL SDL_image SDL_ttf SDL_mixer mysql.connector-c makeWrapper ];
-
NIX_LDFLAGS = "-L${stdenv.lib.getLib libmysql}/lib/mysql";
+
NIX_LDFLAGS = "-L${mysql.connector-c}/lib/mysql";
installPhase = ''
mkdir -p $out/bin $out/share/zod
+1 -1
pkgs/os-specific/darwin/apple-sdk/framework-setup-hook.sh
···
export NIX_COREFOUNDATION_RPATH=/System/Library/Frameworks
}
-
envHooks+=(useSystemCoreFoundationFramework)
+
addEnvHooks "$hostOffset" useSystemCoreFoundationFramework
+1 -1
pkgs/os-specific/darwin/apple-sdk/security-setup-hook.sh
···
fi
}
-
envHooks+=(noDeprecatedDeclarations)
+
addEnvHooks "$hostOffset" noDeprecatedDeclarations
+1 -1
pkgs/os-specific/darwin/apple-source-releases/libresolv/default.nix
···
cc -I. -c res_send.c
cc -I. -c res_sendsigned.c
cc -I. -c res_update.c
-
cc -dynamiclib -install_name $out/lib/libresolv.9.dylib -o libresolv.9.dylib *.o
+
cc -dynamiclib -install_name $out/lib/libresolv.9.dylib -current_version 1.0.0 -compatibility_version 1.0.0 -o libresolv.9.dylib *.o
'';
installPhase = ''
+1 -1
pkgs/os-specific/linux/busybox/default.nix
···
makeFlagsArray+=("CC=${stdenv.cc.targetPrefix}gcc -isystem ${musl}/include -B${musl}/lib -L${musl}/lib")
'';
-
nativeBuildInputs = lib.optional (hostPlatform != buildPlatform) buildPackages.stdenv.cc;
+
depsBuildBuild = [ buildPackages.stdenv.cc ];
buildInputs = lib.optionals (enableStatic && !useMusl) [ stdenv.cc.libc stdenv.cc.libc.static ];
+2 -1
pkgs/os-specific/linux/kernel-headers/4.4.nix
···
# It may look odd that we use `stdenvNoCC`, and yet explicit depend on a cc.
# We do this so we have a build->build, not build->host, C compiler.
-
nativeBuildInputs = [ buildPackages.stdenv.cc perl ];
+
depsBuildBuild = [ buildPackages.stdenv.cc ];
+
nativeBuildInputs = [ perl ];
extraIncludeDirs = lib.optional hostPlatform.isPowerPC ["ppc"];
+7 -2
pkgs/servers/clickhouse/default.nix
···
-
{ stdenv, fetchFromGitHub, cmake, libtool, boost, double-conversion, gperftools, icu, libmysql, lz4, openssl, poco, re2, rdkafka, readline, sparsehash, unixODBC, zookeeper_mt, zstd }:
+
{ stdenv, fetchFromGitHub, cmake, libtool, boost, double-conversion, gperftools
+
, icu, mysql, lz4, openssl, poco, re2, rdkafka, readline, sparsehash, unixODBC
+
, zookeeper_mt, zstd }:
stdenv.mkDerivation rec {
name = "clickhouse-${version}";
···
nativeBuildInputs = [ cmake libtool ];
-
buildInputs = [ boost double-conversion gperftools icu libmysql lz4 openssl poco re2 rdkafka readline sparsehash unixODBC zookeeper_mt zstd ];
+
buildInputs = [
+
boost double-conversion gperftools icu mysql.connector-c lz4 openssl poco
+
re2 rdkafka readline sparsehash unixODBC zookeeper_mt zstd
+
];
cmakeFlags = [ "-DENABLE_TESTS=OFF" "-DUNBUNDLED=ON" "-DUSE_STATIC_LIBRARIES=OFF" ];
+1 -1
pkgs/servers/computing/slurm/default.nix
···
nativeBuildInputs = [ pkgconfig libtool ];
buildInputs = [
-
curl python munge perl pam openssl mysql.lib ncurses gtk2 lua hwloc numactl
+
curl python munge perl pam openssl mysql.connector-c ncurses gtk2 lua hwloc numactl
];
configureFlags =
+2 -2
pkgs/servers/dns/powerdns/default.nix
···
{ stdenv, fetchurl, pkgconfig,
boost, libyamlcpp, libsodium, sqlite, protobuf,
-
libmysql, postgresql, lua, openldap, geoip, curl
+
mysql57, postgresql, lua, openldap, geoip, curl
}:
stdenv.mkDerivation rec {
···
};
nativeBuildInputs = [ pkgconfig ];
-
buildInputs = [ boost libmysql postgresql lua openldap sqlite protobuf geoip libyamlcpp libsodium curl ];
+
buildInputs = [ boost mysql57.connector-c postgresql lua openldap sqlite protobuf geoip libyamlcpp libsodium curl ];
# nix destroy with-modules arguments, when using configureFlags
preConfigure = ''
+3 -3
pkgs/servers/freeradius/default.nix
···
, withMemcached ? false
, hiredis
, withRedis ? false
-
, libmysql
+
, mysql
, withMysql ? false
, json_c
, withJson ? false
···
assert withCap -> libcap != null;
assert withMemcached -> libmemcached != null;
assert withRedis -> hiredis != null;
-
assert withMysql -> libmysql != null;
+
assert withMysql -> mysql != null;
assert withYubikey -> libyubikey != null;
assert withCollectd -> collectd != null;
···
++ optional withCap libcap
++ optional withMemcached libmemcached
++ optional withRedis hiredis
-
++ optional withMysql libmysql
+
++ optional withMysql mysql.connector-c
++ optional withJson json_c
++ optional withYubikey libyubikey
++ optional withCollectd collectd;
-55
pkgs/servers/games/ghost-one/default.nix
···
-
{ stdenv, fetchurl, unzip, gmp, zlib, bzip2, boost, mysql }:
-
stdenv.mkDerivation rec {
-
-
name = "ghost-one-${version}";
-
version = "1.7.265";
-
-
src = fetchurl {
-
url = "http://www.maxdevlon.com/ghost/ghostone${version}.zip";
-
sha256 = "1sm2ca3lcdr4vjg7v94d8zhqz8cdp44rg8yinzzwkgsr0hj74fv2";
-
};
-
-
buildInputs = [ unzip gmp zlib bzip2 boost mysql.client ];
-
-
patchPhase = ''
-
substituteInPlace ghost/Makefile --replace "/usr/local/lib/mysql" \
-
"${stdenv.lib.getLib mysql.client}/lib/mysql"
-
'';
-
-
buildPhase = ''
-
cd bncsutil/src/bncsutil
-
make
-
cd ../../../StormLib/stormlib/
-
make
-
mkdir -p $out/lib
-
cd ../..
-
# cp bncsutil/src/bncsutil/libbncutil.so $out/lib
-
# cp StormLib/stormlib/libStorm.so $out/lib
-
cd ghost
-
make
-
cd ..
-
'';
-
-
installPhase = ''
-
mkdir -p $out/lib
-
cp bncsutil/src/bncsutil/libbncsutil.so $out/lib
-
cp StormLib/stormlib/libStorm.so $out/lib
-
-
mkdir -p $out/bin
-
cp ghost/ghost++ $out/bin
-
-
mkdir -p $out/share/ghost-one/languages
-
cp -r mapcfgs $out/share/ghost-one
-
cp Languages/*.cfg $out/share/ghost-one/languages
-
cp language.cfg $out/share/ghost-one/languages/English.cfg
-
cp ip-to-country.csv $out/share/ghost-one/
-
'';
-
-
meta = with stdenv.lib; {
-
homepage = http://www.codelain.com/forum/;
-
description = "A Warcraft III: Reign of Chaos and Warcraft III: The Frozen Throne game hosting bot";
-
license = licenses.asl20;
-
maintainers = [ maintainers.phreedom ];
-
broken = true; # can't even get downloaded
-
};
-
}
+1 -1
pkgs/servers/http/lighttpd/default.nix
···
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ pcre libxml2 zlib attr bzip2 which file openssl ]
++ stdenv.lib.optional enableMagnet lua5_1
-
++ stdenv.lib.optional enableMysql mysql.lib
+
++ stdenv.lib.optional enableMysql mysql.connector-c
++ stdenv.lib.optional enableLdap openldap;
configureFlags = [ "--with-openssl" ]
+2 -2
pkgs/servers/mail/dovecot/default.nix
···
, bzip2, zlib, inotify-tools, pam, libcap
, clucene_core_2, icu, openldap
# Auth modules
-
, withMySQL ? false, libmysql
+
, withMySQL ? false, mysql
, withPgSQL ? false, postgresql
, withSQLite ? true, sqlite
}:
···
nativeBuildInputs = [ perl pkgconfig ];
buildInputs = [ openssl bzip2 zlib clucene_core_2 icu openldap ]
++ lib.optionals (stdenv.isLinux) [ systemd pam libcap inotify-tools ]
-
++ lib.optional withMySQL libmysql
+
++ lib.optional withMySQL mysql.connector-c
++ lib.optional withPgSQL postgresql
++ lib.optional withSQLite sqlite;
+3 -3
pkgs/servers/mail/dspam/default.nix
···
{ stdenv, lib, fetchurl, makeWrapper
, gawk, gnused, gnugrep, coreutils, which
, perl, NetSMTP
-
, withMySQL ? false, zlib, libmysql
+
, withMySQL ? false, zlib, mysql57
, withPgSQL ? false, postgresql
, withSQLite ? false, sqlite
, withDB ? false, db
···
};
buildInputs = [ perl ]
-
++ lib.optionals withMySQL [ zlib libmysql ]
+
++ lib.optionals withMySQL [ zlib mysql57.connector-c ]
++ lib.optional withPgSQL postgresql
++ lib.optional withSQLite sqlite
++ lib.optional withDB db;
···
"--enable-preferences-extension"
"--enable-long-usernames"
"--enable-external-lookup"
-
] ++ lib.optional withMySQL "--with-mysql-includes=${lib.getDev libmysql}/include/mysql"
+
] ++ lib.optional withMySQL "--with-mysql-includes=${mysql57.connector-c}/include/mysql"
++ lib.optional withPgSQL "--with-pgsql-libraries=${postgresql.lib}/lib";
# Lots of things are hardwired to paths like sysconfdir. That's why we install with both "prefix" and "DESTDIR"
+6 -4
pkgs/servers/mail/opensmtpd/extras.nix
···
{ stdenv, fetchurl, openssl, libevent, libasr,
-
python2, pkgconfig, lua5, perl, mariadb, postgresql, sqlite, hiredis }:
+
python2, pkgconfig, lua5, perl, mysql, postgresql, sqlite, hiredis }:
+
stdenv.mkDerivation rec {
name = "opensmtpd-extras-${version}";
version = "5.7.1";
···
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl libevent
-
libasr python2 lua5 perl mariadb.client postgresql sqlite hiredis ];
+
libasr python2 lua5 perl mysql.connector-c postgresql sqlite hiredis ];
configureFlags = [
"--sysconfdir=/etc"
···
"--with-perl=${perl}"
"--with-filter-perl"
-
] ++ stdenv.lib.optional (mariadb != null) [
+
] ++ stdenv.lib.optional (mysql != null) [
"--with-table-mysql"
] ++ stdenv.lib.optional (postgresql != null) [
···
"--with-table-redis"
];
-
NIX_CFLAGS_COMPILE = stdenv.lib.optional (hiredis != null) [ "-I${hiredis}/include/hiredis" ];
+
NIX_CFLAGS_COMPILE = stdenv.lib.optional (hiredis != null) "-I${hiredis}/include/hiredis" ++
+
stdenv.lib.optional (mysql != null) "-L${mysql.connector-c}/lib/mysql";
meta = with stdenv.lib; {
homepage = https://www.opensmtpd.org/;
+3 -3
pkgs/servers/mail/postfix/default.nix
···
{ stdenv, lib, fetchurl, makeWrapper, gnused, db, openssl, cyrus_sasl, libnsl
, coreutils, findutils, gnugrep, gawk, icu, pcre
, withPgSQL ? false, postgresql
-
, withMySQL ? false, libmysql
+
, withMySQL ? false, mysql
, withSQLite ? false, sqlite
, withLDAP ? false, openldap
}:
···
"-DUSE_TLS" "-DUSE_SASL_AUTH" "-DUSE_CYRUS_SASL" "-I${cyrus_sasl.dev}/include/sasl"
"-DHAS_DB_BYPASS_MAKEDEFS_CHECK"
] ++ lib.optional withPgSQL "-DHAS_PGSQL"
-
++ lib.optionals withMySQL [ "-DHAS_MYSQL" "-I${lib.getDev libmysql}/include/mysql" ]
+
++ lib.optionals withMySQL [ "-DHAS_MYSQL" "-I${mysql.connector-c}/include/mysql" "-L${mysql.connector-c}/lib/mysql" ]
++ lib.optional withSQLite "-DHAS_SQLITE"
++ lib.optional withLDAP "-DHAS_LDAP");
auxlibs = lib.concatStringsSep " " ([
···
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ db openssl cyrus_sasl icu libnsl pcre ]
++ lib.optional withPgSQL postgresql
-
++ lib.optional withMySQL libmysql
+
++ lib.optional withMySQL mysql.connector-c
++ lib.optional withSQLite sqlite
++ lib.optional withLDAP openldap;
+11
pkgs/servers/sql/mariadb/cmake-includedir.patch
···
+
--- a/include/CMakeLists.txt 2017-12-25 05:59:07.204144374 +0100
+
+++ b/include/CMakeLists.txt 2017-12-25 05:59:26.339552817 +0100
+
@@ -94,7 +94,7 @@
+
ENDIF()
+
+
MACRO(INSTALL_COMPAT_HEADER file footer)
+
- INSTALL(CODE "FILE(WRITE \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${INSTALL_INCLUDEDIR}/${file}
+
+ INSTALL(CODE "FILE(WRITE ${INSTALL_INCLUDEDIR}/${file}
+
\"/* Do not edit this file directly, it was auto-generated by cmake */
+
+
#warning This file should not be included by clients, include only <mysql.h>
+54 -20
pkgs/servers/sql/mariadb/default.nix
···
mariadb = everything // {
inherit client; # libmysqlclient.so in .out, necessary headers in .dev and utils in .bin
server = everything; # a full single-output build, including everything in `client` again
-
lib = client; # compat. with the old mariadb split
+
inherit connector-c; # libmysqlclient.so
};
common = rec { # attributes common to both builds
-
version = "10.1.28";
+
version = "10.2.11";
src = fetchurl {
url = "https://downloads.mariadb.org/f/mariadb-${version}/source/mariadb-${version}.tar.gz/from/http%3A//ftp.hosteurope.de/mirror/archive.mariadb.org/?serve";
-
sha256 = "1g9b0c04qhgcgw6xw29bvdjjjacr7kn82crc7apvvi10ykzwhb99";
+
sha256 = "1s53ravbrxcc8ixvkm56rwgs3cfifzngc56pidd1f1dr1n0mlmb3";
name = "mariadb-${version}.tar.gz";
};
-
prePatch = ''
-
substituteInPlace cmake/libutils.cmake \
-
--replace /usr/bin/libtool libtool
-
sed -i 's,[^"]*/var/log,/var/log,g' storage/mroonga/vendor/groonga/CMakeLists.txt
-
'';
-
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [
ncurses openssl zlib pcre jemalloc
] ++ stdenv.lib.optionals stdenv.isLinux [ libaio systemd ]
++ stdenv.lib.optionals stdenv.isDarwin [ perl fixDarwinDylibNames cctools CoreServices ];
+
+
prePatch = ''
+
sed -i 's,[^"]*/var/log,/var/log,g' storage/mroonga/vendor/groonga/CMakeLists.txt
+
'';
+
+
patches = [ ./cmake-includedir.patch ];
cmakeFlags = [
"-DBUILD_CONFIG=mysql_release"
···
find "''${!outputBin}/bin" -name '*test*' -delete
'';
-
passthru.mysqlVersion = "5.6";
+
passthru.mysqlVersion = "5.7";
meta = with stdenv.lib; {
description = "An enhanced, drop-in replacement for MySQL";
···
platforms = platforms.all;
};
};
-
client = stdenv.mkDerivation (common // {
name = "mariadb-client-${common.version}";
···
preConfigure = common.preConfigure + ''
cmakeFlags="$cmakeFlags \
-
-DINSTALL_BINDIR=$bin/bin -DINSTALL_SCRIPTDIR=$bin/bin \
+
-DINSTALL_BINDIR=$bin/bin \
+
-DINSTALL_SCRIPTDIR=$bin/bin \
-DINSTALL_SUPPORTFILESDIR=$bin/share/mysql \
-
-DINSTALL_DOCDIR=$bin/share/doc/mysql -DINSTALL_DOCREADMEDIR=$bin/share/doc/mysql \
+
-DINSTALL_DOCDIR=$bin/share/doc/mysql \
+
-DINSTALL_DOCREADMEDIR=$bin/share/doc/mysql \
"
'';
# prevent cycle; it needs to reference $dev
postInstall = common.postInstall + ''
moveToOutput bin/mysql_config "$dev"
+
moveToOutput bin/mariadb_config "$dev"
'';
enableParallelBuilding = true; # the client should be OK
});
-
everything = stdenv.mkDerivation (common // {
name = "mariadb-${common.version}";
···
buildInputs = common.buildInputs ++ [
xz lzo lz4 bzip2 snappy
libxml2 boost judy libevent cracklib
-
]
-
++ optionals (stdenv.isLinux && !stdenv.isArm) [ numactl ]
-
;
+
] ++ optionals (stdenv.isLinux && !stdenv.isArm) [ numactl ];
cmakeFlags = common.cmakeFlags ++ [
"-DMYSQL_DATADIR=/var/lib/mysql"
···
postInstall = common.postInstall + ''
rm -r "$out"/{mysql-test,sql-bench,data} # Don't need testing data
rm "$out"/share/man/man1/mysql-test-run.pl.1
-
-
# Don't install mysqlbug to prevent a dependency on gcc.
-
rm $out/bin/mysqlbug
+
rm "$out"/bin/rcmysql
'';
+
+
CXXFLAGS = optionalString stdenv.isi686 "-fpermissive";
});
+
+
connector-c = stdenv.mkDerivation rec {
+
name = "mariadb-connector-c-${version}";
+
version = "2.3.4";
+
+
src = fetchurl {
+
url = "https://downloads.mariadb.org/interstitial/connector-c-${version}/mariadb-connector-c-${version}-src.tar.gz/from/http%3A//ftp.hosteurope.de/mirror/archive.mariadb.org/?serve";
+
sha256 = "1g1sq5knarxkfhpkcczr6qxmq12pid65cdkqnhnfs94av89hbswb";
+
name = "mariadb-connector-c-${version}-src.tar.gz";
+
};
+
+
# outputs = [ "dev" "out" ]; FIXME: cmake variables don't allow that < 3.0
+
cmakeFlags = [
+
"-DWITH_EXTERNAL_ZLIB=ON"
+
"-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock"
+
];
+
+
nativeBuildInputs = [ cmake ];
+
propagatedBuildInputs = [ openssl zlib ];
+
+
enableParallelBuilding = true;
+
+
postFixup = ''
+
ln -sv mariadb_config $out/bin/mysql_config
+
ln -sv mariadb $out/lib/mysql
+
ln -sv mariadb $out/include/mysql
+
'';
+
+
meta = with stdenv.lib; {
+
description = "Client library that can be used to connect to MySQL or MariaDB";
+
license = licenses.lgpl21;
+
maintainers = with maintainers; [ globin ];
+
platforms = platforms.all;
+
};
+
};
in mariadb
+9 -3
pkgs/servers/sql/mysql/5.5.x.nix
···
# Note: zlib is not required; MySQL can use an internal zlib.
-
stdenv.mkDerivation rec {
+
let
+
self = stdenv.mkDerivation rec {
name = "mysql-${version}";
version = "5.5.58";
···
rm $out/share/man/man1/mysql-test-run.pl.1
'';
-
passthru.mysqlVersion = "5.5";
+
passthru = {
+
client = self;
+
connector-c = self;
+
server = self;
+
mysqlVersion = "5.5";
+
};
meta = {
homepage = http://www.mysql.com/;
description = "The world's most popular open source database";
platforms = stdenv.lib.platforms.unix;
};
-
}
+
}; in self
+20 -7
pkgs/servers/sql/mysql/5.7.x.nix
···
# Note: zlib is not required; MySQL can use an internal zlib.
-
stdenv.mkDerivation rec {
+
let
+
self = stdenv.mkDerivation rec {
name = "mysql-${version}";
version = "5.7.20";
···
enableParallelBuilding = true;
+
outputs = [ "out" "static" ];
+
cmakeFlags = [
"-DWITH_SSL=yes"
-
"-DWITH_READLINE=yes"
"-DWITH_EMBEDDED_SERVER=yes"
+
"-DWITH_UNITTEST=no"
"-DWITH_ZLIB=yes"
+
"-DWITH_ARCHIVE_STORAGE_ENGINE=yes"
+
"-DWITH_BLACKHOLE_STORAGE_ENGINE=yes"
+
"-DWITH_FEDERATED_STORAGE_ENGINE=yes"
+
"-DCMAKE_VERBOSE_MAKEFILE=yes"
"-DHAVE_IPV6=yes"
"-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock"
"-DMYSQL_DATADIR=/var/lib/mysql"
-
"-DINSTALL_SYSCONFDIR=etc/mysql"
"-DINSTALL_INFODIR=share/mysql/docs"
"-DINSTALL_MANDIR=share/man"
"-DINSTALL_PLUGINDIR=lib/mysql/plugin"
···
'';
postInstall = ''
sed -i -e "s|basedir=\"\"|basedir=\"$out\"|" $out/bin/mysql_install_db
-
rm -r $out/mysql-test "$out"/lib/*.a
-
rm $out/share/man/man1/mysql-test-run.pl.1
+
install -vD $out/lib/*.a -t $static/lib
+
rm -r $out/mysql-test
+
rm $out/share/man/man1/mysql-test-run.pl.1 $out/lib/*.a
+
ln -s libmysqlclient.so $out/lib/libmysqlclient_r.so
'';
-
passthru.mysqlVersion = "5.7";
+
passthru = {
+
client = self;
+
connector-c = self;
+
server = self;
+
mysqlVersion = "5.7";
+
};
meta = {
homepage = http://www.mysql.com/;
description = "The world's most popular open source database";
platforms = stdenv.lib.platforms.unix;
};
-
}
+
}; in self
+1 -1
pkgs/servers/web-apps/frab/Gemfile.lock
···
pry (~> 0.10)
pry-rails (0.3.4)
pry (>= 0.9.10)
-
puma (3.6.0)
+
puma (3.9.1)
rack (1.6.4)
rack-test (0.6.3)
rack (>= 1.0)
+3 -3
pkgs/servers/web-apps/frab/gemset.nix
···
puma = {
source = {
remotes = ["https://rubygems.org"];
-
sha256 = "1rmcny3jr1jj01f9fqijwmikj212a5iql7ghifklm77x4a8pp399";
+
sha256 = "1k13n500r7v480rcbxm7k09hip0zi7p8zvy3vajj8g9hb7gdcwnp";
type = "gem";
};
-
version = "3.6.0";
+
version = "3.9.1";
};
rack = {
source = {
···
};
version = "0.9.5";
};
-
}
+
}
+21 -12
pkgs/servers/web-apps/searx/default.nix
···
{ lib, pythonPackages, fetchFromGitHub }:
-
pythonPackages.buildPythonApplication rec {
-
name = "searx-${version}";
-
version = "0.12.0";
-
namePrefix = "";
+
with pythonPackages;
+
+
buildPythonApplication rec {
+
pname = "searx";
+
version = "0.13.1";
+
# Can not use PyPI because certain test files are missing.
src = fetchFromGitHub {
owner = "asciimoo";
repo = "searx";
rev = "v${version}";
-
sha256 = "196lk8dpv8fsjgmwlqik6j6rabvfid41fir6lzqy03hv7ydcw1k0";
+
sha256 = "0nizxq9ggf9g8f8pxn2hfm0kn20356v65h4cj9s73n742nkv6ani";
};
postPatch = ''
substituteInPlace requirements.txt \
-
--replace 'certifi==2017.1.23' 'certifi' \
-
--replace 'lxml==3.7.3' 'lxml' \
-
--replace 'pyopenssl==16.2.0' 'pyopenssl' \
+
--replace 'certifi==2017.11.5' 'certifi' \
+
--replace 'flask==0.12.2' 'flask==0.12.*' \
+
--replace 'flask-babel==0.11.2' 'flask-babel==0.11.*' \
+
--replace 'lxml==4.1.1' 'lxml==4.1.*' \
+
--replace 'idna==2.5' 'idna' \
--replace 'pygments==2.1.3' 'pygments>=2.1,<3.0' \
-
--replace 'flask==0.12' 'flask==0.12.*' \
-
--replace 'requests[socks]==2.13.0' 'requests[socks]==2.*' \
-
--replace 'python-dateutil==2.6.0' 'python-dateutil==2.6.*'
+
--replace 'pyopenssl==17.4.0' 'pyopenssl' \
+
--replace 'python-dateutil==2.6.1' 'python-dateutil==2.6.*'
'';
-
propagatedBuildInputs = with pythonPackages; [
+
propagatedBuildInputs = [
pyyaml lxml grequests flaskbabel flask requests
gevent speaklater Babel pytz dateutil pygments
pyasn1 pyasn1-modules ndg-httpsclient certifi pysocks
];
+
+
checkInputs = [ splinter mock plone-testing robotsuite unittest2 ];
+
+
preCheck = ''
+
rm tests/test_robot.py # A variable that is imported is commented out
+
'';
meta = with lib; {
homepage = https://github.com/asciimoo/searx;
+1 -6
pkgs/servers/x11/xorg/builder.sh
···
echo "propagating requisites $requires"
-
if test -n "$crossConfig"; then
-
local pkgs=("${crossPkgs[@]}")
-
else
-
local pkgs=("${nativePkgs[@]}")
-
fi
for r in $requires; do
-
for p in "${pkgs[@]}"; do
+
for p in "${pkgsHostHost[@]}" "${pkgsHostTarget[@]}"; do
if test -e $p/lib/pkgconfig/$r.pc; then
echo " found requisite $r in $p"
propagatedBuildInputs+=" $p"
+3 -3
pkgs/servers/x11/xorg/default.nix
···
}) // {inherit ;};
xorgserver = (mkDerivation "xorgserver" {
-
name = "xorg-server-1.19.5";
+
name = "xorg-server-1.19.6";
builder = ./builder.sh;
src = fetchurl {
-
url = mirror://xorg/individual/xserver/xorg-server-1.19.5.tar.bz2;
-
sha256 = "0iql4pgsgpyqcrd3256pv227cdadvz01ych61n0d41ixp67gmzqq";
+
url = mirror://xorg/individual/xserver/xorg-server-1.19.6.tar.bz2;
+
sha256 = "15y13ihgkggmly5s07vzvpn35gzx1w0hrkbnlcvcy05h3lpm0cm7";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ dri2proto dri3proto renderproto openssl libX11 libXau libXaw libxcb xcbutil xcbutilwm xcbutilimage xcbutilkeysyms xcbutilrenderutil libXdmcp libXfixes libxkbfile libXmu libXpm libXrender libXres libXt ];
+1 -1
pkgs/servers/x11/xorg/tarballs-7.7.list
···
mirror://xorg/individual/app/xmag-1.0.6.tar.bz2
mirror://xorg/individual/app/xmodmap-1.0.9.tar.bz2
mirror://xorg/individual/doc/xorg-docs-1.7.1.tar.bz2
-
mirror://xorg/individual/xserver/xorg-server-1.19.5.tar.bz2
+
mirror://xorg/individual/xserver/xorg-server-1.19.6.tar.bz2
mirror://xorg/X11R7.7/src/everything/xorg-sgml-doctools-1.11.tar.bz2
mirror://xorg/X11R7.7/src/everything/xpr-1.0.4.tar.bz2
mirror://xorg/individual/app/xprop-1.2.2.tar.bz2
+2 -2
pkgs/shells/bash/4.4.nix
···
];
# Note: Bison is needed because the patches above modify parse.y.
+
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [bison]
++ optional (texinfo != null) texinfo
-
++ optional hostPlatform.isDarwin binutils
-
++ optional (hostPlatform != buildPlatform) buildPackages.stdenv.cc;
+
++ optional hostPlatform.isDarwin binutils;
buildInputs = optional interactive readline70;
+1 -10
pkgs/stdenv/adapters.nix
···
};
in stdenv // {
mkDerivation =
-
{ buildInputs ? [], nativeBuildInputs ? []
-
, propagatedBuildInputs ? [], propagatedNativeBuildInputs ? []
+
{ nativeBuildInputs ? []
, selfNativeBuildInput ? args.crossAttrs.selfNativeBuildInput or false
, ...
} @ args:
···
++ stdenv.lib.optional (hostPlatform.config == "x86_64-w64-mingw32") pkgs.file
++ stdenv.lib.optional hostPlatform.isAarch64 pkgs.updateAutotoolsGnuConfigScriptsHook
;
-
-
# Cross-linking dynamic libraries, every buildInput should
-
# be propagated because ld needs the -rpath-link to find
-
# any library needed to link the program dynamically at
-
# loader time. ld(1) explains it.
-
buildInputs = [];
-
propagatedBuildInputs = propagatedBuildInputs ++ buildInputs;
-
propagatedNativeBuildInputs = propagatedNativeBuildInputs;
crossConfig = hostPlatform.config;
} // args.crossAttrs or {});
+15 -5
pkgs/stdenv/darwin/default.nix
···
extraPreHook ? "",
extraNativeBuildInputs,
extraBuildInputs,
+
libcxx,
allowedRequisites ? null}:
let
buildPackages = lib.optionalAttrs (last ? stdenv) {
···
cc = if isNull last then "/dev/null" else import ../../build-support/cc-wrapper {
inherit shell;
inherit (last) stdenvNoCC;
+
+
extraPackages = lib.optional (libcxx != null) libcxx;
nativeTools = false;
nativeLibc = false;
···
extraNativeBuildInputs = [];
extraBuildInputs = [];
+
libcxx = null;
};
stage1 = prevStage: let
···
in with prevStage; stageFun 1 prevStage {
extraPreHook = "export NIX_CFLAGS_COMPILE+=\" -F${bootstrapTools}/Library/Frameworks\"";
extraNativeBuildInputs = [];
-
extraBuildInputs = [ pkgs.libcxx ];
+
extraBuildInputs = [ ];
+
libcxx = pkgs.libcxx;
allowedRequisites =
[ bootstrapTools ] ++ (with pkgs; [ libcxx libcxxabi ]) ++ [ pkgs.darwin.Libsystem ];
···
'';
extraNativeBuildInputs = [ pkgs.xz ];
-
extraBuildInputs = with pkgs; [ darwin.CF libcxx ];
+
extraBuildInputs = [ pkgs.darwin.CF ];
+
libcxx = pkgs.libcxx;
allowedRequisites =
[ bootstrapTools ] ++
···
# and instead goes by $PATH, which happens to contain bootstrapTools. So it goes and
# patches our shebangs back to point at bootstrapTools. This makes sure bash comes first.
extraNativeBuildInputs = with pkgs; [ xz pkgs.bash ];
-
extraBuildInputs = with pkgs; [ darwin.CF libcxx ];
+
extraBuildInputs = [ pkgs.darwin.CF ];
+
libcxx = pkgs.libcxx;
extraPreHook = ''
export PATH=${pkgs.bash}/bin:$PATH
···
in with prevStage; stageFun 4 prevStage {
shell = "${pkgs.bash}/bin/bash";
extraNativeBuildInputs = with pkgs; [ xz pkgs.bash ];
-
extraBuildInputs = with pkgs; [ darwin.CF libcxx ];
+
extraBuildInputs = [ pkgs.darwin.CF ];
+
libcxx = pkgs.libcxx;
+
extraPreHook = ''
export PATH_LOCALE=${pkgs.darwin.locale}/share/locale
'';
···
cc = pkgs.llvmPackages.clang-unwrapped;
bintools = pkgs.darwin.binutils;
libc = pkgs.darwin.Libsystem;
+
extraPackages = [ pkgs.libcxx ];
};
extraNativeBuildInputs = [];
-
extraBuildInputs = with pkgs; [ darwin.CF libcxx ];
+
extraBuildInputs = [ pkgs.darwin.CF ];
extraAttrs = {
inherit platform bootstrapTools;
+60 -16
pkgs/stdenv/generic/make-derivation.nix
···
mkDerivation =
{ name ? ""
-
, nativeBuildInputs ? []
-
, buildInputs ? []
+
# These types of dependencies are all exhaustively documented in
+
# the "Specifying Dependencies" section of the "Standard
+
# Environment" chapter of the Nixpkgs manual.
-
, propagatedNativeBuildInputs ? []
-
, propagatedBuildInputs ? []
+
# TODO(@Ericson2314): Stop using legacy dep attribute names
+
+
# host offset -> target offset
+
, depsBuildBuild ? [] # -1 -> -1
+
, depsBuildBuildPropagated ? [] # -1 -> -1
+
, nativeBuildInputs ? [] # -1 -> 0 N.B. Legacy name
+
, propagatedNativeBuildInputs ? [] # -1 -> 0 N.B. Legacy name
+
, depsBuildTarget ? [] # -1 -> 1
+
, depsBuildTargetPropagated ? [] # -1 -> 1
+
+
, depsHostHost ? [] # 0 -> 0
+
, depsHostHostPropagated ? [] # 0 -> 0
+
, buildInputs ? [] # 0 -> 1 N.B. Legacy name
+
, propagatedBuildInputs ? [] # 0 -> 1 N.B. Legacy name
+
+
, depsTargetTarget ? [] # 1 -> 1
+
, depsTargetTargetPropagated ? [] # 1 -> 1
, configureFlags ? []
, # Target is not included by default because most programs don't care.
···
inherit erroneousHardeningFlags hardeningDisable hardeningEnable supportedHardeningFlags;
})
else let
-
dependencies = map lib.chooseDevOutputs [
-
(map (drv: drv.nativeDrv or drv) nativeBuildInputs
-
++ lib.optional separateDebugInfo ../../build-support/setup-hooks/separate-debug-info.sh
-
++ lib.optional stdenv.hostPlatform.isWindows ../../build-support/setup-hooks/win-dll-link.sh)
-
(map (drv: drv.crossDrv or drv) buildInputs)
+
dependencies = map (map lib.chooseDevOutputs) [
+
[
+
(map (drv: drv.__spliced.buildBuild or drv) depsBuildBuild)
+
(map (drv: drv.nativeDrv or drv) nativeBuildInputs
+
++ lib.optional separateDebugInfo ../../build-support/setup-hooks/separate-debug-info.sh
+
++ lib.optional stdenv.hostPlatform.isWindows ../../build-support/setup-hooks/win-dll-link.sh)
+
(map (drv: drv.__spliced.buildTarget or drv) depsBuildTarget)
+
]
+
[
+
(map (drv: drv.__spliced.hostHost or drv) depsHostHost)
+
(map (drv: drv.crossDrv or drv) buildInputs)
+
]
+
[
+
(map (drv: drv.__spliced.targetTarget or drv) depsTargetTarget)
+
]
];
-
propagatedDependencies = map lib.chooseDevOutputs [
-
(map (drv: drv.nativeDrv or drv) propagatedNativeBuildInputs)
-
(map (drv: drv.crossDrv or drv) propagatedBuildInputs)
+
propagatedDependencies = map (map lib.chooseDevOutputs) [
+
[
+
(map (drv: drv.__spliced.buildBuild or drv) depsBuildBuildPropagated)
+
(map (drv: drv.nativeDrv or drv) propagatedNativeBuildInputs)
+
(map (drv: drv.__spliced.buildTarget or drv) depsBuildTargetPropagated)
+
]
+
[
+
(map (drv: drv.__spliced.hostHost or drv) depsHostHostPropagated)
+
(map (drv: drv.crossDrv or drv) propagatedBuildInputs)
+
]
+
[
+
(map (drv: drv.__spliced.targetTarget or drv) depsTargetTargetPropagated)
+
]
];
outputs' =
···
userHook = config.stdenv.userHook or null;
__ignoreNulls = true;
-
nativeBuildInputs = lib.elemAt dependencies 0;
-
buildInputs = lib.elemAt dependencies 1;
+
depsBuildBuild = lib.elemAt (lib.elemAt dependencies 0) 0;
+
nativeBuildInputs = lib.elemAt (lib.elemAt dependencies 0) 1;
+
depsBuildTarget = lib.elemAt (lib.elemAt dependencies 0) 2;
+
depsHostBuild = lib.elemAt (lib.elemAt dependencies 1) 0;
+
buildInputs = lib.elemAt (lib.elemAt dependencies 1) 1;
+
depsTargetTarget = lib.elemAt (lib.elemAt dependencies 2) 0;
-
propagatedNativeBuildInputs = lib.elemAt propagatedDependencies 0;
-
propagatedBuildInputs = lib.elemAt propagatedDependencies 1;
+
depsBuildBuildPropagated = lib.elemAt (lib.elemAt propagatedDependencies 0) 0;
+
propagatedNativeBuildInputs = lib.elemAt (lib.elemAt propagatedDependencies 0) 1;
+
depsBuildTargetPropagated = lib.elemAt (lib.elemAt propagatedDependencies 0) 2;
+
depsHostBuildPropagated = lib.elemAt (lib.elemAt propagatedDependencies 1) 0;
+
propagatedBuildInputs = lib.elemAt (lib.elemAt propagatedDependencies 1) 1;
+
depsTargetTargetPropagated = lib.elemAt (lib.elemAt propagatedDependencies 2) 0;
# This parameter is sometimes a string, sometimes null, and sometimes a list, yuck
configureFlags = let inherit (lib) optional elem; in
+260 -74
pkgs/stdenv/generic/setup.sh
···
runHook addInputsHook
-
# Recursively find all build inputs.
+
# Package accumulators
+
+
# shellcheck disable=SC2034
+
declare -a pkgsBuildBuild pkgsBuildHost pkgsBuildTarget
+
declare -a pkgsHostHost pkgsHostTarget
+
declare -a pkgsTargetTarget
+
+
declare -ra pkgBuildAccumVars=(pkgsBuildBuild pkgsBuildHost pkgsBuildTarget)
+
declare -ra pkgHostAccumVars=(pkgsHostHost pkgsHostTarget)
+
declare -ra pkgTargetAccumVars=(pkgsTargetTarget)
+
+
declare -ra pkgAccumVarVars=(pkgBuildAccumVars pkgHostAccumVars pkgTargetAccumVars)
+
+
+
# Hooks
+
+
declare -a envBuildBuildHooks envBuildHostHooks envBuildTargetHooks
+
declare -a envHostHostHooks envHostTargetHooks
+
declare -a envTargetTargetHooks
+
+
declare -ra pkgBuildHookVars=(envBuildBuildHook envBuildHostHook envBuildTargetHook)
+
declare -ra pkgHostHookVars=(envHostHostHook envHostTargetHook)
+
declare -ra pkgTargetHookVars=(envTargetTargetHook)
+
+
declare -ra pkgHookVarVars=(pkgBuildHookVars pkgHostHookVars pkgTargetHookVars)
+
+
# Add env hooks for all sorts of deps with the specified host offset.
+
addEnvHooks() {
+
local depHostOffset="$1"
+
shift
+
local pkgHookVarsSlice="${pkgHookVarVars[$depHostOffset + 1]}[@]"
+
local pkgHookVar
+
for pkgHookVar in "${!pkgHookVarsSlice}"; do
+
eval "${pkgHookVar}s"'+=("$@")'
+
done
+
}
+
+
+
# Propagated dep files
+
+
declare -ra propagatedBuildDepFiles=(
+
propagated-build-build-deps
+
propagated-native-build-inputs # Legacy name for back-compat
+
propagated-build-target-deps
+
)
+
declare -ra propagatedHostDepFiles=(
+
propagated-host-host-deps
+
propagated-build-inputs # Legacy name for back-compat
+
)
+
declare -ra propagatedTargetDepFiles=(
+
propagated-target-target-deps
+
)
+
declare -ra propagatedDepFilesVars=(
+
propagatedBuildDepFiles
+
propagatedHostDepFiles
+
propagatedTargetDepFiles
+
)
+
+
# Platform offsets: build = -1, host = 0, target = 1
+
declare -ra allPlatOffsets=(-1 0 1)
+
+
+
# Mutually-recursively find all build inputs. See the dependency section of the
+
# stdenv chapter of the Nixpkgs manual for the specification this algorithm
+
# implements.
findInputs() {
-
local pkg="$1"; shift
-
local var="$1"; shift
-
local propagatedBuildInputsFiles=("$@")
+
local -r pkg="$1"
+
local -ri hostOffset="$2"
+
local -ri targetOffset="$3"
+
+
# Sanity check
+
(( "$hostOffset" <= "$targetOffset" )) || exit -1
+
+
local varVar="${pkgAccumVarVars[$hostOffset + 1]}"
+
local varRef="$varVar[\$targetOffset - \$hostOffset]"
+
local var="${!varRef}"
+
unset -v varVar varRef
# TODO(@Ericson2314): Restore using associative array once Darwin
# nix-shell doesn't use impure bash. This should replace the O(n)
···
exit 1
fi
-
local file
-
for file in "${propagatedBuildInputsFiles[@]}"; do
-
file="$pkg/nix-support/$file"
-
[[ -f "$file" ]] || continue
+
# The current package's host and target offset together
+
# provide a <=-preserving homomorphism from the relative
+
# offsets to current offset
+
function mapOffset() {
+
local -ri inputOffset="$1"
+
if (( "$inputOffset" <= 0 )); then
+
local -ri outputOffset="$inputOffset + $hostOffset"
+
else
+
local -ri outputOffset="$inputOffset - 1 + $targetOffset"
+
fi
+
echo "$outputOffset"
+
}
+
+
# Host offset relative to that of the package whose immediate
+
# dependencies we are currently exploring.
+
local -i relHostOffset
+
for relHostOffset in "${allPlatOffsets[@]}"; do
+
# `+ 1` so we start at 0 for valid index
+
local files="${propagatedDepFilesVars[$relHostOffset + 1]}"
+
+
# Host offset relative to the package currently being
+
# built---as absolute an offset as will be used.
+
local -i hostOffsetNext
+
hostOffsetNext="$(mapOffset relHostOffset)"
+
+
# Ensure we're in bounds relative to the package currently
+
# being built.
+
[[ "${allPlatOffsets[*]}" = *"$hostOffsetNext"* ]] || continue
+
+
# Target offset relative to the *host* offset of the package
+
# whose immediate dependencies we are currently exploring.
+
local -i relTargetOffset
+
for relTargetOffset in "${allPlatOffsets[@]}"; do
+
(( "$relHostOffset" <= "$relTargetOffset" )) || continue
+
+
local fileRef="${files}[$relTargetOffset - $relHostOffset]"
+
local file="${!fileRef}"
+
unset -v fileRef
+
+
# Target offset relative to the package currently being
+
# built.
+
local -i targetOffsetNext
+
targetOffsetNext="$(mapOffset relTargetOffset)"
+
+
# Once again, ensure we're in bounds relative to the
+
# package currently being built.
+
[[ "${allPlatOffsets[*]}" = *"$targetOffsetNext"* ]] || continue
+
+
[[ -f "$pkg/nix-support/$file" ]] || continue
-
local pkgNext
-
for pkgNext in $(< "$file"); do
-
findInputs "$pkgNext" "$var" "${propagatedBuildInputsFiles[@]}"
+
local pkgNext
+
for pkgNext in $(< "$pkg/nix-support/$file"); do
+
findInputs "$pkgNext" "$hostOffsetNext" "$targetOffsetNext"
+
done
done
done
}
+
# Make sure all are at least defined as empty
+
: ${depsBuildBuild=} ${depsBuildBuildPropagated=}
+
: ${nativeBuildInputs=} ${propagatedNativeBuildInputs=} ${defaultNativeBuildInputs=}
+
: ${depsBuildTarget=} ${depsBuildTargetPropagated=}
+
: ${depsHostHost=} ${depsHostHostPropagated=}
+
: ${buildInputs=} ${propagatedBuildInputs=} ${defaultBuildInputs=}
+
: ${depsTargetTarget=} ${depsTargetTargetPropagated=}
+
+
for pkg in $depsBuildBuild $depsBuildBuildPropagated; do
+
findInputs "$pkg" -1 -1
+
done
+
for pkg in $nativeBuildInputs $propagatedNativeBuildInputs; do
+
findInputs "$pkg" -1 0
+
done
+
for pkg in $depsBuildTarget $depsBuildTargetPropagated; do
+
findInputs "$pkg" -1 1
+
done
+
for pkg in $depsHostHost $depsHostHostPropagated; do
+
findInputs "$pkg" 0 0
+
done
+
for pkg in $buildInputs $propagatedBuildInputs ; do
+
findInputs "$pkg" 0 1
+
done
+
for pkg in $depsTargetTarget $depsTargetTargetPropagated; do
+
findInputs "$pkg" 1 1
+
done
+
# Default inputs must be processed last
+
for pkg in $defaultNativeBuildInputs; do
+
findInputs "$pkg" -1 0
+
done
+
for pkg in $defaultBuildInputs; do
+
findInputs "$pkg" 0 1
+
done
+
# Add package to the future PATH and run setup hooks
activatePackage() {
local pkg="$1"
+
local -ri hostOffset="$2"
+
local -ri targetOffset="$3"
+
+
# Sanity check
+
(( "$hostOffset" <= "$targetOffset" )) || exit -1
if [ -f "$pkg" ]; then
local oldOpts="$(shopt -po nounset)"
···
eval "$oldOpts"
fi
-
if [ -d "$pkg/bin" ]; then
+
# Only dependencies whose host platform is guaranteed to match the
+
# build platform are included here. That would be `depsBuild*`,
+
# and legacy `nativeBuildInputs`, in general. If we aren't cross
+
# compiling, however, everything can be put on the PATH. To ease
+
# the transition, we do include everything in thatcase.
+
#
+
# TODO(@Ericson2314): Don't special-case native compilation
+
if [[ ( -z "${crossConfig-}" || "$hostOffset" -le -1 ) && -d "$pkg/bin" ]]; then
addToSearchPath _PATH "$pkg/bin"
fi
-
if [ -f "$pkg/nix-support/setup-hook" ]; then
+
if [[ -f "$pkg/nix-support/setup-hook" ]]; then
local oldOpts="$(shopt -po nounset)"
set +u
source "$pkg/nix-support/setup-hook"
···
fi
}
-
declare -a nativePkgs crossPkgs
-
if [ -z "${crossConfig:-}" ]; then
-
# Not cross-compiling - both buildInputs (and variants like propagatedBuildInputs)
-
# are handled identically to nativeBuildInputs
-
for i in ${nativeBuildInputs:-} ${buildInputs:-} \
-
${defaultNativeBuildInputs:-} ${defaultBuildInputs:-} \
-
${propagatedNativeBuildInputs:-} ${propagatedBuildInputs:-}; do
-
findInputs "$i" nativePkgs propagated-native-build-inputs propagated-build-inputs
-
done
-
else
-
for i in ${nativeBuildInputs:-} ${defaultNativeBuildInputs:-} ${propagatedNativeBuildInputs:-}; do
-
findInputs "$i" nativePkgs propagated-native-build-inputs
+
_activatePkgs() {
+
local -i hostOffset targetOffset
+
local pkg
+
+
for hostOffset in "${allPlatOffsets[@]}"; do
+
local pkgsVar="${pkgAccumVarVars[$hostOffset + 1]}"
+
for targetOffset in "${allPlatOffsets[@]}"; do
+
(( "$hostOffset" <= "$targetOffset" )) || continue
+
local pkgsRef="${pkgsVar}[$targetOffset - $hostOffset]"
+
local pkgsSlice="${!pkgsRef}[@]"
+
for pkg in ${!pkgsSlice+"${!pkgsSlice}"}; do
+
activatePackage "$pkg" "$hostOffset" "$targetOffset"
+
done
+
done
done
-
for i in ${buildInputs:-} ${defaultBuildInputs:-} ${propagatedBuildInputs:-}; do
-
findInputs "$i" crossPkgs propagated-build-inputs
-
done
-
fi
+
}
-
for i in ${nativePkgs+"${nativePkgs[@]}"} ${crossPkgs+"${crossPkgs[@]}"}; do
-
activatePackage "$i"
-
done
-
+
# Run the package setup hooks and build _PATH
+
_activatePkgs
# Set the relevant environment variables to point to the build inputs
# found above.
#
-
# These `depOffset`s tell the env hook what sort of dependency
-
# (ignoring propagatedness) is being passed to the env hook. In a real
-
# language, we'd append a closure with this information to the
-
# relevant env hook array, but bash doesn't have closures, so it's
-
# easier to just pass this in.
+
# These `depOffset`s, beyond indexing the arrays, also tell the env
+
# hook what sort of dependency (ignoring propagatedness) is being
+
# passed to the env hook. In a real language, we'd append a closure
+
# with this information to the relevant env hook array, but bash
+
# doesn't have closures, so it's easier to just pass this in.
+
_addToEnv() {
+
local -i depHostOffset depTargetOffset
+
local pkg
-
_addToNativeEnv() {
-
local pkg="$1"
-
if [[ -n "${crossConfig:-}" ]]; then
-
local -i depOffset=-1
-
else
-
local -i depOffset=0
-
fi
-
-
# Run the package-specific hooks set by the setup-hook scripts.
-
runHook envHook "$pkg"
-
}
-
-
# Old bash empty array hack
-
for i in ${nativePkgs+"${nativePkgs[@]}"}; do
-
_addToNativeEnv "$i"
-
done
-
-
_addToCrossEnv() {
-
local pkg="$1"
-
local -i depOffset=0
-
-
# Run the package-specific hooks set by the setup-hook scripts.
-
runHook crossEnvHook "$pkg"
+
for depHostOffset in "${allPlatOffsets[@]}"; do
+
local hookVar="${pkgHookVarVars[$depHostOffset + 1]}"
+
local pkgsVar="${pkgAccumVarVars[$depHostOffset + 1]}"
+
for depTargetOffset in "${allPlatOffsets[@]}"; do
+
(( "$depHostOffset" <= "$depTargetOffset" )) || continue
+
local hookRef="${hookVar}[$depTargetOffset - $depHostOffset]"
+
if [[ -z "${crossConfig-}" ]]; then
+
# Apply environment hooks to all packages during native
+
# compilation to ease the transition.
+
#
+
# TODO(@Ericson2314): Don't special-case native compilation
+
for pkg in \
+
${pkgsBuildBuild+"${pkgsBuildBuild[@]}"} \
+
${pkgsBuildHost+"${pkgsBuildHost[@]}"} \
+
${pkgsBuildTarget+"${pkgsBuildTarget[@]}"} \
+
${pkgsHostHost+"${pkgsHostHost[@]}"} \
+
${pkgsHostTarget+"${pkgsHostTarget[@]}"} \
+
${pkgsTargetTarget+"${pkgsTargetTarget[@]}"}
+
do
+
runHook "${!hookRef}" "$pkg"
+
done
+
else
+
local pkgsRef="${pkgsVar}[$depTargetOffset - $depHostOffset]"
+
local pkgsSlice="${!pkgsRef}[@]"
+
for pkg in ${!pkgsSlice+"${!pkgsSlice}"}; do
+
runHook "${!hookRef}" "$pkg"
+
done
+
fi
+
done
+
done
}
-
# Old bash empty array hack
-
for i in ${crossPkgs+"${crossPkgs[@]}"}; do
-
_addToCrossEnv "$i"
-
done
+
# Run the package-specific hooks set by the setup-hook scripts.
+
_addToEnv
_addRpathPrefix "$out"
···
# propagated-build-inputs.
fixupPhase() {
# Make sure everything is writable so "strip" et al. work.
+
local output
for output in $outputs; do
if [ -e "${!output}" ]; then chmod -R u+w "${!output}"; fi
done
···
done
-
# Propagate build inputs and setup hook into the development output.
+
# Propagate dependencies & setup hook into the development output.
+
declare -ra flatVars=(
+
# Build
+
depsBuildBuildPropagated
+
propagatedNativeBuildInputs
+
depsBuildTargetPropagated
+
# Host
+
depsHostHostPropagated
+
propagatedBuildInputs
+
# Target
+
depsTargetTargetPropagated
+
)
+
declare -ra flatFiles=(
+
"${propagatedBuildDepFiles[@]}"
+
"${propagatedHostDepFiles[@]}"
+
"${propagatedTargetDepFiles[@]}"
+
)
+
+
local propagatedInputsIndex
+
for propagatedInputsIndex in "${!flatVars[@]}"; do
+
local propagatedInputsSlice="${flatVars[$propagatedInputsIndex]}[@]"
+
local propagatedInputsFile="${flatFiles[$propagatedInputsIndex]}"
-
if [ -n "${propagatedBuildInputs:-}" ]; then
-
mkdir -p "${!outputDev}/nix-support"
-
# shellcheck disable=SC2086
-
printWords $propagatedBuildInputs > "${!outputDev}/nix-support/propagated-build-inputs"
-
fi
+
[[ "${!propagatedInputsSlice}" ]] || continue
-
if [ -n "${propagatedNativeBuildInputs:-}" ]; then
mkdir -p "${!outputDev}/nix-support"
# shellcheck disable=SC2086
-
printWords $propagatedNativeBuildInputs > "${!outputDev}/nix-support/propagated-native-build-inputs"
-
fi
+
printWords ${!propagatedInputsSlice} > "${!outputDev}/nix-support/$propagatedInputsFile"
+
done
if [ -n "${setupHook:-}" ]; then
+1
pkgs/stdenv/linux/make-bootstrap-tools-cross.nix
···
nuke-refs $out/bin/*
nuke-refs $out/lib/*
nuke-refs $out/libexec/gcc/*/*/*
+
nuke-refs $out/lib/gcc/*/*/*
mkdir $out/.pack
mv $out/* $out/.pack
+6 -3
pkgs/tools/admin/ansible/2.1.nix
···
{ stdenv
, fetchurl
+
, fetchFromGitHub
, pythonPackages
, windowsSupport ? false
}:
···
jinja = jinja2.overridePythonAttrs (old: rec {
version = "2.8.1";
name = "${old.pname}-${version}";
-
src = old.src.override {
-
inherit version;
-
sha256 = "35341f3a97b46327b3ef1eb624aadea87a535b8f50863036e085e7c426ac5891";
+
src = fetchFromGitHub {
+
owner = "pallets";
+
repo = "jinja";
+
rev = version;
+
sha256 = "0m6g6fx6flxb6hrkw757mbx1gxyrmj50w27m2afdsvmvz0zpdi2a";
};
});
in buildPythonPackage rec {
+6 -3
pkgs/tools/admin/ansible/2.2.nix
···
{ stdenv
, fetchurl
+
, fetchFromGitHub
, pythonPackages
, windowsSupport ? false
}:
···
jinja = jinja2.overridePythonAttrs (old: rec {
version = "2.8.1";
name = "${old.pname}-${version}";
-
src = old.src.override {
-
inherit version;
-
sha256 = "35341f3a97b46327b3ef1eb624aadea87a535b8f50863036e085e7c426ac5891";
+
src = fetchFromGitHub {
+
owner = "pallets";
+
repo = "jinja";
+
rev = version;
+
sha256 = "0m6g6fx6flxb6hrkw757mbx1gxyrmj50w27m2afdsvmvz0zpdi2a";
};
});
in buildPythonPackage rec {
+2 -3
pkgs/tools/admin/awscli/default.nix
···
});
in buildPythonPackage rec {
-
name = "${pname}-${version}";
pname = "awscli";
-
version = "1.14.6";
+
version = "1.14.17";
namePrefix = "";
src = fetchPypi {
inherit pname version;
-
sha256 = "1lhv8vb3bkjfjg4jm3hgfjssxgqy50gb6vbkh4lxiy8cn3y2dxp1";
+
sha256 = "456499acc41ab67671062a08e218a22aa1a1ff64ae531e694163d0371e8a1dd0";
};
# No tests included
+4 -4
pkgs/tools/backup/bareos/default.nix
···
{ stdenv, fetchFromGitHub, pkgconfig, nettools, gettext, libtool, flex
, readline ? null, openssl ? null, python2 ? null, ncurses ? null, rocksdb
-
, sqlite ? null, postgresql ? null, libmysql ? null, zlib ? null, lzo ? null
+
, sqlite ? null, postgresql ? null, mysql ? null, zlib ? null, lzo ? null
, jansson ? null, acl ? null, glusterfs ? null, libceph ? null, libcap ? null
}:
-
assert sqlite != null || postgresql != null || libmysql != null;
+
assert sqlite != null || postgresql != null || mysql != null;
with stdenv.lib;
let
···
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
nettools gettext readline openssl python2 flex ncurses sqlite postgresql
-
libmysql zlib lzo jansson acl glusterfs libceph libcap rocksdb
+
mysql.connector-c zlib lzo jansson acl glusterfs libceph libcap rocksdb
];
postPatch = ''
···
++ optional (openssl != null) "--with-openssl=${openssl.dev}"
++ optional (sqlite != null) "--with-sqlite3=${sqlite.dev}"
++ optional (postgresql != null) "--with-postgresql=${postgresql}"
-
++ optional (libmysql != null) "--with-mysql=${libmysql.dev}"
+
++ optional (mysql != null) "--with-mysql=${mysql.connector-c}"
++ optional (zlib != null) "--with-zlib=${zlib.dev}"
++ optional (lzo != null) "--with-lzo=${lzo}"
++ optional (jansson != null) "--with-jansson=${jansson}"
+2 -2
pkgs/tools/backup/mydumper/default.nix
···
{ stdenv, fetchFromGitHub, cmake, pkgconfig
-
, glib, zlib, pcre, mariadb, libressl, }:
+
, glib, zlib, pcre, mysql, libressl }:
stdenv.mkDerivation rec {
version = "0.9.3";
···
nativeBuildInputs = [ cmake pkgconfig ];
-
buildInputs = [ glib zlib pcre mariadb.client.dev libressl ];
+
buildInputs = [ glib zlib pcre mysql.connector-c libressl ];
meta = with stdenv.lib; {
description = ''High-perfomance MySQL backup tool'';
+94 -85
pkgs/tools/inputmethods/ibus/default.nix
···
-
{ stdenv, fetchurl, wrapGAppsHook
-
, intltool, isocodes, pkgconfig
-
, python3
-
, gtk2, gtk3, atk, dconf, glib, json_glib
-
, dbus, libnotify, gobjectIntrospection, wayland
-
}:
+
{ stdenv, fetchurl, fetchFromGitHub, autoreconfHook, gconf, intltool, makeWrapper, pkgconfig
+
, vala, wrapGAppsHook, atk, dbus, dconf ? null, glib, gdk_pixbuf, gobjectIntrospection, gtk2
+
, gtk3, gtk_doc, isocodes, python3, json_glib, libnotify ? null, enablePythonLibrary ? true
+
, enableUI ? true, withWayland ? false, libxkbcommon ? null, wayland ? null }:
+
+
assert withWayland -> wayland != null && libxkbcommon != null;
+
+
with stdenv.lib;
let
-
emojiData = let
-
srcs = {
-
data = fetchurl {
-
url = "http://unicode.org/Public/emoji/5.0/emoji-data.txt";
-
sha256 = "11jfz5rrvyc2ixliqfcjgmch4cn9mfy0x96qnpfcyz5fy1jvfyxf";
-
};
-
sequences = fetchurl {
-
url = "http://unicode.org/Public/emoji/5.0/emoji-sequences.txt";
-
sha256 = "09bii7f5mmladg0kl3n80fa9qaix6bv5ylm92x52j7wygzv0szb1";
-
};
-
variation-sequences = fetchurl {
-
url = "http://unicode.org/Public/emoji/5.0/emoji-variation-sequences.txt";
-
sha256 = "1wlg4gbq7spmpppjfy5zdl82sj0hc836p8gljgfrjmwsjgybq286";
-
};
-
zwj-sequences = fetchurl {
-
url = "http://unicode.org/Public/emoji/5.0/emoji-zwj-sequences.txt";
-
sha256 = "16gvzv76mjv9g81lm1m6cr3rpfqyn2k4hb9a62xd329252dhl25q";
-
};
-
test = fetchurl {
-
url = "http://unicode.org/Public/emoji/5.0/emoji-test.txt";
-
sha256 = "031qk2v8xdnba7hfinmgrmpglc9l8ll2hds6mw885p0hngdb3dgw";
-
};
+
emojiSrcs = {
+
data = fetchurl {
+
url = "http://unicode.org/Public/emoji/5.0/emoji-data.txt";
+
sha256 = "11jfz5rrvyc2ixliqfcjgmch4cn9mfy0x96qnpfcyz5fy1jvfyxf";
+
};
+
sequences = fetchurl {
+
url = "http://unicode.org/Public/emoji/5.0/emoji-sequences.txt";
+
sha256 = "09bii7f5mmladg0kl3n80fa9qaix6bv5ylm92x52j7wygzv0szb1";
};
-
in stdenv.mkDerivation {
+
variation-sequences = fetchurl {
+
url = "http://unicode.org/Public/emoji/5.0/emoji-variation-sequences.txt";
+
sha256 = "1wlg4gbq7spmpppjfy5zdl82sj0hc836p8gljgfrjmwsjgybq286";
+
};
+
zwj-sequences = fetchurl {
+
url = "http://unicode.org/Public/emoji/5.0/emoji-zwj-sequences.txt";
+
sha256 = "16gvzv76mjv9g81lm1m6cr3rpfqyn2k4hb9a62xd329252dhl25q";
+
};
+
test = fetchurl {
+
url = "http://unicode.org/Public/emoji/5.0/emoji-test.txt";
+
sha256 = "031qk2v8xdnba7hfinmgrmpglc9l8ll2hds6mw885p0hngdb3dgw";
+
};
+
};
+
emojiData = stdenv.mkDerivation {
name = "emoji-data-5.0";
unpackPhase = ":";
-
dontBuild = true;
-
installPhase = with stdenv.lib; ''
+
installPhase = ''
mkdir $out
-
${builtins.toString (flip mapAttrsToList srcs (k: v: ''
-
cp ${v} $out/emoji-${k}.txt
-
''))}
+
${builtins.toString (flip mapAttrsToList emojiSrcs (k: v: "cp ${v} $out/emoji-${k}.txt;"))}
'';
};
cldrEmojiAnnotation = stdenv.mkDerivation rec {
name = "cldr-emoji-annotation-${version}";
-
version = "31.0.1_1";
-
src = fetchurl {
-
url = "https://github.com/fujiwarat/cldr-emoji-annotation/releases/download/${version}/${name}.tar.gz";
-
sha256 = "1a3qzsab7vzjqpdialp1g8ppr21x05v0ph8ngyq9pyjkx4vzcdi7";
+
version = "31.90.0_1";
+
src = fetchFromGitHub {
+
owner = "fujiwarat";
+
repo = "cldr-emoji-annotation";
+
rev = version;
+
sha256 = "1vsj32bg8ab4d80rz0fxy6sj2lv31inzyjnddjm079bnvlaf2kih";
};
+
nativeBuildInputs = [ autoreconfHook ];
};
-
pyEnv = python3.buildEnv.override {
-
extraLibs = [ python3.pkgs.pygobject3 ];
-
+
python3Runtime = python3.withPackages (ps: with ps; [ pygobject3 ]);
+
python3BuildEnv = python3.buildEnv.override {
# ImportError: No module named site
postBuild = ''
-
makeWrapper '${glib.dev}/bin/glib-genmarshal' "$out"/bin/glib-genmarshal \
-
--unset PYTHONPATH
+
makeWrapper ${glib.dev}/bin/gdbus-codegen $out/bin/gdbus-codegen --unset PYTHONPATH
+
makeWrapper ${glib.dev}/bin/glib-genmarshal $out/bin/glib-genmarshal --unset PYTHONPATH
+
makeWrapper ${glib.dev}/bin/glib-mkenums $out/bin/glib-mkenums --unset PYTHONPATH
'';
};
-
in stdenv.mkDerivation rec {
+
in
+
+
stdenv.mkDerivation rec {
name = "ibus-${version}";
-
version = "1.5.16";
+
version = "1.5.17";
-
src = fetchurl {
-
url = "https://github.com/ibus/ibus/releases/download/${version}/${name}.tar.gz";
-
sha256 = "07py16jb81kd7vkqhcia9cb2avsbg5jswp2kzf0k4bprwkxppd9n";
+
src = fetchFromGitHub {
+
owner = "ibus";
+
repo = "ibus";
+
rev = version;
+
sha256 = "09mrj9d8qpl9cbylg1zx8c3ymc5gdy4jrf6zs125wjz0b574g5av";
};
postPatch = ''
-
# These paths will be set in the wrapper.
-
sed -e "/export IBUS_DATAROOTDIR/ s/^.*$//" \
-
-e "/export IBUS_LIBEXECDIR/ s/^.*$//" \
-
-e "/export IBUS_LOCALEDIR/ s/^.*$//" \
-
-e "/export IBUS_PREFIX/ s/^.*$//" \
-
-i "setup/ibus-setup.in"
+
substituteInPlace setup/ibus-setup.in --subst-var-by PYTHON ${python3Runtime.interpreter}
+
substituteInPlace data/dconf/Makefile.am --replace "dconf update" true
+
substituteInPlace configure.ac --replace '$python2dir/ibus' $out/${python3.sitePackages}/ibus
+
echo \#!${stdenv.shell} > data/dconf/make-dconf-override-db.sh
+
cp ${gtk_doc}/share/gtk-doc/data/gtk-doc.make .
'';
+
preAutoreconf = "touch ChangeLog";
+
preConfigure = "intltoolize";
+
configureFlags = [
"--disable-gconf"
-
"--enable-dconf"
"--disable-memconf"
-
"--enable-ui"
-
"--enable-python-library"
+
(enableFeature (dconf != null) "dconf")
+
(enableFeature (libnotify != null) "libnotify")
+
(enableFeature withWayland "wayland")
+
(enableFeature enablePythonLibrary "python-library")
+
(enableFeature enableUI "ui")
"--with-unicode-emoji-dir=${emojiData}"
"--with-emoji-annotation-dir=${cldrEmojiAnnotation}/share/unicode/cldr/common/annotations"
];
-
buildInputs = [
-
pyEnv
-
intltool isocodes pkgconfig
-
gtk2 gtk3 dconf
-
json_glib
-
dbus libnotify gobjectIntrospection wayland
+
nativeBuildInputs = [
+
autoreconfHook
+
gconf
+
gtk_doc
+
intltool
+
makeWrapper
+
pkgconfig
+
python3BuildEnv
+
vala
+
wrapGAppsHook
];
propagatedBuildInputs = [ glib ];
-
nativeBuildInputs = [ wrapGAppsHook ];
-
-
outputs = [ "out" "dev" ];
+
buildInputs = [
+
dbus
+
dconf
+
gdk_pixbuf
+
gobjectIntrospection
+
gtk2
+
gtk3
+
isocodes
+
json_glib
+
libnotify
+
] ++ optionals withWayland [
+
libxkbcommon
+
wayland
+
];
enableParallelBuilding = true;
-
preConfigure = ''
-
# Fix hard-coded installation paths, so make does not try to overwrite our
-
# Python installation.
-
sed -e "/py2overridesdir=/ s|=.*$|=$out/lib/${python3.libPrefix}|" \
-
-e "/pyoverridesdir=/ s|=.*$|=$out/lib/${python3.libPrefix}|" \
-
-e "/PYTHON2_LIBDIR/ s|=.*|=$out/lib/${python3.libPrefix}|" \
-
-i configure
-
-
# Don't try to generate a system-wide dconf database; it wouldn't work.
-
substituteInPlace data/dconf/Makefile.in --replace "dconf update" "echo"
-
'';
-
doInstallCheck = true;
installCheckPhase = "$out/bin/ibus version";
-
postInstall = ''
-
moveToOutput "bin/ibus-setup" "$dev"
-
'';
-
-
meta = with stdenv.lib; {
+
meta = {
homepage = https://github.com/ibus/ibus;
-
description = "Intelligent Input Bus for Linux / Unix OS";
+
description = "Intelligent Input Bus, input method framework";
+
license = licenses.lgpl21Plus;
platforms = platforms.linux;
-
maintainers = [ maintainers.ttuegel ];
+
maintainers = with maintainers; [ ttuegel yegortimoshenko ];
};
}
+2 -2
pkgs/tools/misc/colord-kde/default.nix
···
sha256 = "0brdnpflm95vf4l41clrqxwvjrdwhs859n7401wxcykkmw4m0m3c";
};
-
nativeBuildInputs = [ extra-cmake-modules ki18n ];
+
nativeBuildInputs = [ extra-cmake-modules ];
buildInputs = [
kconfig kconfigwidgets kcoreaddons kdbusaddons kiconthemes
-
kcmutils kio knotifications plasma-framework kwidgetsaddons
+
kcmutils ki18n kio knotifications plasma-framework kwidgetsaddons
kwindowsystem kitemviews lcms2 libXrandr qtx11extras
];
+2 -2
pkgs/tools/misc/coreutils/default.nix
···
with lib;
stdenv.mkDerivation rec {
-
name = "coreutils-8.28";
+
name = "coreutils-8.29";
src = fetchurl {
url = "mirror://gnu/coreutils/${name}.tar.xz";
-
sha256 = "0r8c1bgm68kl70j1lgd0rv12iykw6143k4m9a56xip9rc2hv25qi";
+
sha256 = "0plm1zs9il6bb5mk881qvbghq4glc8ybbgakk2lfzb0w64fgml4j";
};
patches = optional hostPlatform.isCygwin ./coreutils-8.23-4.cygwin.patch;
+2 -2
pkgs/tools/networking/kea/default.nix
···
configureFlags = [
"--localstatedir=/var"
"--with-dhcp-pgsql=${postgresql}/bin/pg_config"
-
"--with-dhcp-mysql=${mysql.client.dev}/bin/mysql_config"
+
"--with-dhcp-mysql=${mysql.connector-c}/bin/mysql_config"
];
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [
-
openssl log4cplus boost python3 mysql.client
+
openssl log4cplus boost python3 mysql.connector-c
botan2 gmp bzip2
];
+13 -8
pkgs/tools/networking/mailutils/default.nix
···
-
{ stdenv, fetchurl, fetchpatch, autoreconfHook, dejagnu, gettext, libtool, pkgconfig
+
{ stdenv, fetchurl, fetchpatch, autoreconfHook, dejagnu, gettext, pkgconfig
, gdbm, pam, readline, ncurses, gnutls, guile, texinfo, gnum4, sasl, fribidi, nettools
-
, gss, mysql }:
+
, python, gss, mysql }:
let
p = "https://raw.githubusercontent.com/gentoo/gentoo/9c921e89d51876fd876f250324893fd90c019326/net-mail/mailutils/files";
-
in
-
stdenv.mkDerivation rec {
+
in stdenv.mkDerivation rec {
name = "${project}-${version}";
project = "mailutils";
version = "3.2";
···
};
nativeBuildInputs = [
-
autoreconfHook gettext libtool pkgconfig
+
autoreconfHook gettext pkgconfig
] ++ stdenv.lib.optional doCheck dejagnu;
buildInputs = [
gdbm pam readline ncurses gnutls guile texinfo gnum4 sasl fribidi nettools
-
gss mysql.lib
+
gss mysql.connector-c python
];
patches = [
···
];
postPatch = ''
-
sed -e '/AM_GNU_GETTEXT_VERSION/s/0.18/0.19/' -i configure.ac
sed -i -e '/chown root:mail/d' \
-e 's/chmod [24]755/chmod 0755/' \
*/Makefile{.in,.am}
+
sed -i 's:/usr/lib/mysql:${mysql.connector-c}/lib/mysql:' configure.ac
+
sed -i 's/0\.18/0.19/' configure.ac
+
sed -i -e 's:mysql/mysql.h:mysql.h:' \
+
-e 's:mysql/errmsg.h:errmsg.h:' \
+
sql/mysql.c
'';
+
+
NIX_CFLAGS_COMPILE = "-L${mysql.connector-c}/lib/mysql -I${mysql.connector-c}/include/mysql";
preCheck = ''
-
# Add missing files.
+
# Add missing test files
cp ${builtins.toString readmsg-tests} readmsg/tests/
for f in hdr.at nohdr.at twomsg.at weed.at; do
mv readmsg/tests/*-$f readmsg/tests/$f
+25 -3
pkgs/tools/networking/mitmproxy/default.nix
···
{ stdenv, fetchpatch, fetchFromGitHub, fetchurl, python3, glibcLocales }:
-
python3.pkgs.buildPythonPackage rec {
+
let
+
# When overrides are not needed, then only remove the contents of this set.
+
packageOverrides = self: super: {
+
ldap3 = super.ldap3.overridePythonAttrs (oldAttrs: rec {
+
version = "2.3";
+
src = oldAttrs.src.override {
+
inherit version;
+
sha256 = "c056b3756076e15aa71c963c7c5a44d5d9bbd430263ee49598d4454223a766ac";
+
};
+
});
+
pyasn1 = super.pyasn1.overridePythonAttrs (oldAttrs: rec {
+
version = "0.3.7";
+
src = oldAttrs.src.override {
+
inherit version;
+
sha256 = "187f2a66d617683f8e82d5c00033b7c8a0287e1da88a9d577aebec321cad4965";
+
};
+
});
+
};
+
+
pythonPackages = (python3.override {inherit packageOverrides; }).pkgs;
+
in with pythonPackages;
+
+
buildPythonPackage rec {
baseName = "mitmproxy";
name = "${baseName}-unstable-2017-10-31";
···
LC_CTYPE=en_US.UTF-8 pytest -k 'not test_echo and not test_find_unclaimed_URLs '
'';
-
propagatedBuildInputs = with python3.pkgs; [
+
propagatedBuildInputs = [
blinker click certifi cryptography
h2 hyperframe
kaitaistruct passlib pyasn1 pyopenssl
···
urwid brotlipy sortedcontainers ldap3
];
-
buildInputs = with python3.pkgs; [
+
buildInputs = [
beautifulsoup4 flask pytest pytestrunner glibcLocales
];
+2 -2
pkgs/tools/networking/snabb/default.nix
···
-
{ stdenv, lib, fetchFromGitHub, bash, makeWrapper, git, mariadb, diffutils, which, coreutils, procps, nettools }:
+
{ stdenv, lib, fetchFromGitHub, bash, makeWrapper, git, mysql, diffutils, which, coreutils, procps, nettools }:
stdenv.mkDerivation rec {
name = "snabb-${version}";
···
done
# We need a way to pass $PATH to the scripts
-
sed -i '2iexport PATH=${stdenv.lib.makeBinPath [ git mariadb which procps coreutils ]}' src/program/snabbnfv/neutron_sync_master/neutron_sync_master.sh.inc
+
sed -i '2iexport PATH=${stdenv.lib.makeBinPath [ git mysql.client which procps coreutils ]}' src/program/snabbnfv/neutron_sync_master/neutron_sync_master.sh.inc
sed -i '2iexport PATH=${stdenv.lib.makeBinPath [ git coreutils diffutils nettools ]}' src/program/snabbnfv/neutron_sync_agent/neutron_sync_agent.sh.inc
'';
+2 -2
pkgs/tools/security/gnupg/22.nix
···
stdenv.mkDerivation rec {
name = "gnupg-${version}";
-
version = "2.2.3";
+
version = "2.2.4";
src = fetchurl {
url = "mirror://gnupg/gnupg/${name}.tar.bz2";
-
sha256 = "1d4482c4pbi0p1k8cc0f9c4q51k56v8navrbz5samxrrs42p3lyb";
+
sha256 = "1v7j8v2ww1knknbrhw3svfrqkmf9ll58iq0dczbsdpqgg1j3w6j0";
};
nativeBuildInputs = [ pkgconfig ];
+2 -2
pkgs/tools/security/thc-hydra/default.nix
···
-
{ stdenv, lib, fetchurl, zlib, openssl, ncurses, libidn, pcre, libssh, libmysql, postgresql
+
{ stdenv, lib, fetchurl, zlib, openssl, ncurses, libidn, pcre, libssh, mysql, postgresql
, withGUI ? false, makeWrapper, pkgconfig, gtk2 }:
let
···
'';
nativeBuildInputs = lib.optionals withGUI [ pkgconfig makeWrapper ];
-
buildInputs = [ zlib openssl ncurses libidn pcre libssh libmysql postgresql ]
+
buildInputs = [ zlib openssl ncurses libidn pcre libssh mysql.connector-c postgresql ]
++ lib.optional withGUI gtk2;
postInstall = lib.optionalString withGUI ''
+3 -2
pkgs/tools/system/collectd/default.nix
···
, libtool ? null
, lm_sensors ? null
, lvm2 ? null
-
, libmysql ? null
+
, mysql ? null
, postgresql ? null
, protobufc ? null
, python ? null
···
buildInputs = [
curl libdbi libgcrypt libmemcached
cyrus_sasl libnotify gdk_pixbuf liboping libpcap libvirt
-
libxml2 libmysql postgresql protobufc rrdtool
+
libxml2 postgresql protobufc rrdtool
varnish yajl jdk libtool python hiredis libmicrohttpd
riemann_c_client mosquitto rdkafka mongoc
+
] ++ stdenv.lib.optionals (mysql != null) [ mysql.connector-c
] ++ stdenv.lib.optionals stdenv.isLinux [
iptables libatasmart libcredis libmodbus libsigrok
lm_sensors lvm2 rabbitmq-c udev net_snmp libmnl
+5 -4
pkgs/tools/system/rsyslog/default.nix
···
{ stdenv, fetchurl, pkgconfig, autoreconfHook, libestr, json_c, zlib, pythonPackages, fastJson
-
, libkrb5 ? null, systemd ? null, jemalloc ? null, libmysql ? null, postgresql ? null
+
, libkrb5 ? null, systemd ? null, jemalloc ? null, mysql ? null, postgresql ? null
, libdbi ? null, net_snmp ? null, libuuid ? null, curl ? null, gnutls ? null
, libgcrypt ? null, liblognorm ? null, openssl ? null, librelp ? null, libksi ? null
, libgt ? null, liblogging ? null, libnet ? null, hadoop ? null, rdkafka ? null
···
nativeBuildInputs = [ pkgconfig autoreconfHook ];
buildInputs = [
-
fastJson libestr json_c zlib pythonPackages.docutils libkrb5 jemalloc libmysql
+
fastJson libestr json_c zlib pythonPackages.docutils libkrb5 jemalloc
postgresql libdbi net_snmp libuuid curl gnutls libgcrypt liblognorm openssl
librelp libgt libksi liblogging libnet hadoop rdkafka libmongo-client czmq
rabbitmq-c hiredis
-
] ++ stdenv.lib.optional stdenv.isLinux systemd;
+
] ++ stdenv.lib.optional (mysql != null) mysql.connector-c
+
++ stdenv.lib.optional stdenv.isLinux systemd;
hardeningDisable = [ "format" ];
···
(mkFlag false "valgrind")
(mkFlag false "diagtools")
(mkFlag true "usertools")
-
(mkFlag (libmysql != null) "mysql")
+
(mkFlag (mysql != null) "mysql")
(mkFlag (postgresql != null) "pgsql")
(mkFlag (libdbi != null) "libdbi")
(mkFlag (net_snmp != null) "snmp")
+2 -1
pkgs/tools/text/diffutils/default.nix
···
configureFlags =
# "pr" need not be on the PATH as a run-time dep, so we need to tell
# configure where it is. Covers the cross and native case alike.
-
stdenv.lib.optional (coreutils != null) "PR_PROGRAM=${coreutils}/bin/pr";
+
stdenv.lib.optional (coreutils != null) "PR_PROGRAM=${coreutils}/bin/pr"
+
++ stdenv.lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "gl_cv_func_getopt_gnu=yes";
meta = {
homepage = http://www.gnu.org/software/diffutils/diffutils.html;
+2
pkgs/tools/text/gawk/default.nix
···
(if interactive then "--with-readline=${readline.dev}" else "--without-readline")
];
+
makeFlags = "AR=${stdenv.cc.targetPrefix}ar";
+
inherit doCheck;
postInstall = ''
+1 -1
pkgs/tools/text/sgml/opensp/setup-hook.sh
···
export ftp_proxy=http://nodtd.invalid/
export SGML_CATALOG_FILES
-
envHooks+=(addSGMLCatalogs)
+
addEnvHooks "$targetOffset" addSGMLCatalogs
fi
+2 -2
pkgs/tools/typesetting/tex/dblatex/default.nix
···
ghostscript != null;
stdenv.mkDerivation rec {
-
name = "dblatex-0.3.7";
+
name = "dblatex-0.3.10";
src = fetchurl {
url = "mirror://sourceforge/dblatex/${name}.tar.bz2";
-
sha256 = "0bkjgrn03dy5c7438s429wnv6z5ynxkr4pbhp2z49kynskgkzkjr";
+
sha256 = "1yicd861rqz78i2khl35j7nvc0ccv4jx4hzqrbhll17082vrdmkg";
};
buildInputs = [ python2 libxslt tex ]
+1 -1
pkgs/tools/typesetting/tex/tetex/setup-hook.sh
···
fi
}
-
envHooks+=(addTeXMFPath)
+
addEnvHooks "$targetOffset" addTeXMFPath
+1 -1
pkgs/tools/typesetting/tex/texlive/setup-hook.sh
···
fi
}
-
envHooks+=(addTeXMFPath)
+
addEnvHooks "$targetOffset" addTeXMFPath
+1
pkgs/top-level/aliases.nix
···
libcap_pam = if stdenv.isLinux then libcap.pam else null; # added 2016-04-29
libcap_progs = libcap.out; # added 2016-04-29
libjson_rpc_cpp = libjson-rpc-cpp; # added 2017-02-28
+
libmysql = mysql.connector-c; # added # 2017-12-28, this was a misnomer refering to libmysqlclient
libtidy = html-tidy; # added 2014-12-21
links = links2; # added 2016-01-31
lttngTools = lttng-tools; # added 2014-07-31
+9 -11
pkgs/top-level/all-packages.nix
···
libkrb5 = null;
systemd = null;
jemalloc = null;
-
libmysql = null;
+
mysql = null;
postgresql = null;
libdbi = null;
net_snmp = null;
···
convertlit = callPackage ../tools/text/convertlit { };
collectd = callPackage ../tools/system/collectd {
-
libmysql = mysql.lib;
libsigrok = libsigrok-0-3-0; # not compatible with >= 0.4.0 yet
};
···
skk-dicts = callPackage ../tools/inputmethods/skk/skk-dicts { };
ibus = callPackage ../tools/inputmethods/ibus {
-
inherit (gnome3) dconf glib;
+
inherit (gnome3) dconf gconf glib;
};
ibus-qt = callPackage ../tools/inputmethods/ibus/ibus-qt.nix { };
···
vala_0_28
vala_0_32
vala_0_34
+
vala_0_36
vala_0_38
vala;
···
boost163 = callPackage ../development/libraries/boost/1.63.nix { };
boost164 = callPackage ../development/libraries/boost/1.64.nix { };
boost165 = callPackage ../development/libraries/boost/1.65.nix { };
-
boost16x = boost165;
+
boost166 = callPackage ../development/libraries/boost/1.66.nix { };
+
boost16x = boost166;
boost = boost16x;
boost_process = callPackage ../development/libraries/boost-process { };
···
libdbi = callPackage ../development/libraries/libdbi { };
libdbiDriversBase = callPackage ../development/libraries/libdbi-drivers {
-
libmysql = null;
+
mysql = null;
sqlite = null;
};
libdbiDrivers = libdbiDriversBase.override {
-
inherit sqlite libmysql;
+
inherit sqlite mysql;
};
libdbusmenu-glib = callPackage ../development/libraries/libdbusmenu { };
···
x265 = callPackage ../development/libraries/x265 { };
inherit (callPackages ../development/libraries/xapian { })
-
xapian_1_2_22 xapian_1_4_4;
-
xapian = xapian_1_4_4;
+
xapian_1_2_22 xapian_1_4;
+
xapian = xapian_1_4;
xapian-omega = callPackage ../development/libraries/xapian/tools/omega {
libmagic = file;
···
mysql = mariadb;
-
libmysql = mysql.client; # `libmysql` is a slight misnomer ATM
mysql_jdbc = callPackage ../servers/sql/mysql/jdbc { };
···
gcs = callPackage ../games/gcs { };
gemrb = callPackage ../games/gemrb { };
-
-
ghostOne = callPackage ../servers/games/ghost-one { };
gl117 = callPackage ../games/gl-117 {};
+4 -3
pkgs/top-level/lua-packages.nix
···
{ fetchurl, fetchzip, stdenv, lua, callPackage, unzip, zziplib, pkgconfig, libtool
, pcre, oniguruma, gnulib, tre, glibc, sqlite, openssl, expat, cairo
, perl, gtk2, python, glib, gobjectIntrospection, libevent, zlib, autoreconfHook
-
, libmysql, postgresql, cyrus_sasl
+
, mysql, postgresql, cyrus_sasl
, fetchFromGitHub, libmpack, which
}:
···
};
sourceRoot = ".";
-
buildInputs = [ libmysql postgresql sqlite ];
+
buildInputs = [ mysql.connector-c postgresql sqlite ];
preConfigure = ''
substituteInPlace Makefile --replace CC=gcc CC=cc
···
'';
NIX_CFLAGS_COMPILE = [
-
"-I${libmysql.dev}/include/mysql"
+
"-I${mysql.connector-c}/include/mysql"
+
"-L${mysql.connector-c}/lib/mysql"
"-I${postgresql}/include/server"
];
+51 -594
pkgs/top-level/python-packages.nix
···
automat = callPackage ../development/python-modules/automat { };
+
aws-xray-sdk = callPackage ../development/python-modules/aws-xray-sdk { };
+
# packages defined elsewhere
backports_csv = callPackage ../development/python-modules/backports_csv {};
···
meta = {
homepage = https://pypi.python.org/pypi/anyjson/;
description = "Wrapper that selects the best available JSON implementation";
-
};
-
};
-
-
amqp_1 = buildPythonPackage rec {
-
name = "amqp-${version}";
-
version = "1.4.9";
-
disabled = pythonOlder "2.6";
-
-
src = pkgs.fetchurl {
-
url = "mirror://pypi/a/amqp/${name}.tar.gz";
-
sha256 = "06n6q0kxhjnbfz3vn8x9yz09lwmn1xi9d6wxp31h5jbks0b4vsid";
-
};
-
-
buildInputs = with self; [ mock coverage nose-cover3 unittest2 ];
-
-
meta = {
-
homepage = https://github.com/celery/py-amqp;
-
description = "Python client for the Advanced Message Queuing Procotol (AMQP). This is a fork of amqplib which is maintained by the Celery project";
-
license = licenses.lgpl21;
};
};
···
};
};
-
backports_abc = buildPythonPackage rec {
-
name = "backports_abc-${version}";
-
version = "0.4";
-
-
src = pkgs.fetchurl {
-
url = "mirror://pypi/b/backports_abc/${name}.tar.gz";
-
sha256 = "8b3e4092ba3d541c7a2f9b7d0d9c0275b21c6a01c53a61c731eba6686939d0a5";
-
};
-
-
checkPhase = ''
-
${python.interpreter} -m unittest discover
-
'';
+
backports_abc = callPackage ../development/python-modules/backports_abc { };
-
meta = {
-
homepage = https://github.com/cython/backports_abc;
-
license = licenses.psfl;
-
description = "A backport of recent additions to the 'collections.abc' module";
-
};
-
};
-
-
backports_functools_lru_cache = buildPythonPackage rec {
-
name = "backports.functools_lru_cache-${version}";
-
version = "1.3";
-
-
src = pkgs.fetchurl {
-
url = "mirror://pypi/b/backports_functools_lru_cache/${name}.tar.gz";
-
sha256 = "444a21bcec4ae177da554321f81a78dc879eaa8f6ea9920cb904830585d31e95";
-
};
-
-
buildInputs = with self; [ setuptools_scm ];
-
doCheck = false; # No proper test
-
-
meta = {
-
description = "Backport of functools.lru_cache";
-
homepage = https://github.com/jaraco/backports.functools_lru_cache;
-
license = licenses.mit;
-
};
-
};
+
backports_functools_lru_cache = callPackage ../development/python-modules/backports_functools_lru_cache { };
backports_shutil_get_terminal_size = callPackage ../development/python-modules/backports_shutil_get_terminal_size { };
···
};
};
-
backports_lzma = self.buildPythonPackage rec {
-
name = "backports.lzma-0.0.3";
-
disabled = isPy3k;
-
-
src = pkgs.fetchurl {
-
url = "mirror://pypi/b/backports.lzma/${name}.tar.gz";
-
sha256 = "bac58aec8d39ac3d22250840fb24830d0e4a0ef05ad8f3f09172dc0cc80cdbca";
-
};
-
-
buildInputs = [ pkgs.lzma ];
-
-
meta = {
-
description = "Backport of Python 3.3's 'lzma' module for XZ/LZMA compressed files";
-
homepage = https://github.com/peterjc/backports.lzma;
-
license = licenses.bsd3;
-
};
-
};
+
backports_lzma = callPackage ../development/python-modules/backports_lzma { };
backports_tempfile = callPackage ../development/python-modules/backports_tempfile { };
···
};
};
-
biopython = buildPythonPackage rec {
-
name = "biopython-${version}";
-
version = "1.68";
-
-
src = pkgs.fetchurl {
-
url = "mirror://pypi/b/biopython/${name}.tar.gz";
-
sha256 = "07qc7nz0k77y8hf8s18rscvibvm91zw0kkq7ylrhisf8vp8hkp6i";
-
};
-
-
propagatedBuildInputs = with self; [ numpy ];
-
# Checks try to write to $HOME, which does not work with nix
-
doCheck = false;
-
meta = {
-
description = "Python library for bioinformatics";
-
-
longDescription = ''
-
Biopython is a set of freely available tools for biological computation
-
written in Python by an international team of developers. It is a
-
distributed collaborative effort to develop Python libraries and
-
applications which address the needs of current and future work in
-
bioinformatics.
-
'';
-
-
homepage = http://biopython.org/wiki/Documentation;
-
maintainers = with maintainers; [ luispedro ];
-
};
-
};
+
biopython = callPackage ../development/python-modules/biopython { };
bedup = buildPythonPackage rec {
version = "0.10.1";
···
propagatedBuildInputs = with self; [ boto crcmod psutil ];
};
-
cached-property = buildPythonPackage rec {
-
version = "1.3.0";
-
name = "cached-property-${version}";
-
-
src = pkgs.fetchurl {
-
url = "mirror://pypi/c/cached-property/${name}.tar.gz";
-
sha256 = "10dwi3s6f154ag9dvqy5jiwp31fs57lbxjcjgn4cwvi8qyqpi3j5";
-
};
-
-
buildInputs = with self; [ freezegun ];
-
-
meta = {
-
description = "A decorator for caching properties in classes";
-
homepage = https://github.com/pydanny/cached-property;
-
license = licenses.bsd3;
-
platforms = platforms.unix;
-
maintainers = with maintainers; [ ericsagnes ];
-
};
-
};
+
cached-property = callPackage ../development/python-modules/cached-property { };
caffe = pkgs.caffe.override {
python = self.python;
···
};
};
-
boto3 = buildPythonPackage rec {
-
name = "boto3-${version}";
-
version = "1.4.8";
-
-
src = pkgs.fetchFromGitHub {
-
owner = "boto";
-
repo = "boto3";
-
rev = version;
-
sha256 = "11ysd7a9l5y98q7b7az56phsj2m7w90abf4jabwrknp2c43sq9bi";
-
};
-
-
propagatedBuildInputs = [ self.botocore self.jmespath self.s3transfer ] ++
-
(if isPy3k then [] else [self.futures]);
-
buildInputs = [ self.docutils self.nose self.mock ];
-
checkPhase = ''
-
runHook preCheck
-
# This method is not in mock. It might have appeared in some versions.
-
sed -i 's/action.assert_called_once()/self.assertEqual(action.call_count, 1)/' \
-
tests/unit/resources/test_factory.py
-
nosetests -d tests/unit --verbose
-
runHook postCheck
-
'';
-
-
# Network access
-
doCheck = false;
-
-
meta = {
-
homepage = https://github.com/boto/boto3;
-
license = stdenv.lib.licenses.asl20;
-
description = "AWS SDK for Python";
-
longDescription = ''
-
Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for
-
Python, which allows Python developers to write software that makes use of
-
services like Amazon S3 and Amazon EC2.
-
'';
-
};
-
};
+
boto3 = callPackage ../development/python-modules/boto3 { };
botocore = callPackage ../development/python-modules/botocore { };
···
openidc-client = callPackage ../development/python-modules/openidc-client/default.nix {};
-
idna = buildPythonPackage rec {
-
pname = "idna";
-
version = "2.5";
-
name = "${pname}-${version}";
-
-
src = fetchPypi {
-
inherit pname version;
-
sha256 = "3cb5ce08046c4e3a560fc02f138d0ac63e00f8ce5901a56b32ec8b7994082aab";
-
};
-
-
meta = {
-
homepage = "http://github.com/kjd/idna/";
-
description = "Internationalized Domain Names in Applications (IDNA)";
-
license = "licenses.bsd3";
-
};
-
};
+
idna = callPackage ../development/python-modules/idna { };
mahotas = buildPythonPackage rec {
name = "python-mahotas-${version}";
···
};
};
-
pytest = self.pytest_32;
+
pytest = self.pytest_33;
pytest_27 = callPackage ../development/python-modules/pytest/2_7.nix {};
···
pytest = null;
};
};
-
pytest_32 = callPackage ../development/python-modules/pytest{
+
+
pytest_32 = callPackage ../development/python-modules/pytest/3_2.nix{
+
hypothesis = self.hypothesis.override {
+
# hypothesis requires pytest that causes dependency cycle
+
doCheck = false;
+
pytest = null;
+
};
+
};
+
+
pytest_33 = callPackage ../development/python-modules/pytest/default.nix{
hypothesis = self.hypothesis.override {
# hypothesis requires pytest that causes dependency cycle
doCheck = false;
···
};
};
-
decorator = buildPythonPackage rec {
-
name = "decorator-${version}";
-
version = "4.0.11";
-
-
src = pkgs.fetchurl {
-
url = "mirror://pypi/d/decorator/${name}.tar.gz";
-
sha256 = "953d6bf082b100f43229cf547f4f97f97e970f5ad645ee7601d55ff87afdfe76";
-
};
-
-
meta = {
-
homepage = https://pypi.python.org/pypi/decorator;
-
description = "Better living through Python with decorators";
-
license = licenses.mit;
-
};
-
};
+
decorator = callPackage ../development/python-modules/decorator { };
deform = buildPythonPackage rec {
name = "deform-2.0a2";
···
};
};
-
jdcal = buildPythonPackage rec {
-
version = "1.0";
-
name = "jdcal-${version}";
-
-
src = pkgs.fetchFromGitHub {
-
owner = "phn";
-
repo = "jdcal";
-
rev = "v${version}";
-
sha256 = "0jjgrrylraqzk3n97hay4gj00ky6vlvkfaapfgqlbcxyq30j24vq";
-
};
-
-
meta = {
-
description = "A module containing functions for converting between Julian dates and calendar dates";
-
homepage = "https://github.com/phn/jdcal";
-
license = licenses.bsd2;
-
maintainers = with maintainers; [ lihop ];
-
platforms = platforms.all;
-
};
-
};
+
jdcal = callPackage ../development/python-modules/jdcal { };
internetarchive = callPackage ../development/python-modules/internetarchive {};
···
jsmin = callPackage ../development/python-modules/jsmin { };
jsonpatch = callPackage ../development/python-modules/jsonpatch { };
+
+
jsonpickle = callPackage ../development/python-modules/jsonpickle { };
jsonpointer = buildPythonPackage rec {
name = "jsonpointer-1.9";
···
pysrt = callPackage ../development/python-modules/pysrt { };
-
pytools = buildPythonPackage rec {
-
name = "pytools-${version}";
-
version = "2017.4";
-
-
src = pkgs.fetchFromGitHub {
-
owner = "inducer";
-
repo = "pytools";
-
rev = "8078e74265bb5a3c9676c698595ab5450cd2bfe7";
-
sha256 = "17q61l79fcxkj5jxg3fnymi652sdjp5s6kpsabgxp22kma9crr28";
-
};
-
-
buildInputs = with self; [
-
decorator
-
appdirs
-
six
-
numpy
-
pytest
-
];
-
-
checkPhase = ''
-
py.test -k 'not test_persistent_dict'
-
'';
-
-
meta = {
-
homepage = https://github.com/inducer/pytools/;
-
description = "Miscellaneous Python lifesavers.";
-
license = licenses.mit;
-
maintainers = with maintainers; [ artuuge ];
-
};
-
-
};
+
pytools = callPackage ../development/python-modules/pytools { };
pytun = buildPythonPackage rec {
name = "pytun-${version}";
···
hyperlink = callPackage ../development/python-modules/hyperlink {};
-
zope_copy = buildPythonPackage rec {
-
name = "zope.copy-4.0.2";
-
-
src = pkgs.fetchurl {
-
url = "mirror://pypi/z/zope.copy/${name}.zip";
-
sha256 = "eb2a95866df1377741876a3ee62d8600e80089e6246e1a235e86791b29534457";
-
};
-
-
buildInputs = with self; [ zope_interface zope_location zope_schema ];
-
-
meta = {
-
maintainers = with maintainers; [ domenkozar ];
-
};
-
};
-
+
zope_copy = callPackage ../development/python-modules/zope_copy {};
ssdeep = buildPythonPackage rec {
name = "ssdeep-3.1.1";
···
};
};
-
regex = buildPythonPackage rec {
-
name = "regex-${version}";
-
version = "2016.11.18";
-
-
src = pkgs.fetchurl {
-
url = "mirror://pypi/r/regex/${name}.tar.gz";
-
sha256 = "126ds2b355n3pgl7brshhscpxn14ycs0yznzl8k4akj4sps1i6c6";
-
};
-
-
meta = {
-
description = "Alternative regular expression module, to replace re";
-
homepage = "https://bitbucket.org/mrabarnett/mrab-regex";
-
license = licenses.psfl;
-
platforms = platforms.linux;
-
maintainers = with maintainers; [ abbradar ];
-
};
-
};
+
regex = callPackage ../development/python-modules/regex { };
repoze_lru = buildPythonPackage rec {
name = "repoze.lru-0.6";
···
platforms = platforms.all;
};
};
-
-
repoze_sphinx_autointerface = buildPythonPackage rec {
name = "repoze.sphinx.autointerface-0.7.1";
···
};
-
html5lib = buildPythonPackage (rec {
-
version = "0.999999999";
-
name = "html5lib-${version}";
-
-
src = pkgs.fetchurl {
-
url = "http://github.com/html5lib/html5lib-python/archive/${version}.tar.gz";
-
sha256 = "09j6194f5mlnd5xwbavwvnndwl1x91jw74shxl6hcxjp4fxg3h05";
-
};
-
-
buildInputs = with self; [ flake8 pytest pytest-expect mock ];
-
propagatedBuildInputs = with self; [
-
six webencodings
-
] ++ optionals isPy26 [ ordereddict ];
-
-
checkPhase = ''
-
py.test
-
'';
-
-
meta = {
-
homepage = https://github.com/html5lib/html5lib-python;
-
downloadPage = https://github.com/html5lib/html5lib-python/releases;
-
description = "HTML parser based on WHAT-WG HTML5 specification";
-
longDescription = ''
-
html5lib is a pure-python library for parsing HTML. It is designed to
-
conform to the WHATWG HTML specification, as is implemented by all
-
major web browsers.
-
'';
-
license = licenses.mit;
-
maintainers = with maintainers; [ domenkozar prikhi ];
-
};
-
});
+
html5lib = callPackage ../development/python-modules/html5lib { };
http_signature = buildPythonPackage (rec {
name = "http_signature-0.1.4";
···
iso3166 = callPackage ../development/python-modules/iso3166 {};
-
iso8601 = buildPythonPackage rec {
-
name = "iso8601-${version}";
-
version = "0.1.11";
-
src = pkgs.fetchurl {
-
url = "mirror://pypi/i/iso8601/${name}.tar.gz";
-
sha256 = "e8fb52f78880ae063336c94eb5b87b181e6a0cc33a6c008511bac9a6e980ef30";
-
};
-
-
buildInputs = [ self.pytest ];
-
-
checkPhase = ''
-
py.test iso8601
-
'';
-
-
meta = {
-
homepage = https://bitbucket.org/micktwomey/pyiso8601/;
-
description = "Simple module to parse ISO 8601 dates";
-
maintainers = with maintainers; [ phreedom ];
-
};
-
};
+
iso8601 = callPackage ../development/python-modules/iso8601 { };
isort = buildPythonPackage rec {
name = "${pname}-${version}";
···
jedi = callPackage ../development/python-modules/jedi { };
-
jellyfish = buildPythonPackage rec {
-
version = "0.5.2";
-
name = "jellyfish-${version}";
-
-
src = pkgs.fetchurl {
-
url = "mirror://pypi/j/jellyfish/${name}.tar.gz";
-
sha256 = "15xk0kbr1gig9r1mp22lk9mk3jyi886h8ywn9diixhnyl4q6dacn";
-
};
-
-
buildInputs = with self; [ pytest unicodecsv ];
-
-
meta = {
-
homepage = https://github.com/sunlightlabs/jellyfish;
-
description = "Approximate and phonetic matching of strings";
-
maintainers = with maintainers; [ koral ];
-
};
-
};
+
jellyfish = callPackage ../development/python-modules/jellyfish { };
j2cli = buildPythonPackage rec {
name = "j2cli-${version}";
···
};
jsondate = callPackage ../development/python-modules/jsondate { };
+
+
jsondiff = callPackage ../development/python-modules/jsondiff { };
jsonnet = buildPythonPackage {
inherit (pkgs.jsonnet) name src;
···
};
koji = callPackage ../development/python-modules/koji { };
-
-
kombu_3 = buildPythonPackage rec {
-
name = "kombu-${version}";
-
version = "3.0.35";
-
-
disabled = pythonOlder "2.6";
-
-
src = pkgs.fetchurl {
-
url = "mirror://pypi/k/kombu/${name}.tar.gz";
-
sha256 = "09xpxpjz9nk8d14dj361dqdwyjwda3jlf1a7v6jif9wn2xm37ar2";
-
};
-
-
# most of these are simply to allow the test suite to do its job
-
buildInputs = with self; optionals isPy27 [ mock unittest2 nose redis qpid-python pymongo sqlalchemy pyyaml msgpack boto ];
-
-
propagatedBuildInputs = with self; [ amqp_1 anyjson ] ++
-
(optionals (pythonOlder "2.7") [ importlib ordereddict ]);
-
-
# tests broken on python 2.6? https://github.com/nose-devs/nose/issues/806
-
doCheck = isPy27;
-
-
meta = {
-
description = "Messaging library for Python";
-
homepage = "http://github.com/celery/kombu";
-
license = licenses.bsd3;
-
};
-
};
kombu = buildPythonPackage rec {
name = "kombu-${version}";
···
locustio = callPackage ../development/python-modules/locustio { };
-
llvmlite = callPackage ../development/python-modules/llvmlite {llvm=pkgs.llvm_4;};
+
llvmlite = callPackage ../development/python-modules/llvmlite {llvm=pkgs.llvm_5;};
lockfile = buildPythonPackage rec {
pname = "lockfile";
···
logilab-constraint = callPackage ../development/python-modules/logilab/constraint.nix {};
-
lxml = buildPythonPackage ( rec {
-
name = "lxml-3.8.0";
-
-
src = pkgs.fetchurl {
-
url = "mirror://pypi/l/lxml/${name}.tar.gz";
-
sha256 = "15nvf6n285n282682qyw3wihsncb0x5amdhyi4b83bfa2nz74vvk";
-
};
-
-
buildInputs = with self; [ pkgs.libxml2 pkgs.libxslt ];
-
-
hardeningDisable = stdenv.lib.optional stdenv.isDarwin "format";
-
-
meta = {
-
description = "Pythonic binding for the libxml2 and libxslt libraries";
-
homepage = http://lxml.de;
-
license = licenses.bsd3;
-
maintainers = with maintainers; [ sjourdois ];
-
};
-
});
+
lxml = callPackage ../development/python-modules/lxml {inherit (pkgs) libxml2 libxslt;};
lxc = buildPythonPackage (rec {
name = "python-lxc-unstable-2016-08-25";
···
-
-
Mako = buildPythonPackage rec {
-
name = "Mako-1.0.4";
-
-
src = pkgs.fetchurl {
-
url = "mirror://pypi/M/Mako/${name}.tar.gz";
-
sha256 = "0nchpw6akfcsg8w6irjlx0gyzadc123hv4g47sijgnqd9nz9vngy";
-
};
-
-
buildInputs = with self; [ markupsafe nose mock pytest ];
-
propagatedBuildInputs = with self; [ markupsafe ];
-
-
doCheck = !isPyPy; # https://bitbucket.org/zzzeek/mako/issue/238/2-tests-failed-on-pypy-24-25
-
-
meta = {
-
description = "Super-fast templating language";
-
homepage = http://www.makotemplates.org;
-
license = licenses.mit;
-
platforms = platforms.unix;
-
maintainers = with maintainers; [ domenkozar ];
-
};
-
};
+
Mako = callPackage ../development/python-modules/Mako { };
manifestparser = callPackage ../development/python-modules/marionette-harness/manifestparser.nix {};
marionette_driver = callPackage ../development/python-modules/marionette-harness/marionette_driver.nix {};
···
-
markdown = buildPythonPackage rec {
-
version = "2.6.8";
-
name = "markdown-${version}";
-
-
src = pkgs.fetchurl {
-
url = "mirror://pypi/M/Markdown/Markdown-${version}.tar.gz";
-
sha256 = "0cqfhr1km2s5d8jm6hbwgkrrj9hvkjf2gab3s2axlrw1clgaij0a";
-
};
-
-
# error: invalid command 'test'
-
doCheck = false;
-
-
meta = {
-
homepage = http://www.freewisdom.org/projects/python-markdown;
-
};
-
};
+
markdown = callPackage ../development/python-modules/markdown { };
markdownsuperscript = callPackage ../development/python-modules/markdownsuperscript {};
···
mistune = callPackage ../development/python-modules/mistune { };
-
brotlipy = buildPythonPackage rec {
-
name = "brotlipy-${version}";
-
version = "0.6.0";
-
-
src = pkgs.fetchurl {
-
url = "mirror://pypi/b/brotlipy/${name}.tar.gz";
-
sha256 = "10s2y19zywfkf3sksrw81czhva759aki0clld2pnnlgf64sz7016";
-
};
-
-
propagatedBuildInputs = with self; [ cffi enum34 construct ];
-
-
meta = {
-
description = "Python bindings for the reference Brotli encoder/decoder";
-
homepage = "https://github.com/python-hyper/brotlipy/";
-
license = licenses.mit;
-
};
-
};
+
brotlipy = callPackage ../development/python-modules/brotlipy { };
sortedcontainers = buildPythonPackage rec {
name = "sortedcontainers-${version}";
···
sha256 = "0x0c2jg0bb3pp84njaqiic050qkyd7ymwhfvhipnimg58yv40441";
-
buildInputs = with self; [ nose pkgs.openssl ];
+
buildInputs = with self; [ nose ];
-
propagatedBuildInputs = with self; [ pkgs.mysql.lib pkgs.zlib ];
+
propagatedBuildInputs = with self; [ pkgs.mysql.connector-c ];
meta = {
description = "MySQL database binding for Python";
···
+
plone-testing = callPackage ../development/python-modules/plone-testing { };
+
ply = buildPythonPackage (rec {
name = "ply-3.8";
···
parso = callPackage ../development/python-modules/parso { };
-
partd = buildPythonPackage rec {
-
name = "partd-${version}";
-
version = "0.3.7";
-
-
src = pkgs.fetchurl {
-
url = "mirror://pypi/p/partd/${name}.tar.gz";
-
sha256 = "066d254d2dh9xcanffgkjgwxpz5v0059b063bij10fvzl2y49hzx";
-
};
-
-
buildInputs = with self; [ pytest ];
-
-
propagatedBuildInputs = with self; [ locket numpy pandas pyzmq toolz ];
-
-
checkPhase = ''
-
rm partd/tests/test_zmq.py # requires network & fails
-
py.test
-
'';
-
-
meta = {
-
description = "Appendable key-value storage";
-
license = with licenses; [ bsd3 ];
-
homepage = https://github.com/dask/partd/;
-
};
-
};
+
partd = callPackage ../development/python-modules/partd { };
patch = buildPythonPackage rec {
name = "${pname}-${version}";
···
pyxattr = callPackage ../development/python-modules/pyxattr { };
-
pyaml = buildPythonPackage (rec {
-
name = "pyaml-15.02.1";
-
disabled = !isPy27;
-
-
src = pkgs.fetchurl {
-
url = "mirror://pypi/p/pyaml/${name}.tar.gz";
-
sha256 = "8dfe1b295116115695752acc84d15ecf5c1c469975fbed7672bf41a6bc6d6d51";
-
};
-
-
buildInputs = with self; [ pyyaml ];
-
-
meta = {
-
description = "PyYAML-based module to produce pretty and readable YAML-serialized data";
-
homepage = https://github.com/mk-fg/pretty-yaml;
-
};
-
});
-
+
pyaml = callPackage ../development/python-modules/pyaml { };
pyyaml = buildPythonPackage (rec {
name = "PyYAML-3.12";
···
});
+
splinter = callPackage ../development/python-modules/splinter { };
+
spotipy = callPackage ../development/python-modules/spotipy { };
Pweave = buildPythonPackage (rec {
···
-
structlog = buildPythonPackage rec {
-
name = "structlog-16.1.0";
-
-
src = pkgs.fetchurl {
-
url = "mirror://pypi/s/structlog/${name}.tar.gz";
-
sha256 = "00dywyg3bqlkrmbrfrql21hpjjjkc4zjd6xxjyxyd15brfnzlkdl";
-
};
-
-
buildInputs = with self; [ pytest pretend freezegun ];
-
propagatedBuildInputs = with self; [ simplejson ];
-
-
checkPhase = ''
-
rm tests/test_twisted.py*
-
py.test
-
'';
-
-
meta = {
-
description = "Painless structural logging";
-
homepage = http://www.structlog.org/;
-
license = licenses.asl20;
-
};
-
};
+
structlog = callPackage ../development/python-modules/structlog { };
svgwrite = buildPythonPackage rec {
name = "svgwrite-${version}";
···
-
extras = buildPythonPackage rec {
-
name = "extras-${version}";
-
version = "0.0.3";
+
extras = callPackage ../development/python-modules/extras { };
-
src = pkgs.fetchurl {
-
url = "mirror://pypi/e/extras/extras-${version}.tar.gz";
-
sha256 = "1h7zx4dfyclalg0fqnfjijpn0f793a9mx8sy3b27gd31nr6dhq3s";
-
};
-
-
# error: invalid command 'test'
-
doCheck = false;
-
-
meta = {
-
description = "A module provides basic functions for parsing mime-type names and matching them against a list of media-ranges";
-
homepage = https://code.google.com/p/mimeparse/;
-
license = licenses.mit;
-
};
-
};
-
-
texttable = self.buildPythonPackage rec {
-
name = "texttable-0.8.4";
-
-
src = pkgs.fetchurl {
-
url = "mirror://pypi/t/texttable/${name}.tar.gz";
-
sha256 = "0bkhs4dx9s6g7fpb969hygq56hyz4ncfamlynw72s0n6nqfbd1w5";
-
};
-
-
meta = {
-
description = "A module to generate a formatted text table, using ASCII characters";
-
homepage = http://foutaise.org/code/;
-
license = licenses.lgpl2;
-
};
-
};
+
texttable = callPackage ../development/python-modules/texttable { };
tiros = callPackage ../development/python-modules/tiros { };
···
toolz = callPackage ../development/python-modules/toolz { };
-
tox = buildPythonPackage rec {
-
name = "tox-${version}";
-
version = "2.4.1";
-
-
propagatedBuildInputs = with self; [ py virtualenv pluggy ];
-
-
doCheck = false;
-
-
src = pkgs.fetchurl {
-
url = "mirror://pypi/t/tox/${name}.tar.gz";
-
sha256 = "1nwn4jz8ns53n17bm1xkzlz4zyyxbgjwrcg2cjsn25ab7hd5fwv6";
-
};
-
};
+
tox = callPackage ../development/python-modules/tox { };
tqdm = callPackage ../development/python-modules/tqdm { };
···
-
networkx = buildPythonPackage rec {
-
version = "1.11";
-
name = "networkx-${version}";
-
-
# Currently broken on PyPy.
-
# https://github.com/networkx/networkx/pull/1361
-
disabled = isPyPy;
-
-
src = pkgs.fetchurl {
-
url = "mirror://pypi/n/networkx/${name}.tar.gz";
-
sha256 = "1f74s56xb4ggixiq0vxyfxsfk8p20c7a099lpcf60izv1php03hd";
-
};
-
-
buildInputs = with self; [ nose ];
-
propagatedBuildInputs = with self; [ decorator ];
-
-
# 17 failures with 3.6 https://github.com/networkx/networkx/issues/2396#issuecomment-304437299
-
doCheck = !(isPy36);
-
-
meta = {
-
homepage = "https://networkx.github.io/";
-
description = "Library for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks";
-
license = licenses.bsd3;
-
};
-
};
+
networkx = callPackage ../development/python-modules/networkx { };
ofxclient = callPackage ../development/python-modules/ofxclient {};
···
-
pluggy = buildPythonPackage rec {
-
name = "pluggy-${version}";
-
version = "0.3.1";
-
-
src = pkgs.fetchurl {
-
url = "mirror://pypi/p/pluggy/${name}.tar.gz";
-
sha256 = "18qfzfm40bgx672lkg8q9x5hdh76n7vax99aank7vh2nw21wg70m";
-
};
-
-
meta = {
-
description = "Plugin and hook calling mechanisms for Python";
-
homepage = "https://pypi.python.org/pypi/pluggy";
-
license = licenses.mit;
-
maintainers = with maintainers; [ jgeerds ];
-
};
-
};
+
pluggy = callPackage ../development/python-modules/pluggy {};
xcffib = buildPythonPackage rec {
version = "0.3.2";
+53 -16
pkgs/top-level/splice.nix
···
lib: pkgs: actuallySplice:
let
-
defaultBuildScope = pkgs.buildPackages // pkgs.buildPackages.xorg;
+
defaultBuildBuildScope = pkgs.buildPackages.buildPackages // pkgs.buildPackages.buildPackages.xorg;
+
defaultBuildHostScope = pkgs.buildPackages // pkgs.buildPackages.xorg;
+
defaultBuildTargetScope =
+
if pkgs.targetPlatform == pkgs.hostPlatform
+
then defaultBuildHostScope
+
else assert pkgs.hostPlatform == pkgs.buildPlatform; defaultHostTargetScope;
+
defaultHostHostScope = {}; # unimplemented
# TODO(@Ericson2314): we shouldn't preclude run-time fetching by removing
# these attributes. We should have a more general solution for selecting
# whether `nativeDrv` or `crossDrv` is the default in `defaultScope`.
pkgsWithoutFetchers = lib.filterAttrs (n: _: !lib.hasPrefix "fetch" n) pkgs;
-
defaultRunScope = pkgsWithoutFetchers // pkgs.xorg;
+
targetPkgsWithoutFetchers = lib.filterAttrs (n: _: !lib.hasPrefix "fetch" n) pkgs.targetPackages;
+
defaultHostTargetScope = pkgsWithoutFetchers // pkgs.xorg;
+
defaultTargetTargetScope = targetPkgsWithoutFetchers // targetPkgsWithoutFetchers.xorg or {};
-
splicer = buildPkgs: runPkgs: let
-
mash = buildPkgs // runPkgs;
+
splicer = pkgsBuildBuild: pkgsBuildHost: pkgsBuildTarget:
+
pkgsHostHost: pkgsHostTarget:
+
pkgsTargetTarget: let
+
mash =
+
# Other pkgs sets
+
pkgsBuildBuild // pkgsBuildTarget // pkgsHostHost // pkgsTargetTarget
+
# The same pkgs sets one probably intends
+
// pkgsBuildHost // pkgsHostTarget;
merge = name: {
inherit name;
value = let
defaultValue = mash.${name};
# `or {}` is for the non-derivation attsert splicing case, where `{}` is the identity.
-
buildValue = buildPkgs.${name} or {};
-
runValue = runPkgs.${name} or {};
+
valueBuildBuild = pkgsBuildBuild.${name} or {};
+
valueBuildHost = pkgsBuildHost.${name} or {};
+
valueBuildTarget = pkgsBuildTarget.${name} or {};
+
valueHostHost = throw "`valueHostHost` unimplemented: pass manually rather than relying on splicer.";
+
valueHostTarget = pkgsHostTarget.${name} or {};
+
valueTargetTarget = pkgsTargetTarget.${name} or {};
augmentedValue = defaultValue
-
// (lib.optionalAttrs (buildPkgs ? ${name}) { nativeDrv = buildValue; })
-
// (lib.optionalAttrs (runPkgs ? ${name}) { crossDrv = runValue; });
+
# TODO(@Ericson2314): Stop using old names after transition period
+
// (lib.optionalAttrs (pkgsBuildHost ? ${name}) { nativeDrv = valueBuildHost; })
+
// (lib.optionalAttrs (pkgsHostTarget ? ${name}) { crossDrv = valueHostTarget; })
+
// {
+
__spliced =
+
(lib.optionalAttrs (pkgsBuildBuild ? ${name}) { buildBuild = valueBuildBuild; })
+
// (lib.optionalAttrs (pkgsBuildTarget ? ${name}) { buildTarget = valueBuildTarget; })
+
// { hostHost = valueHostHost; }
+
// (lib.optionalAttrs (pkgsTargetTarget ? ${name}) { targetTarget = valueTargetTarget;
+
});
+
};
# Get the set of outputs of a derivation. If one derivation fails to
# evaluate we don't want to diverge the entire splice, so we fall back
# on {}
···
in
# The derivation along with its outputs, which we recur
# on to splice them together.
-
if lib.isDerivation defaultValue then augmentedValue
-
// splicer (tryGetOutputs buildValue) (getOutputs runValue)
+
if lib.isDerivation defaultValue then augmentedValue // splicer
+
(tryGetOutputs valueBuildBuild) (tryGetOutputs valueBuildHost) (tryGetOutputs valueBuildTarget)
+
(tryGetOutputs valueHostHost) (getOutputs valueHostTarget)
+
(tryGetOutputs valueTargetTarget)
# Just recur on plain attrsets
-
else if lib.isAttrs defaultValue then splicer buildValue runValue
+
else if lib.isAttrs defaultValue then splicer
+
valueBuildBuild valueBuildHost valueBuildTarget
+
{} valueHostTarget
+
valueTargetTarget
# Don't be fancy about non-derivations. But we could have used used
# `__functor__` for functions instead.
else defaultValue;
···
splicedPackages =
if actuallySplice
-
then splicer defaultBuildScope defaultRunScope // {
-
# These should never be spliced under any circumstances
-
inherit (pkgs) pkgs buildPackages targetPackages
-
buildPlatform targetPlatform hostPlatform;
-
}
+
then
+
splicer
+
defaultBuildBuildScope defaultBuildHostScope defaultBuildTargetScope
+
defaultHostHostScope defaultHostTargetScope
+
defaultTargetTargetScope
+
// {
+
# These should never be spliced under any circumstances
+
inherit (pkgs) pkgs buildPackages targetPackages
+
buildPlatform targetPlatform hostPlatform;
+
}
else pkgs // pkgs.xorg;
in