Commit Graph

46846 Commits

Author SHA1 Message Date
Eelco Dolstra
e3f7dbbac8 Cleanup: Use += to append to envHooks 2014-08-09 12:47:05 +02:00
Eelco Dolstra
2db867eec9 fixupPhase: Fix making the outputs writable 2014-08-09 12:47:05 +02:00
Eelco Dolstra
11dc9036d0 Allow passing arguments to hooks
This allows envHooks and crossEnvHooks to be handled using the regular
hook mechanism.
2014-08-09 12:47:05 +02:00
Eelco Dolstra
2def8e7499 Remove addHook
Just use bash arrays directly. I.e.

  addHook preConfigure myPreConfigure

is now

  preConfigureHooks+=(myPreConfigure)
2014-08-09 12:45:53 +02:00
Eelco Dolstra
e3875297fa stdenv: Don't use sed to build the setup script 2014-08-09 12:45:52 +02:00
Eelco Dolstra
be3fc3ae2f Prevent an unnecessary evaluation of lib 2014-08-09 12:45:18 +02:00
Eelco Dolstra
cd948c093f stdenv: Reindent 2014-08-09 12:44:50 +02:00
Eelco Dolstra
15103e5e5f stdenv: Remove the special handling of gcc
Now gcc is just another build input, making it possible in the future
to have a stdenv that doesn't depend on a C compiler. This is very
useful on NixOS, since it would allow trivial builders like
writeTextFile to work without pulling in the C compiler.
2014-08-09 12:44:50 +02:00
Eelco Dolstra
9f822e5477 stdenv: Move paxmark function to paxctl's setup hook 2014-08-09 12:44:50 +02:00
Eelco Dolstra
d7b356f73b stdenv: Move unzip support to unzip's setup hook 2014-08-09 12:44:50 +02:00
Eelco Dolstra
f97ee61255 unzip: Clean up expression 2014-08-09 12:44:49 +02:00
Eelco Dolstra
3e33c975fb stdenv: Make unpackFile extensible via the hook mechanism
unpackCmd is now a regular hook, so there can be multiple functions
hooking into it.
2014-08-09 12:44:49 +02:00
Eelco Dolstra
1a44dbbbb9 unpackFile: Always copy directories
If $src refers to a directory, then always copy it. Previously, we
checked the extension first, so if the directory had an extension like
.tar, unpackPhase would fail.
2014-08-09 12:44:49 +02:00
Eelco Dolstra
5e82aab5d4 Drop redundant space 2014-08-09 12:44:49 +02:00
Eelco Dolstra
daa66b8b1c Factor out fixup phase stuff into separate setup hooks 2014-08-09 12:44:49 +02:00
Eelco Dolstra
d7a4fa26b0 Fix dontPatchELF being set after the setup script has been sourced 2014-08-09 12:44:49 +02:00
Eelco Dolstra
83a41771ab Move RPATH shrinking from stdenv to a setup hook provided by patchelf 2014-08-09 12:44:49 +02:00
Eelco Dolstra
b23dbb1a5d Allow buildInputs to be regular files
If a build input is a regular file, use it as a setup hook. This makes
setup hooks more efficient to create: you don't need a derivation that
copies them to $out/nix-support/setup-hook, instead you can use the
file as is.
2014-08-09 12:44:49 +02:00
Eelco Dolstra
0a8605ded1 Formatting 2014-08-09 12:44:48 +02:00
Eelco Dolstra
37889e2b5e Provide a hook for per-output fixup 2014-08-09 12:44:48 +02:00
Eelco Dolstra
b0f2d3419c Allow multiple hooks with the same name
You can now register multiple values per named hook, e.g.

  addHook preConfigure "echo foo"
  addHook preConfigure "echo bar"

will cause ‘runHook preConfigure’ to run both ‘echo foo’ and ‘echo
bar’ (in that order). It will also call the shell function
preConfigure() or eval the shell variable $preConfigure, if
defined. Thus, if you don't call addHook, it works like the old hook
mechanism.

