summary refs log tree commit diff
path: root/pkgs/build-support
Commit message (Collapse)AuthorAge
* Merge pull request #56918 from grahamc/closure-graph-memoryShea Levy2019-03-06
|\ | | | | references-by-popularity: get a handle on memory usage
| * references-by-popularity: cache computation to avoid memory bloatGraham Christensen2019-03-05
| | | | | | | | | | | | | | | | On very large graphs (14k+ paths), we'd end up with a massive in memory tree of mostly duplication. We can safely cache trees and point back to them later, saving memory.
| * references-by-popularity: create debug outputGraham Christensen2019-03-05
| |
* | Merge pull request #56778 from kolloch/patch-2Vladyslav M2019-03-06
|\ \ | | | | | | buildRustCrate: Make CARGO_MANIFEST_DIR absolute
| * | buildRustCrate: Make CARGO_MANIFEST_DIR absolutePeter Kolloch2019-03-03
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | While it is not obvious from the source, cargo sets CARGO_MANIFEST_DIR to an absolute directory. This let to a build problem with the popular "tera" crate using the "pest" crate. ## Cargo details The variable is set here: https://github.com/rust-lang/cargo/blob/f7c91ba6220e1b96aa14e5964e7074452f9551fb/src/cargo/core/compiler/compilation.rs#L229 and computed from the `manifest_path`: https://github.com/rust-lang/cargo/blob/f7c91ba6220e1b96aa14e5964e7074452f9551fb/src/cargo/core/package.rs#L163 The manifest path is also exported via `cargo metadata` where you can see that it is absolute.
* | nixos/test/docker-tools: fix Nix image digestAntoine Eiche2019-03-06
| |
* | build-support/docker: fix the build of tarsum with Go 1.12Wael M. Nasreddine2019-03-05
| |
* | Merge pull request #55081 from moyamo/fix-subdirs.elMatthew Bauer2019-03-04
|\ \ | |/ |/| Link subdirs.el into emacs-packages-deps site-lisp
| * emacs: Link subdirs.el into emacs-packages-depsMohammed Yaseen Mowzer2019-02-02
| | | | | | | | | | | | | | | | | | | | | | Emacs loads all the elisp files in the top-level of the site-lisp directory. However some packages (e.g. mu4e) put their elisp files in a subdirectory of site-lisp. Emacs will not load these packages unless subdirs.el is present. This commit links the subdirs.el file from the emacs package into the emacs-package-deps package so that packages that put their elisp files in a subdirectory of site-lisp are loaded.
* | Merge staging-next into masterFrederik Rietdijk2019-03-01
|\ \
| * \ Merge master into staging-nextFrederik Rietdijk2019-02-24
| |\ \
| * \ \ Merge branch 'master' into staging-nextVladimír Čunát2019-02-22
| |\ \ \ | | | | | | | | | | | | | | | Hydra nixpkgs: ?compare=1506218
| * \ \ \ Merge #55420: buildEnv, substituteAll: disable binary cacheVladimír Čunát2019-02-22
| |\ \ \ \ | | | | | | | | | | | | | | | | | | ... into staging.
| | * | | | buildFHSEnv: allowSubstitutes = falsevolth2019-02-08
| | | | | | | | | | | | | | | | | | trivial builder
| | * | | | substituteAllFiles: allowSubstitutes = falsevolth2019-02-08
| | | | | | | | | | | | | | | | | | trivial builder
| | * | | | substituteAll: allowSubstitutes = false;volth2019-02-07
| | | | | | | | | | | | | | | | | | trivial derivation
| | * | | | buildEnv: allowSubstitutes = falsevolth2019-02-07
| | | | | | | | | | | | | | | | | | trivial derivation
| * | | | | buildEnv: improve file check to avoid false-positivesMaximilian Bosch2019-02-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The original change in #55372 was supposed to fix the case where a store path which is a file should be placed into `buildEnv` which broke with a fairly misleading Perl error. Unfortunately this introduced a regression, `findFiles` can have targets that are files if the file isn't a store path. Rather than adding more obscure checks with probably further regressions, I figured that it's better to replicate the behavior of `lib.isStorePath` and explicitly check if the store path is a file and break in this case only. This should also fix recent staging issues.
| * | | | | Merge staging-next into stagingFrederik Rietdijk2019-02-21
| |\ \ \ \ \
| * | | | | | buildEnv: break with a proper error if one path is actually a fileMaximilian Bosch2019-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I noticed by creating `buildEnv` where I accidentally put a derivation from `pkgs.writeText` into `paths` and got a broken build with the following misleading error message: ``` Use of uninitialized value $stat1 in numeric ne (!=) at /nix/store/9g4wc31j7a2xp22xpgwr0qssfxahxdzl-builder.pl line 74. Use of uninitialized value $stat1 in bitwise and (&) at /nix/store/9g4wc31j7a2xp22xpgwr0qssfxahxdzl-builder.pl line 75. different permissions in `' and `/nix/store/0vy5ss91laxvwkyvrbld5hv27i88qk5w-noise': 0000 <-> 0444 at /nix/store/9g4wc31j7a2xp22xpgwr0qssfxahxdzl-builder.pl line 75. ``` It can be reproduced with an expression like this: ``` nix { pkgs ? import <nixpkgs> { } }: let file = pkgs.writeText "test" '' content ''; in pkgs.buildEnv { name = "test-env"; paths = [ /* ... */ file ]; } ```
| * | | | | | Merge remote-tracking branch 'NixOS/master' into stagingMatthew Bauer2019-02-18
| |\ \ \ \ \ \
| * \ \ \ \ \ \ Merge master into stagingFrederik Rietdijk2019-02-14
| |\ \ \ \ \ \ \
* | \ \ \ \ \ \ \ Merge pull request #56542 from seppeljordan/bump-nix-prefetch-github-versionRyan Mulligan2019-02-28
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | nix-prefetch-github: 2.1 -> 2.2
| * | | | | | | | | nix-prefetch-github: 2.1 -> 2.2Sebastian Jordan2019-02-28
| | | | | | | | | |
* | | | | | | | | | treewide: use runtimeShell instead of stdenv.shell whenever possibleJörg Thalheim2019-02-26
|/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Whenever we create scripts that are installed to $out, we must use runtimeShell in order to get the shell that can be executed on the machine we create the package for. This is relevant for cross-compiling. The only use case for stdenv.shell are scripts that are executed as part of the build system. Usages in checkPhase are borderline however to decrease the likelyhood of people copying the wrong examples, I decided to use runtimeShell as well.
* | | | | | | | | buildRustCrate: adding the description fieldPierre-Étienne Meunier2019-02-25
| | | | | | | | |
* | | | | | | | | build-support/skaware: factor out clean packaging utilsProfpatsch2019-02-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They are useful for other packages as well.
* | | | | | | | | Merge pull request #56314 from P-E-Meunier/carnix-0.9.8Ryan Mulligan2019-02-24
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Carnix: 0.9.7 -> 0.9.8
| * | | | | | | | | Carnix: 0.9.7 -> 0.9.8Pierre-Étienne Meunier2019-02-24
| | | | | | | | | |
* | | | | | | | | | Merge pull request #55972 from andir/rust-editionsAndreas Rammhold2019-02-24
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | | | | | | | | buildRustCrate support editions
| * | | | | | | | | buildRustCrate: support rust editionsAndreas Rammhold2019-02-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In combination with carnix we can now build crates that require a specific edition of rust features. A few crates started requiring that already and having this in nixpkgs is just logical.
| * | | | | | | | | buildRustCrate: pass extraRustcOpts to configure crateAndreas Rammhold2019-02-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously build flags would not be available during the configure phase while they might be required to build the `build.rs` file.
* | | | | | | | | | nix-prefetch-github: 2.0 -> 2.1Sebastian Jordan2019-02-24
| |_|_|_|_|_|_|/ / |/| | | | | | | |
* | | | | | | | | Merge pull request #54693 from tilpner/appimage-toolsGraham Christensen2019-02-23
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | appimageTools: init
| * | | | | | | | | appimageTools: inittilpner2019-02-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The appimageTools attrset contains utilities to prevent the usage of appimage-run to package AppImages, like done/attempted in #49370 and #53156. This has the advantage of allowing for per-package environment changes, and extracts into the store instead of the users home directory. The package list was extracted into appimageTools to prevent duplication.
* | | | | | | | | | skawarePackages.execline: wrap execlineb with toolsProfpatsch2019-02-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The execlineb program is the launcher (and lexer) of execline scripts. So it makes a lot of sense to have all the small tools in scope by default. We append to the end of PATH so that they can be easily overwritten by the user. Co-authored-by: Alyssa Ross <hi@alyssa.is>
* | | | | | | | | | Merge pull request #56168 from seppeljordan/bumb-nix-prefetch-githubRyan Mulligan2019-02-22
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | nix-prefetch-github: 1.3 -> 2.0
| * | | | | | | | | | nix-prefetch-github: 1.3 -> 2.0Sebastian Jordan2019-02-21
| | | | | | | | | | |
* | | | | | | | | | | Merge pull request #50504 from symphorien/local-closureInfoSilvan Mosberger2019-02-22
|\ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|/ / |/| | | | | | | | | | nixos: add preferLocalBuild=true; on derivations for config files and closureInfo
| * | | | | | | | | | nixos: add preferLocalBuild=true; on derivations for config filesSymphorien Gibol2019-02-22
| | |_|_|_|_|_|/ / / | |/| | | | | | | |
* / | | | | | | | | dockerTools: mark store-path-to-layer.sh as executableAustin Seipp2019-02-21
|/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bcf54ce5bbc8c325cfd2b6bcc5cec7661ef49183 introduced a treewide change to use ${stdenv.shell} where-ever possible. However, this broke a script used by dockerTools, store-path-to-layer.sh, as it did not preserve the +x mode bit. This meant the file got put into the store as mode 0444, resulting in a build-time error later on that looked like: xargs: /nix/store/jixivxhh3c8sncp9xlkc4ls3y5f2mmxh-store-path-to-layer.sh: Permission denied However, in a twist of fate, bcf54ce5bbc8c325cfd2b6bcc5cec7661ef49183 not only introduced this regression but, in this particular instance, didn't even fix the original bug: the store-path-to-layer.sh script *still* uses /bin/sh as its shebang line, rather than an absolute path to stdenv. (Fixing this can be done in a separate commit.) Signed-off-by: Austin Seipp <aseipp@pobox.com>
* | | | | | | | | fetchsvn: move defaults to package fileJan Malakhovski2019-02-03
| | | | | | | | |
* | | | | | | | | Merge branch 'staging-next'Vladimír Čunát2019-02-20
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This round is without the systemd CVE, as we don't have binaries for that yet. BTW, I just ignore darwin binaries these days, as I'd have to wait for weeks for them.
| * \ \ \ \ \ \ \ \ Merge branch 'master' into staging-nextVladimír Čunát2019-02-19
| |\ \ \ \ \ \ \ \ \ | | | |_|_|_|_|/ / / | | |/| | | | | | | | | | | | | | | | | Hydra nixpkgs: ?compare=1505754
| * | | | | | | | | Merge master into staging-nextFrederik Rietdijk2019-02-18
| |\ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ Merge branch 'master' into staging-nextVladimír Čunát2019-02-17
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A mass darwin rebuild from master (#55784).
| * \ \ \ \ \ \ \ \ \ \ Merge master into staging-nextFrederik Rietdijk2019-02-16
| |\ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|/ / / / | |/| | | | | | | / / / | | | |_|_|_|_|_|/ / / | | |/| | | | | | | |
| * | | | | | | | | | Merge master into staging-nextFrederik Rietdijk2019-02-13
| |\ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ Merge remote-tracking branch 'origin/master' into stagingMatthew Bauer2019-02-09
| |\ \ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ \ Merge pull request #54578 from alyssais/gcj-darwinAlyssa Ross2019-02-08
| |\ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|_|_|_|/ / | |/| | | | | | | | | | | gcj: fix build on Darwin