Commit Graph

127550 Commits

Author SHA1 Message Date
aszlig
1cba74dfc1
setup-hooks: Add autoPatchelfHook
I originally wrote this for packaging proprietary games in Vuizvui[1]
but I thought it would be generally useful as we have a fair amount of
proprietary software lurking around in nixpkgs, which are a bit tedious
to maintain, especially when the library dependencies change after an
update.

So this setup hook searches for all ELF executables and libraries in the
resulting output paths after install phase and uses patchelf to set the
RPATH and interpreter according to what dependencies are available
inside the builder.

For example consider something like this:

stdenv.mkDerivation {
  ...
  nativeBuildInputs = [ autoPatchelfHook ];
  buildInputs = [ mesa zlib ];
  ...
}

Whenever for example an executable requires mesa or zlib, the RPATH will
automatically be set to the lib dir of the corresponding dependency.

If the library dependency is required at runtime, an attribute called
runtimeDependencies can be used to list dependencies that are added to
all executables that are discovered unconditionally.

Beside this, it also makes initial packaging of proprietary software
easier, because one no longer has to manually figure out the
dependencies in the first place.

[1]: https://github.com/openlab-aux/vuizvui

Signed-off-by: aszlig <aszlig@nix.build>
Closes: #34506
2018-02-10 00:27:24 +05:30
Peter Simons
2c13435734 haskell-generic-builder: revert "set LD_LIBRARY_PATH in shellHook"
This reverts commit e73e5c884f. Please don't
set $LD_LIBRARY_PATH! Instead, pass appropriate --extra-include-dir and
--extra-lib-dir arguments to "cabal configure" to ensure that Cabal knows
about system dependencies.
2018-02-09 19:56:20 +01:00
Peter Simons
bd3379c443 haskell-generic-builder: include build-tool dependencies in shell environments
For a Haskell package "foo" the environment foo.env now contains the build tool
dependencies required for compiling the package in $PATH.

