Commit Graph

3427 Commits

Author SHA1 Message Date
Eelco Dolstra
817145ebbc binutils: 2.23.1 -> 2.26
There has been an abortive attempt to upgrade binutils in the past
(see #909). Since we can't stay stuck at 2.23.1 forever, let's try
again.
2016-02-28 01:10:35 +01:00
Eelco Dolstra
424af2cd52 patchelf: 0.8 -> 0.9 2016-02-27 21:47:59 +01:00
zimbatm
17348dc094 Remove all dots at end of descriptions
Specially crafted for @JagaJaga

    find pkgs -name "*.nix" -exec \
      sed -e 's|\(description.*\)\.";|\1";|g' -i {} \;
2016-02-27 17:30:29 +00:00
Lancelot SIX
0467a17858 pythonPackages.sqlalchemy: follows upstream, sqlalchemy7 for lecagy
This makes pythonPackages.sqlalchemy the most up to date revision (it
was called sqlalchemy_1_0 before), and maintains the various “legacy”
versions available as pythonPackages.sqlalchemyX for X in {7,8,9}.

All derivations that required `sqlalchemy_1_0` now require `sqlalchemy`
while those that required `sqlalchemy` now require `sqlalchemy7`.

The derivations are not changed, only the attribute names they are
bound to.
2016-02-27 12:11:12 +01:00
zimbatm
7feaf55b7e Merge pull request #11314 from anderspapitto/flamegraph
FlameGraph: init at 182b24fb
2016-02-26 23:16:27 +00:00
zimbatm
35ab3d301f Merge remote-tracking branch 'upstream/staging' 2016-02-26 22:37:04 +00:00
zimbatm
c183117aee Merge pull request #13441 from gilligan/add-galen-package
galen init at 2.2.1
2016-02-26 18:05:40 +00:00
Charles Strahan
53ea7dee75 emacs: fix priority for ctags
This fixes the previous attempt (in commit 46d1dd5) to make ctags' ctags
override emacs' ctags. The higher the value of the priority attribute,
the higher the priority (see the definition of `buildEnv`).
2016-02-26 12:27:04 -05:00
Arseniy Seroka
edeb5480fc Merge pull request #13438 from kamilchm/nimble
nimble: init at 0.7.2
2016-02-25 20:50:46 +03:00
Robin Gloster
c087af0d8c Merge pull request #13450 from zimbatm/cide-dependency-fix
cide: add missing git runtime dependency
2016-02-25 16:58:44 +01:00
Robin Gloster
46e1af9bba Merge pull request #13444 from gilligan/update-sauce-connect
sauce-connect: 4.3.6 -> 4.3.13
2016-02-25 16:56:44 +01:00
zimbatm
84a4d9e0e1 cide: add missing git runtime dependency
`git` is being used during `cide package`
2016-02-25 15:15:00 +00:00
Arseniy Seroka
a68eae7866 rustfmt: 2015-12-23 -> 2016-02-15 2016-02-25 15:57:18 +03:00
Nikolay Amiantov
a4902ff1fa rustUnstable.cargo: 2016-01-10 -> 2016-02-25 2016-02-25 14:21:46 +03:00
Kamil Chmielewski
770f66b2ce nimble: init at 0.7.2 2016-02-25 12:06:45 +01:00
Tobias Pflug
93aea6eccd sauce-connect: 4.3.6 -> 4.3.13 2016-02-25 11:54:17 +01:00
Tobias Pflug
4304419443 galen init at 2.2.1 2016-02-25 10:25:31 +01:00
Allan Espinosa
21917bc8e2 jenkins: 1.649 -> 1.650 2016-02-25 02:16:35 -06:00
Vladimír Čunát
93f6af1071 Merge branch 'master' into staging 2016-02-25 09:01:48 +01:00
Vladimír Čunát
30b7bd8d01 Merge branch 'glibc-2.22' into staging
I'm running whole my working notebook on 2.22 without any problems.
I don't expect any significant issues.
2016-02-25 08:42:59 +01:00
Lancelot SIX
d7cb5f47d3 gdb: 7.10 -> 7.11
See announcement here :
http://lists.gnu.org/archive/html/info-gnu/2016-02/msg00010.html
2016-02-24 15:55:20 +01:00
vbgl
b05708ba0e Merge pull request #12741 from regnat/ocamlUpdates
ocamlPackages.findlib: 1.5.3 -> 1.6.1
2016-02-24 12:00:25 +01:00
Wout Mertens
17a759f346 Watchman: 4.3.0 => 4.5.0 2016-02-24 11:22:59 +01:00
Eelco Dolstra
aff0451c10 patchELF: Use correct directory
Borrowed from https://github.com/NixOS/nixpkgs/pull/13395.
2016-02-24 11:13:36 +01:00
Jude Taylor
45ea4956d8 fix library dependencies for cargo on darwin 2016-02-23 16:42:51 -08:00
zimbatm
4fd875be4e Merge pull request #13356 from zimbatm/cide
cide: init at 0.8.1
2016-02-23 22:28:02 +00:00
Arseniy Seroka
ee7c6d71b4 Merge pull request #13392 from spacefrogg/dialog
dialog: 1.2-20150920 -> 1.3-20160209
2016-02-23 21:29:10 +03:00
Frederik Rietdijk
40ca841c5c Merge pull request #13124 from FRidh/buildPythonApplication
buildPythonApplication: use new function for Python applications
2016-02-23 16:02:10 +01:00
Michael Raitza
af6c867512 dialog: 1.2-20150920 -> 1.3-20160209 2016-02-23 14:51:28 +00:00
Allan Espinosa
491007d0a1 jenkins: 1.647 -> 1.649 2016-02-22 00:37:07 -06:00
zimbatm
b58e26dbf6 cide: init at 0.8.1 2016-02-21 21:11:35 +00:00
Michael Hoy
7d6f2c4e3f mdk: init at 1.2.9 2016-02-21 13:56:40 -06:00
Edward Tjörnhammar
8968a6e604 dcadec: init at 0.2.0 2016-02-21 15:32:12 +01:00
Pascal Wittmann
50f45db51c icmake: 8.00.05 -> 8.01.00 2016-02-20 20:28:26 +01:00
Arseniy Seroka
a23a53a571 Merge pull request #13055 from dochang/rolespec
rolespec: init at 20160105
2016-02-19 23:02:16 +03:00
Frederik Rietdijk
4d06bf70f4 buildPythonApplication: use new function for Python applications 2016-02-19 13:16:41 +01:00
Eelco Dolstra
d71a4851e8 Don't try to apply patchelf to non-ELF binaries 2016-02-18 22:54:11 +01:00
Eelco Dolstra
8af685d089 Merge pull request #13097 from jerith666/antrun
ant: preserve antRun script
2016-02-18 19:48:12 +01:00
Matt McHenry
e5e633ca11 ant: preserve antRun script 2016-02-18 10:13:39 -05:00
Alexey Shmalko
bdf89087d9 gdb: add multitarget option
Multitarget option builds gdb with support for all targets. That's
similar to gdb-multiarch package in Ubuntu or gdb with multitarget
USE-flag in Gentoo.
2016-02-18 07:26:27 +02:00
Tomas Hlavaty
a6c09bf4b4 msitools: init at 0.94
I'm leaving authorship to the one who created most of the expression.
2016-02-17 22:05:21 +01:00
Allan Espinosa
60c7bd1237 jenkins: 1.643 -> 1.647 2016-02-17 20:45:01 +01:00
Vladimír Čunát
e9520e81b3 Merge branch 'master' into staging 2016-02-17 10:06:31 +01:00
Vladimír Čunát
2f3eae3a87 pkgconfig: add a http-only mirror
It seems we don't really need `fetchurlBoot` here ATM, but let's keep it.
https://github.com/NixOS/nixpkgs/issues/12816#issuecomment-185083205
2016-02-17 08:49:59 +01:00
Desmond O. Chang
c7ec0f6f2f rolespec: init at 20160105 2016-02-17 05:46:55 +08:00
Herwig Hochleitner
b7b696e534 leiningen: 2.5.3 -> 2.6.1 2016-02-16 22:39:34 +01:00
Valérian Galliat
2678f36884 Fix OMake source URL
Current source is 404, moving to pkgs.fedoraproject.org mirror.

Should fix current aborted jobs on Hydra: http://hydra.nixos.org/eval/1237311#tabs-aborted
2016-02-16 10:34:21 -05:00
Pascal Wittmann
72161f6810 ragel: use new texlive infrastructure 2016-02-15 18:34:55 +01:00
Pascal Wittmann
6d6f331109 ragel: 6.9 -> 7.0.0.6 2016-02-15 18:34:55 +01:00
Pascal Wittmann
eef111fee8 checkstyle: 6.14.1 -> 6.15 2016-02-15 17:35:11 +01:00
Vladimír Čunát
d039c87984 Merge branch 'master' into closure-size 2016-02-14 08:33:51 +01:00
Robin Gloster
4374ffa19a kibana: 4.1.2 -> 4.4.1 2016-02-13 15:03:09 +00:00
Robin Gloster
c2b578386e kibana: fix pkg and module 2016-02-13 15:03:09 +00:00
Arseniy Seroka
ef5928f223 Merge pull request #12926 from NeQuissimus/gradle211
gradle: 2.10 -> 2.11
2016-02-11 16:53:53 +03:00
Arseniy Seroka
6a44d3fb9d Merge pull request #12884 from elitak/sunxi-tools_packages
sunxi-tools: (new)
2016-02-11 16:52:50 +03:00
Tim Steinbach
e81fd09b85 gradle: 2.10 -> 2.11 2016-02-10 21:48:45 +00:00
Domen Kožar
c00fc87f96 Merge pull request #12905 from tg-x/pflask
pflask
2016-02-10 21:20:14 +00:00
tg(x)
310a20eda8 waf 2016-02-10 20:34:05 +01:00
Eric Litak
0d1d91efdd sunxi-tools: init at 1.3 2016-02-10 10:48:08 -08:00
Eelco Dolstra
aea262f654 Fix misspelled meta.maintainers attributes 2016-02-10 14:59:50 +01:00
Vladimír Čunát
a115bff08c Merge branch 'master' into staging 2016-02-07 13:52:42 +01:00
Kevin Cox
47c863f9ef backblaze-b2: init at version 0.3.10 2016-02-03 18:45:01 -05:00
Nikolay Amiantov
d9c4fc4de9 Merge pull request #12682 from zohl/nant
NAnt
2016-02-03 22:56:12 +03:00
Al Zohali
9679042278 nant: init at 20151115 2016-02-03 22:00:41 +03:00
Vladimír Čunát
54299b60c4 Merge #12779: Mass replace pkg}/bin-style strings
... to refer to correct outputs
2016-02-03 17:25:22 +01:00
Vladimír Čunát
d3a3aa8674 Merge #12740: multiple outputs for Qt 5 and KDE 5 2016-02-03 17:09:09 +01:00
Vladimír Čunát
80270e2019 cmake: maintenance updates 3.4.0 -> 3.4.3 2016-02-03 16:59:38 +01:00
Vladimír Čunát
ae74c356d9 Merge recent 'staging' into closure-size
Let's get rid of those merge conflicts.
2016-02-03 16:57:19 +01:00
Ricardo M. Correia
52475afe77 cargo: 0.7.0 -> 0.8.0 2016-02-02 17:25:44 +01:00
Tuomas Tynkkynen
13b3f3f246 treewide: Mass replace 'openssl}/bin' to refer the 'bin' output 2016-02-01 20:46:16 +02:00
Théophane Hufschmitt
5b28d3f1eb ocamlPackages.findlib: 1.5.3 -> 1.6.1 2016-02-01 09:12:40 +01:00
Thomas Tuegel
a714284d8b cmake: don't set incompatible flags for multiple outputs 2016-01-31 21:15:03 -06:00
Thomas Tuegel
1087020a46 cmake: invoke configure hooks correctly
Otherwise, the multiple-outputs hooks will not fire correctly.
2016-01-31 21:15:03 -06:00
Robin Gloster
7e69d721fd Merge pull request #12533 from zimbatm/packer-0.8.6
packer: 0.7.5 -> 0.8.6
2016-01-30 16:01:15 +01:00
Moritz Ulrich
4ee173e011 rr: 4.0.0 -> 4.0.3 2016-01-29 12:28:08 +01:00
Charles Strahan
7b8cd1dce9 watchman: 4.1.0 -> 4.3.0
* improved handling of case insensitive filenames
* improved reliability of symlink change detection on osx
2016-01-28 11:58:33 -05:00
Christian Albrecht
8975148a16 vagrant: 1.8.0 -> 1.8.1 2016-01-28 01:01:56 +01:00
Tobias Geerinckx-Rice
ac33b4724a More version attribute tidying where maintainers |= nckx 2016-01-25 20:08:34 +01:00
Tobias Geerinckx-Rice
9fb8020e4e Add version attribute where maintainers |= nckx
This will probably be mandatory soon, and is a step in the right
direction. Removes the deprecated meta.version, and move some meta
sections to the end of the file where I should have put them in
the first place.
2016-01-25 17:35:21 +01:00
Vladimír Čunát
1f2b819783 binutils: extend meta.platforms to unix to fix #12606
Also refactor meta.
Maybe we could have platforms.all in there, but I leave it here.
2016-01-25 11:18:10 +01:00
Arseniy Seroka
d6d22151fa Merge pull request #12588 from dezgeg/pr-binutils-platforms
binutils: Add platforms
2016-01-24 23:12:14 +03:00
Tuomas Tynkkynen
ed7dbb46a8 treewide: Mass replace 'zlib}/lib' to refer the 'out' output 2016-01-24 10:03:39 +02:00
Tuomas Tynkkynen
5d52f55426 treewide: Mass replace 'xorg.libX11}/lib' to refer the 'out' output 2016-01-24 10:03:37 +02:00
Tuomas Tynkkynen
f62dbc0121 binutils: Add platforms
There are some variants of binutils in all-packages.nix that aren't
getting built by Hydra currently.
2016-01-24 08:47:46 +02:00
Tim Cuthbertson
b82d5ef857 gup: 0.5.1 -> 0.5.3 2016-01-24 16:34:07 +11:00
Tobias Geerinckx-Rice
32d40f0f98 Remove no longer (or never) referenced patches
55 files changed, 6041 deletions. Tested with `nix-build -A tarball`.
2016-01-24 02:02:21 +01:00
zimbatm
c38fae0a2c packer: 0.7.5 -> 0.8.6 2016-01-21 23:17:54 +00:00
Gleb Peregud
6dc5dc1068 rebar3-nix-bootstrap: 0.0.2 -> 0.0.3 2016-01-19 12:58:33 +01:00
Vladimír Čunát
716aac2519 Merge branch 'staging' into closure-size 2016-01-19 09:55:31 +01:00
Gleb Peregud
8d6dd873a9 rebar3-nix-bootstrap: 0.0.1 -> 0.0.2 2016-01-18 23:13:40 +01:00
Gleb Peregud
a7f7698e04 hex2nix: 0.0.2 -> 0.0.3 2016-01-18 23:13:40 +01:00
Eric Merritt
8021b5241c rebar3: refactor to make hermetic
This adds changes to the rebar3 expression that patch rebar3 to force it
to be hermetic. Now, by default, rebar3 literally can't download
anything. A 'rebar3-open' expression was added for those folks whe want
the normal rebar3.
2016-01-18 08:19:15 -08:00
Franz Pletz
55fc3acfcb Merge pull request #12159 from rasendubi/ycmd
ycmd: Init at 2016-01-12
2016-01-18 14:11:22 +01:00
Vladimír Čunát
620c147cce Merge branch 'master' into staging 2016-01-18 09:48:49 +01:00
vbgl
c23b0856fd Merge pull request #12064 from FlorentBecker/eliom42
Eliom42
2016-01-18 09:32:48 +01:00
Robin Gloster
ba4b4752f2 racerRust: 1.0.0 -> 1.1.0 2016-01-17 22:05:25 +00:00
Gleb Peregud
ed4373e8b7 Pass buildPlugins to rebar3-nix-bootstrap.
To successfully build rebar packages, it needs to be provided with
rebar3 plugins used to build it. This change passes them to env
variable. From there rebar3-nix-bootstrap takes them and symlinks into
_build/default/plugins.
2016-01-17 21:59:27 +01:00
Peter Simons
fc32bc1963 Merge pull request #12429 from erlang-nix/fix-rebar3-nix-bootstrap-shebang
Make rebar3-nix-bootstrap depend on erlang.
2016-01-16 19:47:40 +01:00
Gleb Peregud
0692c6a96d Make rebar3-nix-bootstrap depend on erlang.
This fixes patchShebangs ability to properly fix up path to escript
binary.
2016-01-16 18:53:48 +01:00
Peter Simons
7824b8c330 Merge pull request #12409 from erlang-nix/master
Improvements for Erlang support in Nix
2016-01-16 15:25:06 +01:00
aszlig
8f793ce6bb
elfutils: Fix header compatibility with glibc 2.21
Regression introduced by df2b9b48cb.

This breaks the build for ltrace and other programs using libelf,
because the header file relies on features from glibc >= 2.22.

Here is an excerpt from the log output of the configure script from
ltrace:

In file included from ...elfutils-0.165/include/gelf.h:32:0,
                 from conftest.c:57:
...elfutils-0.165/include/libelf.h:280:8: error: unknown type name 'Elf32_Chdr'
 extern Elf32_Chdr *elf32_getchdr (Elf_Scn *__scn);
        ^
...elfutils-0.165/include/libelf.h:281:8: error: unknown type name 'Elf64_Chdr'
 extern Elf64_Chdr *elf64_getchdr (Elf_Scn *__scn);
        ^
In file included from conftest.c:57:0:
...elfutils-0.165/include/gelf.h:89:9: error: unknown type name 'Elf64_Chdr'
 typedef Elf64_Chdr GElf_Chdr;
         ^

The issue has been reported in the Debian bug tracker at
https://bugs.debian.org/810885 and I'm using the patch from Mark
Wielaard that has been posted there which adds compatibility for older
glibc versions.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-01-16 01:37:37 +01:00
Eric Merritt
24a9dcd12f rebar3: refactor
Move registrySnapshot to the erlang-nix github organization
2016-01-15 09:07:06 -08:00
Eelco Dolstra
df2b9b48cb elfutils: 163 -> 165
Also, install programs with the "eu-" prefix to prevent collisions
with binutils (as recommended by upstream), enable xz support, and
enable deterministic archives.
2016-01-15 15:01:13 +01:00
Vladimír Čunát
2d0893088f Merge branch 'master' into staging 2016-01-15 13:43:57 +01:00
Vladimír Čunát
34fe0833c8 iozone: commit some forgotten fixups (/cc #12387) 2016-01-15 10:26:18 +01:00
Svein Ove Aas
a28032ed58 iozone: init at 3.434 (close #12387)
vcunat amended some $out/share/ install paths.
2016-01-15 09:47:57 +01:00
Alexey Shmalko
c37c8e1c00 ycmd: Init at 2016-01-12 2016-01-15 01:39:21 +02:00
Eric Merritt
4ed5836dd3 hex2nix: init at 0.0.2 2016-01-14 14:38:10 -08:00
Eric Merritt
474e417891 erlang support: allow nix-shell to work correctly
This changes build-hex.nix so that the buildHex and related functions
work correctly in a nix-shell.
2016-01-14 14:36:47 -08:00
Eric Merritt
99bf9bf07a rebar3-nix-boostrap: init at 0.0.1 2016-01-14 14:34:47 -08:00
Nikolay Amiantov
d1ed30ac0d cargoUnstable: init at 2016-01-10 2016-01-13 13:48:24 +03:00
Vladimír Čunát
cea8ee50c7 phantomjs2: fix evaluation and refactor
The error was due to the fact that with-introduced bindings have lower
priority and we do have `darwin` in scope already.

Fixes #12350. Closes #12351. (A slightly different fix.
I chose this to lower the risk of people re-introducing the mistake.)
2016-01-13 08:34:35 +01:00
Jude Taylor
e6a892bb55 phantomjs2: build on darwin 2016-01-12 21:52:49 -08:00
Vladimír Čunát
19d22184d3 stdenv/multiple-outputs.sh: small tweaks
- fix in silencing some moveToOutput messages
- allow removing (developer) documentation even without defining outputs
  (note: some paths are auto-removed by default, e.g. gtk-doc and man3)
2016-01-12 23:57:47 +01:00
Tobias Geerinckx-Rice
fcb913b3a7 systemtap: remove dead package
Broken since 2013. Depends on equally broken latex2html.
Our version 1.2 is almost six years old; latest is 2.9.
And it's (still) no dtrace.
2016-01-11 01:41:54 +01:00
Pascal Wittmann
26a6b4b58d yodl: 3.05.01 -> 3.06.00 2016-01-09 20:07:43 +01:00
Pascal Wittmann
1d947ed4bf icmake: 7.23.02 -> 8.00.05 2016-01-09 20:07:43 +01:00
Florent Becker
a14c867d62 js_of_ocaml: Allow caml >= 4.02 to find camlp4 2016-01-08 16:06:00 +01:00
Jude Taylor
08c081309b Revert "gnustep-make: fix installation path"
This reverts commit 4f1559a751.
2016-01-07 21:52:11 -08:00
Gabriel Ebner
b12cabd223 electron: 0.28.2 -> 0.36.2 2016-01-06 19:05:00 +01:00
Peter Simons
1355e928cf Merge pull request #12148 from ragnard/boot-update-and-remove-make-wrapper-usage
boot: Update shell script version and remove makeWrapper usage
2016-01-05 12:22:23 +01:00
Vladimír Čunát
b1acaffe67 Merge branch 'master' into staging 2016-01-05 10:28:58 +01:00
Vladimír Čunát
7c879d342d Merge #10816: improve FreeBSD support 2016-01-05 09:50:10 +01:00
Eric Seidel
222f4b9e2b gnustep-make: dont write to /Library/GNUstep 2016-01-04 14:07:17 -08:00
Ragnar Dahlén
a25bfab690 boot: Update shell script version and remove makeWrapper usage 2016-01-04 17:23:45 +00:00
Tobias Geerinckx-Rice
8f6ae032c0 ccache: cherry-pick a (backported upstream) bug-fix 2016-01-04 15:11:51 +01:00
Pascal Wittmann
340c8acfaf global: 6.5.1 -> 6.5.2 2016-01-03 19:47:17 +01:00
Pascal Wittmann
642065e8d4 checkstyle: 6.13 -> 6.14.1 2016-01-03 19:42:59 +01:00
Tobias Geerinckx-Rice
ddd48258e8 gnustep-make: 2.6.6 -> 2.6.7 2016-01-03 00:24:28 +01:00
Tobias Geerinckx-Rice
4f1559a751 gnustep-make: fix installation path
Get rid of the nested /nix/store/.../nix/store/... directories.
2016-01-03 00:24:28 +01:00
Benjamin Staffin
4a69e5ae85 omake: Fix broken download URL
All the download links on http://omake.metaprl.org/ seem to be dead.
2016-01-02 18:21:48 +01:00
Florent Becker
44931d4293 js_of_ocaml: 2.5 -> 2.6 2016-01-01 19:04:40 +01:00
janus
a472d836f6 FreeBSD: apr-util, cyrus-sasl, berkeley db, glib, gnutls, kerberos, libelf-freebsd, openldap, serf, guile, tet, shishi, gawk, gnugrep 2016-01-01 17:01:13 +00:00
janus
c01dbc4932 FreeBSD patches for GNU m4, stdenv, miniupnpc 2016-01-01 17:01:13 +00:00
Michael Raskin
1dba4b4e6a scons: 2.3.6 -> 2.4.1 2016-01-01 12:30:17 +03:00
Michael Raskin
761340140c luarocks: 2.2.2 -> 2.3.0 2016-01-01 12:30:17 +03:00
Michael Raskin
f50aca5157 cl-launch: 4.1.4 -> 4.1.4.1 2015-12-31 16:52:05 +01:00
Vladimír Čunát
f9f6f41bff Merge branch 'master' into closure-size
TODO: there was more significant refactoring of qtbase and plasma 5.5
on master, and I'm deferring pointing to correct outputs to later.
2015-12-31 09:53:02 +01:00
Shell Turner
c1ec39d47b icestorm: init at 2015.12.29 2015-12-30 16:52:41 +00:00
Vladimír Čunát
08dd527cc7 Merge branch 'staging'
http://hydra.nixos.org/eval/1234895
The mass errors on Hydra seem transient; I verified ghc on i686-linux.
Only darwin jobs are queued ATM. There's a libpng security update
included in this merge, so I don't want to wait too long.
2015-12-29 17:14:35 +01:00
Peter Simons
c5f28c305a Merge pull request #11566 from Bevaz/ccache-links
ccache: create symlinks to gcc lib & include in ccache-links directory
2015-12-29 16:29:16 +01:00
Charles Strahan
b6c06e216b ruby: new bundler infrastructure
This improves our Bundler integration (i.e. `bundlerEnv`).

Before describing the implementation differences, I'd like to point a
breaking change: buildRubyGem now expects `gemName` and `version` as
arguments, rather than a `name` attribute in the form of
"<gem-name>-<version>".

Now for the differences in implementation.

The previous implementation installed all gems at once in a single
derivation. This was made possible by using a set of monkey-patches to
prevent Bundler from downloading gems impurely, and to help Bundler
find and activate all required gems prior to installation. This had
several downsides:

* The patches were really hard to understand, and required subtle
  interaction with the rest of the build environment.
* A single install failure would cause the entire derivation to fail.

The new implementation takes a different approach: we install gems into
separate derivations, and then present Bundler with a symlink forest
thereof. This has a couple benefits over the existing approach:

* Fewer patches are required, with less interplay with the rest of the
  build environment.
* Changes to one gem no longer cause a rebuild of the entire dependency
  graph.
* Builds take 20% less time (using gitlab as a reference).

It's unfortunate that we still have to muck with Bundler's internals,
though it's unavoidable with the way that Bundler is currently designed.
There are a number improvements that could be made in Bundler that would
simplify our packaging story:

* Bundler requires all installed gems reside within the same prefix
  (GEM_HOME), unlike RubyGems which allows for multiple prefixes to
  be specified through GEM_PATH. It would be ideal if Bundler allowed
  for packages to be installed and sourced from multiple prefixes.
* Bundler installs git sources very differently from how RubyGems
  installs gem packages, and, unlike RubyGems, it doesn't provide a
  public interface (CLI or programmatic) to guide the installation of a
  single gem. We are presented with the options of either
  reimplementing a considerable portion Bundler, or patch and use parts
  of its internals; I choose the latter. Ideally, there would be a way
  to install gems from git sources in a manner similar to how we drive
  `gem` to install gem packages.
* When a bundled program is executed (via `bundle exec` or a
  binstub that does `require 'bundler/setup'`), the setup process reads
  the Gemfile.lock, activates the dependencies, re-serializes the lock
  file it read earlier, and then attempts to overwrite the Gemfile.lock
  if the contents aren't bit-identical. I think the reasoning is that
  by merely running an application with a newer version of Bundler, you'll
  automatically keep the Gemfile.lock up-to-date with any changes in the
  format. Unfortunately, that doesn't play well with any form of
  packaging, because bundler will immediately cause the application to
  abort when it attempts to write to the read-only Gemfile.lock in the
  store. We work around this by normalizing the Gemfile.lock with the
  version of Bundler that we'll use at runtime before we copy it into
  the store. This feels fragile, but it's the best we can do without
  changes upstream, or resorting to more delicate hacks.

With all of the challenges in using Bundler, one might wonder why we
can't just cut Bundler out of the picture and use RubyGems. After all,
Nix provides most of the isolation that Bundler is used for anyway.

The problem, however, is that almost every Rails application calls
`Bundler::require` at startup (by way of the default project templates).
Because bundler will then, by default, `require` each gem listed in the
Gemfile, Rails applications are almost always written such that none of
the source files explicitly require their dependencies. That leaves us
with two options: support and use Bundler, or maintain massive patches
for every Rails application that we package.

Closes #8612
2015-12-29 09:30:21 -05:00
Robin Gloster
0cfa4fdbd4 strace: 4.10 -> 4.11 2015-12-27 20:25:29 +00:00
Robin Gloster
37ebb4c2ac rustfmt: 2015-12-08 -> 2015-12-23 2015-12-24 13:20:24 +01:00
Robin Gloster
2faea53f8e cargo: 0.6.0 -> 0.7.0 2015-12-24 13:20:24 +01:00
Vladimír Čunát
12a0e09563 Merge #11674: libressl-2.3 patches for various pkgs 2015-12-23 23:16:27 +01:00
Arseniy Seroka
93d3f6f52b Merge pull request #11905 from aborsu/jenkins-update
jenkins ci: 1.638 -> 1.643
2015-12-23 23:10:46 +03:00
Vladimír Čunát
11c702c582 Merge master into staging 2015-12-23 18:57:35 +01:00
Augustin Borsu
170f91a249 jenkins ci: 1.638 -> 1.643 2015-12-23 15:47:11 +01:00
Tim Steinbach
d509f8a30a gradle: 2.9 -> 2.10 2015-12-23 08:44:49 -05:00