about summary refs log tree commit diff
path: root/pkgs/build-support
AgeCommit message (Collapse)AuthorFilesLines
2020-07-21Merge pull request #93398 from IvarWithoutBones/appimage-run-fixRyan Mulligan1-1/+1
appimage: switch to gst-plugins-base 1.0
2020-07-18appimage: switch to gst-plugins-base 1.0IvarWithoutBones1-1/+1
2020-07-18Revert "Group packages by language/builder via dummy maintainer"zowoq1-5/+1
2020-07-17buildBazelPackage: add "fetchConfigured" for fetching only things required ↵Luke Granger-Brown1-2/+10
for the build "bazel fetch" will, by default, fetch everything that _might_ be used, including things that will later be discarded due to the way the build is configured. Concretely, this means that for some builds of Java packages, this will avoid failures where the builder tries to retrieve the JDK from /usr/share/java (or equivalent). This also means that for most packages we can fetch _fewer_ dependencies, since the standard tree pruning for artifacts to fetch will take effect. fetchConfigured is disabled by default since it changes the fetch hashes of tensorflow/tensorflow2 (since it ends up fetching less).
2020-07-17buildRustPackage: add nixpkgs-rust maintainerzowoq1-1/+5
2020-07-16Merge pull request #92934 from hercules-ci/dockerTools-set-imageTagRobert Hensing2-0/+30
dockerTools: Always set imageTag attribute
2020-07-11dockerTools: Always set imageTag attributeRobert Hensing2-0/+30
The image tag can be specified or generated from the output hash. Previously, a generated tag could be recovered from the evaluated image with some string operations. However, with the introduction of streamLayeredImage, it's not feasible to compute the generated tag yourself. With this change, the imageTag attribute is set unconditionally, for the buildImage, buildLayeredImage, streamLayeredImage functions.
2020-07-11Merge master into staging-nextFrederik Rietdijk4-9/+52
2020-07-09dockerTools.buildLayeredImage: fix created=nowJos van Bakel2-3/+13
2020-07-06Merge branch 'master' into fetchurl-no-hashMatthew Bauer34-447/+910
2020-07-06dockerTools: Verify nix-store contents on buildLayeredImage testUtku Demir1-4/+13
2020-07-06dockerTools.streamLayeredImage: Correctly copy hardlinksUtku Demir1-0/+1
2020-07-04dockerTools: Support files directly under /nix/storeUtku Demir2-4/+14
Also makes sure that the files inside a layer added in a sorted order to make the results more deterministic.
2020-07-03buildRustPackage: fix cargoBuildFlagsFlakebi1-1/+1
When features were supplied in cargoBuildFlags, the binaries were built with these features enabled. Unless checking was disabled, `cargo test` was executed without these build flags, meaning the binaries were rebuilt and overwritten without the specified features. Fix this bug by running tests after the installation phase.
2020-07-02Merge #92089: {cc,bintools}-wrapper: Some fixesVladimír Čunát2-101/+120
2020-07-02Merge staging-next into stagingFrederik Rietdijk4-308/+453
2020-07-02ocamlPackages.buildOasis: fix handling of installation prefixVincent Laporte1-4/+2
2020-06-30{bintools,cc}-wrapper: Ensure nix-support/*-flags files existJohn Ericson2-17/+37
This will unbreak firefox and a few other packages which try to grab some of the libcxx flags.
2020-06-30{cc,bintools}-wrapper: Comments no longer splicedJohn Ericson2-92/+91
This means we can freely keep the comments up to date without the penalty of a mass rebuild.
2020-06-29stdenv: fix backward multiple outputs conditionalAlyssa Ross1-1/+1
This is supposed to shareDocName to a fallback value if it can't be determined from looking at the configure script. But the conditional checked whether shareDocName was set, rather than if it wasn't. This meant that if shareDocName had been detected from a configure script, it would be immediately overridden by the package name, and if it couldn't be detected, shareDocName would remain unset. This resulted in QEMU installing files like $out/share/doc/index.html, which should of course have been in $out/share/doc/qemu/index.html. An interesting side effect of this is that, since 9f8751528cd89d343258dd718afa56f8590917bb when this code was added, the detected package name has never actually been used for installing documentation, because it would always be overridden. So this patch will actually enable that for the first time, four years later. Fixes: https://github.com/NixOS/nixpkgs/issues/90486
2020-06-22Merge pull request #85189 from Ericson2314/cxx-wrapper-debtJohn Ericson3-16/+55
C++ compilers: Be sane with standard libraries
2020-06-22add autoPatchelfIgnoreMissingDeps to auto-patchelf.shDavHau1-1/+1
2020-06-22C++ Compilers: Systematize handling of standard librariesJohn Ericson3-16/+55
2020-06-22stream_layered_image: Use pathlib module for directory traversalUtku Demir1-16/+15
2020-06-21stream_layered_image: Always set uid and gid to rootUtku Demir1-0/+4
2020-06-21stream_layered_image: Clarify assertion failureUtku Demir1-1/+3
2020-06-21stream_layered_image: Use more descriptive variable nameUtku Demir1-4/+4
2020-06-21dockerTools: Properly quote a shell variableUtku Demir1-1/+1
2020-06-21stream_layered_image: Add docstrings to functionsUtku Demir1-7/+57
2020-06-21stream_layered_image: Add main methodUtku Demir1-62/+65
2020-06-21dockerTools.streamLayeredImage: commentsUtku Demir1-1/+7
2020-06-21stream_layered_image.py: commentsUtku Demir1-0/+46
2020-06-21Set mtime in even more placesUtku Demir1-12/+15
2020-06-21Set mtime to get more deterministic buildsUtku Demir2-15/+52
2020-06-21Implement dockerTools.streamLayeredImageUtku Demir3-303/+300
2020-06-19Merge pull request #91085 from hercules-ci/fix-dockerTools-nix-symlinksRobert Hensing2-3/+29
Fix docker tools nix symlinks
2020-06-19dockerTools: keep symlinks to nix intactRobert Hensing1-3/+7
2020-06-19dockerTools: test that tar keeps nix binary symlinks intactRobert Hensing1-0/+22
2020-06-16Merge master into staging-nextFrederik Rietdijk5-12/+70
2020-06-16Merge pull request #90193 from danieldk/build-rs-feature-envAndreas Rammhold4-11/+58
buildRustCrate: set CARGO_FEATURE_* when running the build script
2020-06-16Merge pull request #89245 from alexarice/agda-literateLassulus1-1/+12
agda: install literate files
2020-06-13buildRustCrate: set CARGO_FEATURE_* when running the build scriptDaniël de Kok4-11/+58
Cargo sets `CARGO_FEATURE_*` for all features when running a build script: https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-build-scripts Some crates have build scripts (e.g. openblas-src) that rely on the feature variables being properly set. Since we now need several representations of features, this change also updates `createFeatures` to be a list of features, rather than `rustc` feature arguments. `configureCrate` and `buildCrate` then build the required representations as-needed. Fixes #68978
2020-06-13Merge staging-next into stagingFrederik Rietdijk3-3/+2
2020-06-13Merge master into staging-nextFrederik Rietdijk2-2/+1
2020-06-12treewide: central.maven.org -> repo1.maven.orgvolth2-2/+1
2020-06-12Merge master into staging-nextFrederik Rietdijk1-1/+1
2020-06-11Merge pull request #89351 from dwarfmaster/fix-emacs-buildMatthew Bauer1-1/+1
Fix building of emacsWithPackages not findind subdirs.el
2020-06-11Merge pull request #90004 from romildo/buildenvJosé Romildo Malaquias1-0/+9
buildenv: paths to link resolving to the same absolute path is not a conflict
2020-06-10buildenv: paths to link resolving to the same absolute path is not a conflictJosé Romildo Malaquias1-0/+9
When building an environment if two paths conflict but one or both are symbolic links and they resolve to the same real path, the conflict is discarded because the contents of both paths are the same. One of them is chosen and there is no need to recur into them in order to build deeper symbolic links.
2020-06-09fetchurl: only allow empty hash when cacert is availableMatthew Bauer2-3/+16
We can use cacert to validate that the data passes SSL certificates. Normally, this doesn’t happen because we already have the hash, but in the hash = "" case we don’t.