about summary refs log tree commit diff
path: root/pkgs/build-support
Commit message (Collapse)AuthorAge
...
| * | | | | | | | | bintools-wrapper: fix unknown emulation error messageMatthew Bauer2019-02-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using the + operator with throw doesn’t seems to work properly. You need to use antiquotes here to get the targetPlatform config included.
| * | | | | | | | | netbsd: add cross targetMatthew Bauer2019-02-26
| | | | | | | | | |
| * | | | | | | | | Merge remote-tracking branch 'NixOS/master' into stagingMatthew Bauer2019-02-24
| |\ \ \ \ \ \ \ \ \
* | | | | | | | | | | rust: set PKG_CONFIG_ALLOW_CROSS conditionally in buildRustPackageMichael Eden2019-03-29
| | | | | | | | | | |
* | | | | | | | | | | rust: allow building in debug or release modesMichael Eden2019-03-29
| | | | | | | | | | |
* | | | | | | | | | | rust: move releaseDir to target/release in the buildPhaseMichael Eden2019-03-29
| | | | | | | | | | |
* | | | | | | | | | | rust: fix cross-compilationJörg Thalheim2019-03-29
| |_|_|_|_|_|_|_|_|/ |/| | | | | | | | |
* | | | | | | | | | buildRustCrate: Fix `include` filterTeo Klestrup Röijezon2019-03-25
| |_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | buildRustCrate has a handy `include` helper, that only imports those whitelisted files and folders to the store. However, the function's matching logic is broken and includes all files, regardless of whether or not they're whitelisted, as long as the whitelist contains at least one name (regardless of whether that name exists). This is because it doesn't take into account that `lib.strings.removePrefix "foo" "bar" == "bar"` (that is, paths that don't match the prefix are passed straight through).
* | | | | | | | | Merge pull request #57505 from nlewo/fix-55290lewo2019-03-22
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|/ / |/| | | | | | | | dockerTools.buildImage.runAsRoot: preserve layers ordering at image unpacking
| * | | | | | | | dockerTools.buildImage.runAsRoot: preserve layers ordering at image unpackingAntoine Eiche2019-03-12
| | |_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch preserves the ordering of layers of a parent image when the image is unpacked. Fixes #55290
* / | | | | | | auto-patchelf: don't use grep -q, as it causes Broken pipe (#56958)Danylo Hlynskyi2019-03-20
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This rare sitation was caught when building zoom-us package: ``` automatically fixing dependencies for ELF files /nix/store/71d65fplq44y9yn2fvkpn2d3hrszracd-auto-patchelf-hook/nix-support/setup-hook: line 213: echo: write error: Broken pipe /nix/store/71d65fplq44y9yn2fvkpn2d3hrszracd-auto-patchelf-hook/nix-support/setup-hook: line 210: echo: write error: Broken pipe ``` The worst is that derivation continued and resulted into broken package: https://github.com/NixOS/nixpkgs/pull/55566#issuecomment-470065690 I hope, replacing `grep -q` with `grep` will remove this race condition.
* | | | | | | bazel-remote: init at 2019-01-12Uri Baghin2019-03-11
| | | | | | |
* | | | | | | Merge pull request #56634 from marsam/buildrustcreate-pname-attributeJörg Thalheim2019-03-11
|\ \ \ \ \ \ \ | |_|_|_|_|_|/ |/| | | | | | buildRustPackage: Allow pname attribute
| * | | | | | buildRustPackage: Allow pname attributeMario Rodas2019-03-01
| | |_|/ / / | |/| | | |
* | | | | | 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>