summary refs log tree commit diff
path: root/pkgs/build-support/trivial-builders.nix
Commit message (Collapse)AuthorAge
* makeSetupHook: make the default name "hook" overridableOrivej Desh2017-12-19
| | | | | for occasional convenience while looking at drv paths, such as in the output of nix-build and nix-diff.
* stdenv setup: Always use both propagated filesJohn Ericson2017-11-21
| | | | | | | | | | | This continues #23374, which always kept around both attributes, by always including both propagated files: `propgated-native-build-inputs` and `propagated-build-inputs`. `nativePkgs` and `crossPkgs` are still defined as before, however, so this change should only barely observable. This is an incremental step to fully keeping the dependencies separate in all cases.
* trivial-builders.nix: fix writeShellScriptBinNikita Uvarov2017-10-06
| | | The check should be performed on the target shell script, not on the output directory.
* trivial-builders.nix: add writeShellScriptBin builderSergey Mironov2017-08-01
|
* stdenv-setup and misc pkgs: Revert to space-deliminated propagated-* filesJohn Ericson2017-07-26
| | | | | We cannot switch to line-delimited yet, because certain Nix commands do not read in the entire file, but just the first line.
* 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.
* symlinkJoin: eliminate lndir spamRyan Trinkle2017-05-27
| | | | By default lndir outputs the name of each subdirectory as it descends into it; this commit gives it the -silent flag to disable this behavior
* linkFarm: prefer local buildMichael Raskin2016-12-09
|
* runCommand: Use stdenvNoCCEelco Dolstra2016-09-29
| | | | | | This ensures that most "trivial" derivations used to build NixOS configurations no longer depend on GCC. For commands that do invoke gcc, there is runCommandCC.
* Move useSetUID to pam_usb, the only place where it's usedEelco Dolstra2016-09-29
|
* Add a warning about using requireFileEelco Dolstra2016-09-29
|
* symlinkJoin: truly pass the defaulted parametersVladimír Čunát2016-07-14
| | | | | The catch is that in nix the @-pattern binds the set that was *explicitly* passed to the function, i.e. default values are *not* taken into account.
* pkgs.runCommand: passAsFile (buildCommand can be very long)Domen Kožar2016-06-10
| | | | | | | | | | | | | | Close #15803. This avoids the error: while setting up the build environment: executing ‘/nix/store/7sb42axk5lrxqz45nldrb2pchlys14s1-bash-4.3-p42/bin/bash’: Argument list too long Note: I wanted to make it optional based on buildCommand length, but that seems pointless as I'm sure it's less performant. Amended by vcunat: https://github.com/NixOS/nixpkgs/pull/15803#issuecomment-224841225
* symlinkJoin: allow arbitrary additional attributesNikolay Amiantov2016-05-27
|
* symlinkJoin: accept set as an argument with additional optionsNikolay Amiantov2016-04-26
|
* symlinkJoin: preferLocalBuild && !allowSubstitutesVladimír Čunát2016-03-11
|
* lib/copyPathToStore: annotate docstringProfpatsch2016-03-01
|
* requireFile: preferLocalBuild = trueVladimír Čunát2016-02-19
| | | | There's no point trying to "distribute" showing the error message.
* requireFile: remove colon from the url for easier copy/pasteDomen Kožar2016-01-16
|
* requireFile: use correct absolute path syntaxDomen Kožar2016-01-14
|
* Force another rebuildEelco Dolstra2016-01-07
| | | | | | | | | Unfortunately, yesterday Nix got reverted to a version with broken passAsFile implementation on some Hydra machines, so we have corrupted files again. (E.g. http://hydra.nixos.org/build/29777678.) Forcing another gratuitous rebuild to get rid of them. (cherry picked from commit 75974d9220b8397c736ada76fb24eb934fa62f6c)
* add copyPathToStore and copyPathsToStoreThomas Tuegel2015-12-16
|
* Set ‘allowSubstitutes = false’ on various derivationsEelco Dolstra2015-07-09
| | | | | This reduces the number of binary cache requests. See https://github.com/NixOS/nix/commit/b64988bb3585478676585a0f0aecbcf4e11d4432.
* requireFile: Make more flexibleShea Levy2015-07-08
|
* writeTextFile: Use passAsFile if availableWout Mertens2015-02-18
|
* stdenv.lib -> libEelco Dolstra2014-10-27
|
* build-support: Add writeTextDirJaka Hudoklin2014-03-23
| | | | | This `writeTextFile` based helper function is especially usefull for writing a bunch of configuration files to root of the output folder
* Rename buildNativeInputs -> nativeBuildInputsEelco Dolstra2012-12-28
| | | | | Likewise for propagatedBuildNativeInputs, etc. "buildNativeInputs" sounds like an imperative rather than a noun phrase.
* * writeTextFile: don't use the build hook. NixOS uses this function aEelco Dolstra2012-04-26
| | | | | | | lot, and it causes a lot of unnecessary overhead on machines with remote building enabled. svn path=/nixpkgs/trunk/; revision=33934
* * Remove an unnecessary function.Eelco Dolstra2012-03-19
| | | | svn path=/nixpkgs/trunk/; revision=33271
* * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointlessEelco Dolstra2012-01-18
| | | | | | function, so obsolete it. svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
* * wrapPythonPrograms: don't hard-code the Python library prefix.Eelco Dolstra2011-03-29
| | | | svn path=/nixpkgs/branches/modular-python/; revision=26594
* * Move the wrapPythonPrograms function into a separate setup hookEelco Dolstra2011-03-28
| | | | | | (wrapPython). svn path=/nixpkgs/branches/modular-python/; revision=26580
* Move "fetchurl restricted" code to requireFile.Yury G. Kudryashov2010-05-03
| | | | | | | This reverts r21474 and r21467. Also migrate wtk (r21472) to new API. svn path=/nixpkgs/trunk/; revision=21575
* * Add a wrapper to find any set-uid version of a program in the environment.Nicolas Pierron2010-01-03
| | | | svn path=/nixpkgs/trunk/; revision=19181
* Fix linkFarm for its new locationMichael Raskin2009-11-23
| | | | svn path=/nixpkgs/trunk/; revision=18567
* Restore linkFarm trivial builderMichael Raskin2009-11-23
| | | | svn path=/nixpkgs/trunk/; revision=18566
* * Move functions like `runCommand' out of all-packages.nix and intoEelco Dolstra2009-11-19
build-support/. svn path=/nixpkgs/trunk/; revision=18465