Allowing multiple hooks makes stdenv more modular and extensible. For
instance, multiple setup hooks can define a preFixup hook, and all of
these will be executed.
2014-08-09 12:44:48 +02:00
Eelco Dolstra
18e422d047 blender: Optionally build with CUDA support
This is required for GPU acceleration of the Cycles renderer.
2014-08-09 12:37:46 +02:00
lethalman
7d246d569a Merge pull request #3497 from madjar/nox
Nox: added expression
2014-08-09 12:33:17 +02:00
Georges Dubus
8de8d5a639 nox: Added expression 2014-08-09 12:30:38 +02:00
Luca Bruno
9300470b5e chicken: broken on darwin 2014-08-09 12:29:27 +02:00
Luca Bruno
ba2da1fa6c cadaver: mark as unsupported on darwin 2014-08-09 12:29:26 +02:00
Georges Dubus
abf2f3fcc5 Added expressions for dogpile.core and dogpile.cache 2014-08-09 12:04:58 +02:00
Luca Bruno
e9aadfd807 checkpolicy: mark as broken for ZHF 2014-08-09 11:42:18 +02:00
John Wiegley
db8ab2191d Merge pull request #3216 from cstrahan/libuv
add libuv package
2014-08-09 01:04:09 -05:00
John Wiegley
16ffd0638b Merge pull request #3266 from cstrahan/mesos
[WIP] mesos: Add package
2014-08-09 01:03:58 -05:00
John Wiegley
f4aaeef37c Merge pull request #3499 from Fuuzetsu/nvidia
Copy all so files over from nVidia blob
2014-08-09 01:02:07 -05:00
John Wiegley
a11e8d8b19 Merge pull request #3500 from Fuuzetsu/ppsspp
ppsspp: update to 0.9.9
2014-08-09 01:01:55 -05:00
John Wiegley
de2862b33d Merge pull request #3501 from Fuuzetsu/youtube-dl
youtube-dl: update to 2014.08.05
2014-08-09 01:01:28 -05:00
Mateusz Kowalczyk
44d65c6582 youtube-dl: update to 2014.08.05 2014-08-09 02:57:18 +02:00
Mateusz Kowalczyk
27f8a89dfa ppsspp: update to 0.9.9 2014-08-09 02:49:50 +02:00
Mateusz Kowalczyk
816d971aea Copy all so files over from nVidia blob 2014-08-09 01:57:42 +02:00
lethalman
83e29974d1 Merge pull request #3498 from Fuuzetsu/nvidia
Copy over libGLESv2 and libEGL too for nVidia blob
2014-08-09 01:30:09 +02:00
John Wiegley
83cf279452 Add an expression for building Coq HEAD 2014-08-08 18:11:00 -05:00
Mateusz Kowalczyk
a5ee903e60 Copy over libGLESv2 and libEGL too for nVidia blob 2014-08-09 01:07:39 +02:00
Peter Simons
1e0576e6ee haskell-cgi: don't build old versions of this package with a recent GHC 2014-08-09 00:57:34 +02:00
Peter Simons
b2d870309d haskell-mtl: don't build old versions of this package with a recent GHC 2014-08-09 00:57:34 +02:00
Peter Simons
f31e42faa9 haskell-binary: don't build old versions of this package with a recent GHC 2014-08-09 00:57:34 +02:00
Peter Simons
3a45d920a6 haskell-deepseq: don't build old versions of this package with a recent GHC 2014-08-09 00:57:34 +02:00
Peter Simons
e8f929c93a haskell-fgl: don't build old versions of this package with a recent GHC 2014-08-09 00:57:34 +02:00
Peter Simons
956f2d52e2 haskell-mtl: don't build old versions of this package with a recent GHC 2014-08-09 00:57:34 +02:00
Peter Simons
101bb59c24 haskell-parallel: don't build old versions of this package with a recent GHC 2014-08-09 00:57:34 +02:00
Peter Simons
50afd7f3e7 haskell-network: don't build old versions of this package with a recent GHC 2014-08-09 00:57:34 +02:00
Peter Simons
3d47d2025b accelerate(-io): mark package as broken 2014-08-09 00:39:53 +02:00
Peter Simons
48fb5d73a6 cabal-install: don't build old versions of this package with a recent GHC 2014-08-09 00:39:53 +02:00
Peter Simons
ba59416c3d haddock: don't build old versions of this package with a recent GHC 2014-08-09 00:39:52 +02:00