summary refs log tree commit diff
path: root/pkgs/build-support/setup-hooks
Commit message (Collapse)AuthorAge
* stdenv: Move devhelp books to outputDevdocJan Tojnar2017-11-24
|
* set-source-date-epoch-to-latest.sh: shut up a warningVladimír Čunát2017-09-17
| | | | | > bash: warning: command substitution: ignored null byte in input /cc #28227. Also break the overlong line.
* autoreconfHook: Simplify by avoiding `findInputs`John Ericson2017-09-14
| | | | | `findInputs` is a stdenv/setup helper we should strive not to call elsewhere. Using normal deps is more idiomatic anyways.
* Merge #28227: set-source-date-epoch-to-latest.sh: ignore generated filesVladimír Čunát2017-09-02
|\
| * use \0 instead of \nvolth2017-08-13
| |
| * set-source-date-epoch-to-latest.sh: ignore generated filesvolth2017-08-13
| | | | | | | | set-source-date-epoch-to-latest.sh to ignore files newer than "$NIX_BUILD_TOP/.." (unlike "$NIX_BUILD_TOP" it is root-owned and cannot be touched by nixbld1).
* | darwin-frameworks: move fixup setup-hookDaiderd Jordan2017-08-28
| |
* | makeWrapper: use consistent styleTuomas Tynkkynen2017-08-11
| | | | | | | | | | All the other plain variable references (before e1d46c0c4) are without braces.
* | stdenv: Don't move info pages to the 'man' outputTuomas Tynkkynen2017-08-11
| | | | | | | | | | | | Because if you were to disable man pages via 'programs.man.enable', the "man" output wouldn't be installed and the info pages would go missing.
* | stdenv: Don't move man or info pages to $docTuomas Tynkkynen2017-08-11
| | | | | | | | | | Because .doc is normally not installed to user environments, these manpages are unaccessible by default otherwise.
* | Merge pull request #27998 from davidak/macOSDomen Kožar2017-08-11
|\ \ | |/ |/| replace "Mac OS X" and "OS X" with "macOS"
| * replace "Mac OS X" and "OS X" with "macOS"davidak2017-08-07
| | | | | | | | | | | | | | | | | | | | as it is the official name since 2016 https://en.wikipedia.org/wiki/Macintosh_operating_systems#Desktop exception are parts refering to older versions of macOS like "GUI support for Mac OS X 10.6 - 10.12. Note that Emacs 23 and later [...]"
* | makeWrapper: fix regression introduced in #24944Frederik Rietdijk2017-08-09
| | | | | | | | | | In some cases wrappers could not be made. See e.g. https://github.com/NixOS/nixpkgs/pull/24944#issuecomment-321175692
* | Merge pull request #24944 from ahmedtd/make-makewrapper-pickyPeter Simons2017-08-08
|\ \ | | | | | | makeWrapper: Fail loudly when misused
| * | makeWrapper: Only wrap normal executable filesTaahir Ahmed2017-08-08
| |/ | | | | | | | | | | | | | | | | | | | | | | | | `makeWrapper` and `wrapProgram` are being invoked on all kinds of wacky things (usually with the help of bash globs or other machine assistance). So far, I have come across `wrapProgram` being invoked on a directory, as well as on the empty string. As far as I can tell, it's only valid to invoke these utilities on a normal (non-directory, non-device) executable file. This commit enforces that precondition.
* | Merge pull request #25185 from ahmedtd/fix-makewrapper-unsupported-argsPeter Simons2017-08-08
|\ \ | | | | | | Fix makewrapper unsupported args
| * | makeWrapper: Die on unsupported argumentsTaahir Ahmed2017-08-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, makeWrapper would accept arguments it didn't recognize, potentially allowing argument misspellings or broken callers. Now, makeWrapper dies with a backtrace if it is called incorrectly. Also changes `wrapProgram` so that it doesn't pass through the first argument twice --- this was tripping up the argument checking.
| * | dieHook: Add `die` utility functionTaahir Ahmed2017-08-08
| |/ | | | | | | | | Calling `die "Error message"` causes the current script to exit with an error, printing a backtrace
* | Merge pull request #27320 from jtojnar/fix/unbreak-polariFrederik Rietdijk2017-08-05
|\ \ | |/ |/| polari: unbreak
| * wrap-gapps-hook: also wrap symlinks to executablesJan Tojnar2017-08-05
| | | | | | | | | | | | | | | | | | | | Some programs store the executable in a different place and link it from the `bin` directory. For example, Polari links `$out/bin/polari` to `$out/share/polari/org.gnome.Polari`. `wrapGAppsHook` did not follow symlinks so it was not able to wrap Polari, making it unable to access GObject introspection definitions required for running the program. I made the wrapping script follow symlinks to fix this corner case.
* | Add a setup hook to fill NIX_DEBUG_INFO_DIRSEelco Dolstra2017-07-28
|/ | | | | | | | This setup hook is propagated by gdb. Thus, a typical use is: $ nix-shell -p gdb nix nix.debug sqlite.debug ... and gdb will be able find the debug symbols of nix etc. automatically.
* Revert "stdenv: Store one package per line in nix-support/propagated-*"John Ericson2017-07-24
| | | | | | | | | | As @oxij points out in [1], this breakage is especially serious because it changes the contents of built environments without a corresonding change in their hashes. Also, the revert is easier than I thought. This reverts commit 3cb745d5a69018829ac15f7d5a508135f6bda123. [1]: https://github.com/NixOS/nixpkgs/pull/27427#issuecomment-317293040
* stdenv: Store one package per line in nix-support/propagated-*John Ericson2017-07-10
| | | | | | | | | | | | | | | | | This makes those files a bit easier to read. Also, for what it's worth, it brings us one baby step closer to handling spaces in store paths. Also, I optimized handling of many transitive deps with read. Probably, not very beneficial, but nice to enforce the pkg-per-line structure. Doing so let me find much dubious code and fix it. Two misc notes: - `propagated-user-env-packages` also needed to be adjusted as sometimes it is copied to/from the propagated input files. - `local fd` should ensure that file descriptors aren't clobbered during recursion.
* cygwin: force native symlinks for librariesDavid McFarland2017-06-26
| | | | | | | | | | This will override the existing winsymlinks setting. nativestrict will cause ln to fail if it's unable to create a native symlink. Native symlinks are required for the windows dll loader to find the libraries. This script is also used for cross-mingw, but setting CYGWIN shouldn't cause a problem.
* Add a setup hook for detecting $TMPDIR references in RPATHs and wrapper scriptsEelco Dolstra2017-05-04
|
* stdenv: fix "grep: invalid range"Linus Heckemann2017-05-04
|
* Merge pull request #25299 from ahmedtd/fix-wrap-gapps-hookPeter Simons2017-04-29
|\ | | | | wrapGAppsHook: Correct `wrapProgram` invocations
| * wrapGAppsHook: Correct `wrapProgram` invocationsTaahir Ahmed2017-04-28
| | | | | | | | | | | | | | | | | | | | | | | | This change fixes several defects in the way `wrapGAppsHook` selected the executable to wrap. Previously, it would wrap any top-level files in the target `/bin` and `/libexec` directories, including directories and non-executable files. In addition, it failed to wrap files in subdirectories. Now, it uses `find` to iterate over these directory hierarchies, selecting only executable files for wrapping.
* | wrapGAppsHook: Revert "Correct `wrapProgram` invocations"Peter Simons2017-04-28
| | | | | | | | | | | | | | | | This reverts commit 8b9f153bb9c8156ec4f3d56d61845e432d19dcd6 of https://github.com/NixOS/nixpkgs/pull/25183 because it breaks builds of packages that don't install both a "bin" and a "libexec" directory. See https://github.com/NixOS/nixpkgs/pull/25183#issuecomment-298064769 for more details.
* | Merge pull request #25183 from ahmedtd/fix-wrap-gapps-hookPeter Simons2017-04-28
|\ \ | | | | | | wrapGAppsHook: Correct `wrapProgram` invocations
| * | wrapGAppsHook: Correct `wrapProgram` invocationsTaahir Ahmed2017-04-24
| |/ | | | | | | | | | | | | | | | | | | | | | | This change fixes several defects in the way `wrapGAppsHook` selected the executable to wrap. Previously, it would wrap any top-level files in the target `/bin` and `/libexec` directories, including directories and non-executable files. In addition, it failed to wrap files in subdirectories. Now, it uses `find` to iterate over these directory hierarchies, selecting only executable files for wrapping.
* / makeWrapper: search for free unwrapped file nameNikolay Amiantov2017-04-12
|/
* makeWrapper: quote pathsNikolay Amiantov2017-03-16
| | | | | | Fixes https://github.com/NixOS/nixpkgs/pull/22962#commitcomment-21144939 Also run ShellCheck.
* Merge branch 'master' into stagingVladimír Čunát2017-03-15
|\ | | | | | | More larger rebuilds from master, unfortunately.
| * darwin: add setup-hook to fix CF referencesDaiderd Jordan2017-03-12
| |
* | stripDirs: Silence annoying 'File format not recognized' errorsShea Levy2017-03-08
|/
* compress-man-pages: skip compressed manpagesVladimír Čunát2017-02-27
| | | | | | Because of bash 4.4 the semantics GLOBIGNORE changed. This resulted in already compressed manpages to be compressed twice. Also be careful about symlinks to fix #21777, e.g. the ledger example.
* updateAutotoolsGnuConfigScriptsHook: Only fix filesTuomas Tynkkynen2017-02-11
| | | | | Some package had a broken symlink named config.sub, and the script would fail.
* Merge #19328: mkWrapper fix and docsVladimír Čunát2017-02-05
|\
| * stdenv/makeWrapper: make extraFlagsArray localProfpatsch2016-10-08
| | | | | | | | | | | | extraFlagsArray should not be exposed outside of `makeWrapper`, it should only be possible to set it inside a script supplied via the `--run` argument.
| * stdenv: document makeWrapperProfpatsch2016-10-08
| | | | | | | | | | Add function documentation to `makeWrapper`. Also add user documentation to the nixpkgs manual.
* | stdenv: Add updateAutoconfGnuConfigScriptsHook for aarch64Tuomas Tynkkynen2017-01-25
| | | | | | | | | | | | | | | | | | | | | | This is required for Aarch64 since a lot of source tarballs ship with outdated configure scripts that don't recognize aarch64. Simply replacing the config.guess and config.sub with new versions from upstream makes them build again. This same approach is used by at least Buildroot and Fedora. In principle this could be enabled for all architectures but conditionalizing this on aarch64 avoids a mass rebuild on x86.
* | fix win-dll-link.sh setup hook (#20925)Tomas Hlavaty2016-12-07
| | | | | | | | if a dll is symlink then dll files from the symlinked directory need to be taken
* | stdenv moveToOutput: move even broken symlinksVladimír Čunát2016-11-26
|/ | | | | | | | I believe this reduces surprises and is actually simpler semantically. This is important e.g. for relative symlinks when moving both source and target - now the order of moving won't matter. Fixes #20723 (a particular instance of the surprise).
* outputDocdev -> outputDevdocEelco Dolstra2016-09-20
| | | | For consistency with the devdoc output.
* Don't nuke section 3 manpages by defaultEelco Dolstra2016-09-20
| | | | | | They now go to devman, devdoc, or $outputMan, in that order. This is to prevent cases such as the man-pages package quietly losing its section 3 pages.
* docdev -> devdocEelco Dolstra2016-09-01
| | | | | It's "developer documentation", not "documentation developer" after all.
* stdenv/multiple-outputs.sh: Change output propagation logicTuomas Tynkkynen2016-08-29
| | | | Because 'dev' will most often not be the default output after my changes.
* patchShebangs: quote variable assignmentNikolay Amiantov2016-07-09
|
* patchShebangs: strip trailing whitespaceCireo2016-07-09
| | | | | | | | | | | | | | | | | | | | Prior to this commit, trailing whitespace would be introduced when modifying '#!' lines with no arguments. For example (whitespace added): /nix/store/.../foo: interpreter directive changed from "/bin/bash" to "/nix/store/...-bash-4.3-p42/bin/bash " /nix/store/.../bar: interpreter directive changed from "/bin/baz wef" to "/nix/store/...-baz wef " We add a sed command to strip trailing whitespace, so the above commands would drop the two spaces after "bash", or the one space after "baz wef". abbradar: fixed commit title Closes #16785.