nixpkgs-suyu/pkgs/applications/misc
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
..
3dfsb 2dfsb: fix installation (ZHF) 2015-07-01 13:46:27 +02:00
abook
acbuild acbuild: 0.1.1 -> 0.2.2 and moved to own default.nix, fixes #11889 2015-12-23 01:33:37 +01:00
adobe-reader
apvlv Add apvlv pdf reader 2015-06-06 21:02:46 +02:00
artha Add artha 1.0.3: an offline thesaurus 2015-08-27 00:50:50 +02:00
audio soxr: 0.1.1 -> 0.1.2 2015-09-24 16:15:31 -07:00
avrdudess
batti batti: mark as broken 2015-03-16 09:44:22 +01:00
bibletime
bleachbit bleachbit: init at 1.8 2015-07-12 16:33:59 +02:00
blender blender: Update to 2.76b 2015-11-05 13:48:22 +01:00
calcurse calcurse: init at 4.0.0 2015-07-19 08:17:18 -07:00
calibre calibre: Qt 5 infrastructure update 2015-12-20 07:56:47 -06:00
camlistore
cbatticon cbatticon: use fetchzip to fix sha256 issues 2015-12-07 10:24:38 +00:00
cdrtools cdrtools: 3.00 -> 3.02a03 2015-12-13 15:13:43 +03:00
cgminer
cherrytree Cherrytree: 0.35.8 -> 0.35.9 2015-07-24 10:04:31 -03:00
chirp Chirp: New package. 2015-07-28 00:05:54 +02:00
clipit
cmatrix cmatrix: init at 1.2a 2015-07-29 18:36:02 -03:00
cool-retro-term separate makeQtWrapper from qtbase setup-hook 2015-10-30 16:10:37 -05:00
copyq copyq: init at 2.5.0, fixed #11887 2015-12-23 01:58:59 +01:00
cortex fix: add missing versions 2015-06-04 23:34:14 +03:00
ctodo Fixed some descriptions 2015-04-28 10:55:20 +02:00
cura curaLulzbot: init at 15.02.1-1.03-5064 2015-08-31 14:42:05 -06:00
curaengine cura(engine): 15.02.1 -> 15.04. 2015-08-21 15:43:53 +02:00
d4x
dbvisualizer Package for dbvisualizer 9.2.5 2015-04-10 06:34:15 -06:00
devilspie2 devilspie2: init at 0.39 2015-09-10 05:11:56 +08:00
dfilemanager dfilemanager: Qt 5 infrastructure update 2015-12-20 07:56:48 -06:00
diffpdf diffpdf: fix icon 2015-07-15 10:20:09 +02:00
direwolf direwolf: New package. 2015-07-28 00:05:55 +02:00
djvulibre djvulibre: Refactor 2015-03-27 15:36:26 -07:00
dmenu dmenu: 4.5 -> 4.6 2015-11-10 09:57:17 +01:00
dmenu2 Replace 'with plaforms; platform' with 'platforms.platform' 2015-11-17 21:30:43 +01:00
doomseeker doomseeker: cleanup 2015-12-13 15:14:18 +03:00
dunst make a wrapper so that dunst can find dbus-launch 2015-06-03 23:53:50 -07:00
eaglemode Replace 'with plaforms; platform' with 'platforms.platform' 2015-11-17 21:30:43 +01:00
electrum Rename 'emery' maintainer handle to 'ehmry', fixes #11493 2015-12-05 23:06:20 +01:00
emem emem: init at 0.2.11 2015-11-25 03:09:16 +08:00
epdfview
evilvte xlibs: replace occurrences by xorg 2015-09-15 12:54:34 +02:00
evopedia evopedia: version bump to 0.4.4 2015-04-05 17:08:52 +02:00
evtest
fbreader
fetchmail
finalterm Replace 'with plaforms; platform' with 'platforms.platform' 2015-11-17 21:30:43 +01:00
fme
freemind freemind: 0.9.0 -> 1.0.1 2015-05-04 13:57:14 +02:00
freicoin
galculator
gammu
garmin-plugin garmin-plugin: New expression 2015-04-04 11:51:23 +01:00
get_iplayer
girara pwmt: update packages (zathura, jumanji, girara) 2015-05-06 10:36:30 -04:00
gkrellm
gksu
gmrun
gnuradio gnuradio: 3.7.8 -> 3.7.8.1 2015-11-06 15:05:53 +01:00
gnuradio-nacl gnuradio-nacl: init at 2015-11-05 2015-11-05 21:17:39 +01:00
gnuradio-osmosdr gnuradio-osmosdr & gqrx: Add myself as maintainer. 2015-07-28 00:05:54 +02:00
goldendict goldendict: b4bb1e9 -> ec86516 2015-12-10 23:51:07 +06:00
googleearth
gosmore gosmore: once more fix broken hash and disable externals for now to prevent further breakage 2015-12-14 15:33:51 +00:00
gpa gpa: 0.9.7 -> 0.9.9 2015-09-11 12:41:39 -07:00
gphoto2 gphoto2fs: reimplement using mkDerivation 2015-11-24 14:45:15 +01:00
gpsbabel gpsbabel: Qt 5 infrastructure update 2015-12-20 07:56:48 -06:00
gpscorrelate
gqrx gnuradio-osmosdr & gqrx: Add myself as maintainer. 2015-07-28 00:05:54 +02:00
gramps
grip
gtk2fontsel
gv
gxmessage gxmessage: init at 3.4.3 2015-07-20 15:32:27 -04:00
gxneur
hackrf hackrf: allow on darwin 2015-10-31 23:47:49 +01:00
hamster-time-tracker synapse, hamster-time-tracker: get rid of icon-theme.cache 2015-10-13 14:49:05 +02:00
hello hello/ex-2 -> hello 2015-09-22 20:23:23 +02:00
hstr hstr: update from 1.16 to 1.17 2015-06-19 19:00:02 +02:00
htmldoc
ikiwiki ikiwiki: update to version 3.20150614 2015-08-26 13:04:18 +02:00
jbidwatcher
jekyll ruby: new bundler infrastructure 2015-12-29 09:30:21 -05:00
jigdo
jp2a Added jp2a tool. 2015-10-22 22:47:24 -04:00
k2pdfopt Bump k2pdfopt to 2.32, fixes #9631 2015-09-03 12:48:50 +02:00
k3b kde414: build with kdelibs-4.14.12 2015-09-27 15:08:12 -05:00
kdbplus nixpkgs: add kdb+ 3.2 2015-04-18 14:45:47 -05:00
kde-wacomtablet kde414: build with kdelibs-4.14.12 2015-09-27 15:08:12 -05:00
kdeconnect kde414: build with kdelibs-4.14.12 2015-09-27 15:08:12 -05:00
keepass keepass: load plugins from store paths, fixes #11206 2015-12-23 02:12:36 +01:00
keepass-plugins/keefox Keefox (keepass plugin): init at 1.5.4 2015-12-23 02:12:15 +01:00
keepassx Merge pull request #11850 from rycee/bump/keepassx 2015-12-21 08:05:35 +01:00
keybase Replace 'with plaforms; platform' with 'platforms.platform' 2015-11-17 21:30:43 +01:00
kgocode added kgocode 2015-12-06 19:43:25 +01:00
khal khal: update 0.6.0->0.7.0 2015-12-14 02:05:01 +01:00
khard khard: 0.6.0 → 0.6.3 2015-10-28 06:26:00 +01:00
kiwix kiwix: init at 0.9. 2015-09-24 22:01:55 +08:00
krename kde414: build with kdelibs-4.14.12 2015-09-27 15:08:12 -05:00
krusader kde414: build with kdelibs-4.14.12 2015-09-27 15:08:12 -05:00
librecad librecad: remove old 1.x, make 2.x default 2015-10-23 18:09:23 +02:00
lilyterm
llpp llpp: update to 2015-07-30, fix build and don't fetch submodules 2015-08-04 13:00:35 +02:00
loxodo Add a .desktop file for Loxodo 2015-06-03 23:44:18 -07:00
lxappearance lxappearance: 0.5.5 -> 0.6.1 2015-09-13 23:03:11 +01:00
lyx lyx: maintenance update 2015-08-10 15:57:24 +02:00
makeself
mdp mdp: 1.0.0 -> 1.0.1 2015-07-19 13:11:51 +02:00
mediainfo mediainfo: 0.7.79 -> 0.7.80 2015-12-19 16:33:50 +00:00
mediainfo-gui mediainfo: 0.7.79 -> 0.7.80 2015-12-19 16:33:50 +00:00
merkaartor gdal: 1.11.2 -> 1.11.3 2015-11-03 09:00:08 +01:00
monero Rename 'emery' maintainer handle to 'ehmry', fixes #11493 2015-12-05 23:06:20 +01:00
mrxvt
multimon-ng multimon-ng: New package. 2015-07-28 00:05:55 +02:00
multisync
mupdf mupdf: propagate needed libraries 2015-11-25 18:30:41 +03:00
mysql-workbench mysql-workbench: fix references to /bin/bash and sudo 2015-05-28 18:41:22 +02:00
nanoblogger
navipowm
navit
notify-osd
nut
ocropus buildPythonPackage: fix a few more wheel packages 2015-11-21 21:44:12 +01:00
open-pdf-presenter Add package for open-pdf-presenter 2015-05-06 10:02:32 +02:00
openbox-menu
openjump
orpie orpie: init at 1.5.2 2015-09-28 21:03:11 +02:00
pcmanfm
pdfdiff pdfdiff: init at 0.92 2015-07-08 00:22:57 +02:00
pdfmod pdfmod: init at 0.9.1 (close #11417) 2015-12-21 15:19:36 +01:00
pdfpc pdfpc: 4.0.0 -> 4.0.1 2015-11-20 17:07:08 +01:00
pgadmin
pinfo
pitz
playonlinux fix eval 2015-12-14 21:12:51 +01:00
posterazor
printrun buildPythonPackage: fix standalone applications using it 2015-11-21 21:44:12 +01:00
procmail
pstree Update pstree to 2.39 2015-08-18 09:50:46 +00:00
pwsafe meta.description fixups 2015-04-30 18:17:42 +02:00
pytrainer buildPythonPackage: fix standalone applications using it 2015-11-21 21:44:12 +01:00
qpdfview Update qpdfview 2015-06-14 11:21:55 +03:00
qtbitcointrader Rename 'emery' maintainer handle to 'ehmry', fixes #11493 2015-12-05 23:06:20 +01:00
qtpass qtpass: Qt 5 infrastructure update 2015-12-20 07:56:47 -06:00
ranger ranger: fix paths to w3m and share 2015-11-23 22:24:00 +01:00
redshift redshift: depend on geoclue2 directly 2015-12-10 02:38:42 +01:00
rescuetime rescuetime: 2.8.8.1040 -> 2.8.9.1170 2015-08-31 17:17:32 +02:00
robomongo robomongo: Qt 5 infrastructure update 2015-12-20 07:56:48 -06:00
rofi rofi-pass: 1.2 -> 1.3.1 2015-12-04 17:24:56 +01:00
roxterm
rsibreak kde414: build with kdelibs-4.14.12 2015-09-27 15:08:12 -05:00
rtl-sdr
rtv rtv: 1.6.1 -> 1.7.0 2015-12-10 22:07:15 +06:00
rxvt
rxvt_unicode Revert "rxvt_unicode: add patch to fix Shift+PgUp/PgDown bug" 2015-10-21 20:53:18 +03:00
rxvt_unicode-plugins urxvt_perls: 2015-03-28 -> 2.2 2015-10-15 17:06:23 +03:00
sakura
sbagen
scim scim: update from 0.1.8 to 0.1.9 2015-06-19 19:01:47 +02:00
sdcv
semnotes
sent sent: 0.1 -> 0.2 2015-11-25 12:18:15 +01:00
slic3r slic3r: 1.2.6 -> 1.2.9 2015-10-22 14:28:59 +02:00
slmenu
spacefm spacefm: 1.0.1 -> 1.0.4 2015-11-21 16:50:56 +00:00
sqliteman Fixed several "package has no version" warnings 2015-05-14 17:19:41 +02:00
st Replace 'with plaforms; platform' with 'platforms.platform' 2015-11-17 21:30:43 +01:00
stag
stardict mysql: Use libs in place of the binary mysql 2015-04-01 16:46:53 -07:00
super_user_spark super-user-spark: 0.1.0.0 -> 0.2.0.3 2015-12-13 20:26:09 -05:00
surf
sweethome3d sweethome3d.{application,furniture-editor}: version bumps 2015-03-18 12:55:36 +01:00
synapse synapse, hamster-time-tracker: get rid of icon-theme.cache 2015-10-13 14:49:05 +02:00
synergy x11: replace its usage by xlibsWrapper directly 2015-09-15 12:08:24 +02:00
tangogps
taskjuggler
tasknc tasknc: init at 0.8 2015-06-21 14:22:10 +02:00
taskwarrior taskwarrior: 2.4.4 -> 2.5.0 2015-10-23 16:18:31 +02:00
terminal-notifier Replace 'with plaforms; platform' with 'platforms.platform' 2015-11-17 21:30:43 +01:00
terminator
termite termite: update and use vte 0.40 2015-05-18 12:31:29 +02:00
thinking-rock
tilda tilda: 1.2.2 -> 1.2.4 2015-11-02 10:42:04 +01:00
tint2
tpmmanager tpmmanager: init at 0.8.1 2015-07-15 10:21:11 +02:00
truecrypt
tthsum tthsum: init at 1.3.2 2015-09-18 03:01:01 +08:00
twmn twmn: Qt 5 infrastructure update 2015-12-20 07:56:47 -06:00
udevil udevil: added patch 2015-12-14 20:49:14 +09:00
urlview urlview: enable on darwin 2015-12-04 11:00:16 -05:00
vanitygen
vifm vifm: 0.7.8 -> 0.8 2015-07-12 21:22:56 +02:00
viking viking: 1.6 -> 1.6.1 2015-11-29 22:42:14 +01:00
vit vit: init at 1.2 2015-09-20 11:46:21 +02:00
vue vue: 3.2.2 -> 3.3.0 2015-10-18 23:20:27 +03:00
vym
wcalc wcalc: init at 2.5 2015-10-12 23:07:45 +03:00
weather weather: init at 2.0 2015-11-27 11:47:51 +01:00
wmname
wordnet x11: replace its usage by xlibsWrapper directly 2015-09-15 12:08:24 +02:00
workrave
xca xca: 1.3.1 -> 1.3.2 2015-12-02 23:01:00 +01:00
xchm
xcruiser Rename 'emery' maintainer handle to 'ehmry', fixes #11493 2015-12-05 23:06:20 +01:00
xfe x11: replace its usage by xlibsWrapper directly 2015-09-15 12:08:24 +02:00
xfontsel
xiphos Xiphos: added new dependency: biblesync 2015-08-16 00:47:43 -03:00
xkblayout-state xkblayout-state: fix url 2015-04-10 23:45:15 +03:00
xmove Use mirror:// URIs for ftp.debian.org 2015-05-22 10:39:27 +02:00
xneur
xpdf x11: replace its usage by xlibsWrapper directly 2015-09-15 12:08:24 +02:00
xrandr-invert-colors
xterm xterm: 317 -> 320 2015-09-20 15:40:13 +02:00
yakuake kde414: build with kdelibs-4.14.12 2015-09-27 15:08:12 -05:00
yate yate: update from 2.2.0 to 5.4.2 2015-04-15 10:54:49 +02:00
ykpers ykpers: 1.15.0 -> 1.17.2 2015-11-25 14:17:20 -08:00
zathura mupdf: propagate needed libraries 2015-11-25 18:30:41 +03:00
zscroll zscroll: init at 1.0 2015-11-13 14:58:19 -05:00