Fixes https://github.com/NixOS/cabal2nix/issues/331.
2018-02-09 19:56:20 +01:00
Frederik Rietdijk
e44d763b1d
Merge pull request #34771 from Mic92/flexget
flexget: mark as broken
2018-02-09 18:49:22 +00:00
Franz Pletz
1fcbc7055c
Merge pull request #33700 from roberth/nixos-externalpkgs
nixos: Add nixpkgs.pkgs option
2018-02-09 18:47:48 +00:00
Franz Pletz
3748f3aac8
Merge pull request #32582 from Ma27/yabar-module
yabar: add module
2018-02-09 18:43:59 +00:00
symphorien
0146074560 nixos/tests: add predictable-interface-names.nix (#34305) 2018-02-09 18:40:39 +00:00
Franz Pletz
a51cda85ff
Merge pull request #34434 from markuskowa/uhd-fix-boost-pr
uhd: 3.10.2.0 -> 3.10.3.0
2018-02-09 18:33:11 +00:00
Robert Hensing
209f8b1acd nixos/release*.nix: Clean nixpkgs sources by default
Currently, when building NixOS from a git clone, Nix has to copy
the entire repo at >1GB into the store by default. That is not
necessary and causes a dumping large path message.
If you need the old behaviour for some reason, you will have to
specify it by passing the path to your repo explicitly as the
nixpkgs argument like this:

  --arg nixpkgs '{outPath = ./.; revCount = 56789; shortRev = "gfedcba"; }'
2018-02-09 18:32:26 +00:00
Jörg Thalheim
9622cdb69f flexget: mark as broken 2018-02-09 17:08:28 +00:00
Peter Simons
9861064f35
Merge pull request #34766 from mnacamura/r-pbdZMQ-fix-darwin
rPackages.pbdZMQ: fix package loading on Darwin
2018-02-09 17:43:03 +01:00
Jörg Thalheim
7d9313fff3
Merge pull request #34635 from zauberpony/hcloud-init-v1.3.0
hcloud: init at 1.3.0
2018-02-09 16:38:12 +00:00
Jörg Thalheim
4cf5684250
Merge pull request #34673 from jensbin/typora_0.9.43
typora: 0.9.41 -> 0.9.44
2018-02-09 16:34:54 +00:00
Jens Binkert
56a21983f9 typora: 0.9.41 -> 0.9.44 2018-02-09 17:16:32 +01:00
Jörg Thalheim
03ad93a879
Merge pull request #34701 from holidaycheck/chromedriver-2.35
chromedriver: 2.33 -> 2.35
2018-02-09 16:09:21 +00:00
Jörg Thalheim
807d76b30b
Merge pull request #34765 from greedy/fix/libproxy-darwin
libproxy: fix building on darwin
2018-02-09 16:02:42 +00:00
thorstenweber83
814a9310dc python.pkgs.awesome-slugify: fix build (#34764)
It broke because Unidecode went out of
its defined range (Unidecode>=0.04.14,<0.05)
with commit 57e9ed3719
2018-02-09 16:02:23 +00:00
Jörg Thalheim
465d7c55d9
Merge pull request #34763 from zimbatm/asciidoctor-pdf-fix
asciidoctor: expose all the bins
2018-02-09 15:59:09 +00:00
Mitsuhiro Nakamura
c4658ac0a4 rPackages.pbdZMQ: fix package loading on Darwin 2018-02-10 00:54:28 +09:00
Geoffrey Reedy
7f6c4e2703 libproxy: fix building on darwin 2018-02-09 08:33:41 -07:00
Tim Steinbach
4ffe462b10
docker-edge: 18.01.0 -> 18.02.0 2018-02-09 10:25:58 -05:00
aszlig
855e66860a
gajim: 0.16.8 -> 0.16.9
Upstream changes:

  * Improve Zeroconf behavior
  * Fix showing normal message event
  * remove usage of OpenSSL.rand
  * a few minor bugfixes

The really important part here is the third point about OpenSSL.rand,
because the rand attribute no longer exists in pyopenssl and thus Gajim
doesn't even start.

Also the fix-tests.patch has been fixed upstream as well, so we don't
need it anymore.

Another change in 0.16.9 that's not included in the changelog is that
there is a test_nogui target, which is also run by the CI upstream is
using, so let's use that and remove xvfb_run.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @7c6f434c, @Mic92
2018-02-09 16:22:42 +01:00
Frederik Rietdijk
669e03ecce
Merge pull request #34647 from jraygauthier/jrg/pythonnet-rebased
pythonnet: Init at 2.3.0
2018-02-09 15:20:25 +00:00
José Luis Lafuente
3b6f8b5b15 youtube-dl: 2018.01.27 -> 2018.02.08 (#34762) 2018-02-09 15:17:22 +00:00
zimbatm
6f56749b07 asciidoctor: expose all the bins
asciidoctor has multiple binaries, expose them all to the user
2018-02-09 14:40:22 +00:00
Andreas Rammhold
04051ee9d0
Merge pull request #34562 from griff/rspamd-workers
nixos/rspamd: worker configuration, socket activation and tests
2018-02-09 14:45:54 +01:00
Chris Hodapp
c6bd327af8
darktable: Removed unneeded dependencies
Based on what LebedevRI told me on IRC and in
https://github.com/darktable-org/darktable/pull/1474
2018-02-09 13:13:31 +01:00
Andreas Rammhold
7ae9699e1c
Merge pull request #34759 from dotlambda/dovecot
nixos/dovecot: no " in mailbox.name
2018-02-09 12:43:03 +01:00
Robert Schütz
6ceece6b59 nixos/dovecot: no " in mailbox.name 2018-02-09 12:20:55 +01:00
Peter Hoeg
0cdc0ac3a1 screenfetch: 2016-10-11 -> 3.8.0 2018-02-09 18:05:10 +08:00
Jörg Thalheim
3b9beaf842
Merge pull request #34658 from thorstenweber83/add-package-slic3r-prusa3d
slic3r-prusa3d: init at 1.38.7
2018-02-09 09:51:13 +00:00
Jörg Thalheim
9e39a7b4e0
Merge pull request #34652 from mbrgm/upgrade-keepalived
keepalived: 1.3.6 -> 1.4.1
2018-02-09 09:47:44 +00:00
Hamish
3a2b0cdf5c nixos/traefik: make group configurable for docker support (#34749) 2018-02-09 09:37:29 +00:00
Jörg Thalheim
abfac62df5 alacritty: 2017-12-29 -> 2018-01-31 2018-02-09 09:31:18 +00:00
Jörg Thalheim
a1fe3ee2f9
Merge pull request #34689 from dtzWill/fix/zsh-modern
zsh: set configureFlags and checkFlags at nix level, also fix cross
2018-02-09 09:29:32 +00:00
Jörg Thalheim
a0a3298091
Merge pull request #34663 from bignaux/squashfuse
squashfuse: init at 0.1.101
2018-02-09 09:23:23 +00:00
Jörg Thalheim
d0bac026ec
Merge pull request #34695 from woffs/uudeview
uudeview: init at 0.5.20
2018-02-09 09:11:08 +00:00
Jörg Thalheim
b797b2b961
Merge pull request #34709 from sifmelcara/fix/rstudio-version
rstudio: 1.1.414 -> 1.1.423
2018-02-09 09:00:58 +00:00
Matthieu Chevrier
00970f76f9 theharvester: init at 2.7.1 (#34704) 2018-02-09 09:00:15 +00:00
adisbladis
d1c5b483d2
yaml2json: init at unstable-2017-05-03 2018-02-09 16:46:21 +08:00
Jörg Thalheim
7ca084292a
Merge pull request #34714 from vbgl/coq-default-to-8.7
coq: default to 8.7
2018-02-09 08:45:31 +00:00
Jörg Thalheim
62f7640ebe
Merge pull request #34727 from vbgl/pg-HEAD-20180130
proofgeneral_HEAD: 2017-11-06 -> 2018-01-30
2018-02-09 08:45:09 +00:00
Lucca Fraser
09d04f6b6f electrum-dash: 2.4.1 -> 2.9.3.1 2018-02-09 08:41:18 +00:00
Jörg Thalheim
dad8a01530
Merge pull request #34739 from ryantm/ataripp
ataripp: 1.73 -> 1.81
2018-02-09 08:27:38 +00:00
Jörg Thalheim
76a08d4a83
Merge pull request #34703 from Ma27/make-overriding-vim-configurable-easier
vim_configurable: enable overrides
2018-02-09 08:15:27 +00:00
Jörg Thalheim
58278aec16
Merge pull request #34738 from dotlambda/pytest-sugar
pythonPackages.pytest-sugar: 0.9.0 -> 0.9.1
2018-02-09 08:06:29 +00:00
mkgvt
f41eb52bc9 rename: init at 1.9 (#34719) 2018-02-09 08:05:11 +00:00
Jörg Thalheim
4db906e185
Merge pull request #34730 from karolchmist/dotty-bump-0.6.0
dotty: 0.4.0 -> 0.6.0
2018-02-09 07:58:59 +00:00
Jörg Thalheim
1c73182f92
Merge pull request #34742 from hedning/nix-completions-bump
nix-bash-completions: 0.6.2 -> 0.6.3, nix-zsh-completions: 0.3.7 -> 0.3.8
2018-02-09 07:54:43 +00:00
adisbladis
8aa966d7ea
Merge pull request #34746 from markus1189/spotify
spotify: 1.0.69.336.g7edcc575-39 -> 1.0.70.399.g5ffabd56-26
2018-02-09 15:54:04 +08:00