summaryrefslogtreecommitdiffstats
path: root/pkgs/build-support
AgeCommit message (Collapse)Author
2021-03-25dockerTools.streamLayeredImage: resolve duplicate env varsLouis Blin
For images running on Kubernetes, there is no guarantee on how duplicate environment variables in the image config will be handled. This seems to be different from Docker, where the last environment variable value is consistently selected. The current code for `streamLayeredImage` was exploiting that assumption to easily propagate environment variables from the base image, leaving duplicates unchecked. It should rather resolve these duplicates to ensure consistent behavior on Docker and Kubernetes.
2021-03-23Merge pull request #115857 from lbpdt/feature/docker-tools-layered-base-imageBenjamin Hipple
dockerTools.buildLayeredImage: support fromImage
2021-03-23dockerTools.buildLayeredImage: support fromImageLouis Blin
It is now possible to pass a `fromImage` to `buildLayeredImage` and `streamLayeredImage`, similar to what `buildImage` currently supports. This will prepend the layers of the given base image to the resulting image, while ensuring that at most `maxLayers` are used. It will also ensure that environment variables from the base image are propagated to the final image.
2021-03-21Merge pull request #112073 from ztzg/x-16304-debbuild-checkinstallSandro
2021-03-15Merge master into staging-nextgithub-actions[bot]
2021-03-12Merge master into staging-nextgithub-actions[bot]
2021-03-12apple-music-electron: 1.5.2 -> 1.5.5IvarWithoutBones
2021-03-11Merge pull request #115793 from ↵Benjamin Hipple
lbpdt/feature/docker-tools-layered-image-name-slashes dockerTools.buildLayeredImage: image names with registry/ prefix
2021-03-11Merge pull request #115791 from lbpdt/feature/docker-tools-nix-store-dirBenjamin Hipple
dockerTools.buildLayeredImage: configurable store root
2021-03-11Merge master into staging-nextgithub-actions[bot]
2021-03-11Merge pull request #102225 from luc65r/fetchsrhtMichael Weiss
Add fetcher: fetchFromSourcehut
2021-03-10Merge master into staging-nextgithub-actions[bot]
2021-03-10dockerTools.buildLayeredImage: image names with registry/ prefixLouis Blin
When using `buildLayeredImage`, it is not possible to specify an image name of the form `<registry>/my/image`, although it is a valid name. This is due to derivations under `buildLayeredImage` using that image name as their derivation name, but slashes are not permitted in that context. A while ago, #13099 fixed that exact same problem in `buildImage` by using `baseNameOf name` in derivation names instead of `name`. This change does the same thing for `buildLayeredImage`.
2021-03-10dockerTools.buildLayeredImage: configurable store rootLouis Blin
`stream_layered_image.py` currently assumes that the store root will be at `/nix/store`, although the user might have configured this differently. This makes `buildLayeredImage` unusable with stores having a different root, as they will fail an assertion in the python script. This change updates that assertion to use `builtins.storeDir` as the source of truth about where the store lives, instead of assuming `/nix/store`.
2021-03-10coqPackages.multinomials: 1.5.2 -> 1.5.4 (#115427)Cyril Cohen
- This is the first packages which uses Dune in order to build and install so I had to refactor build-support/coq/default.nix in order to support it. - I added a new feature: one can now release.v.sha256 empty to try to download with a fake sha256, hence failures are reported and one can copy paste the sha256 given by the error message. - I updated the documentation of languages-frameworks/coq.section.md accordingly.
2021-03-09Merge master into staging-nextgithub-actions[bot]
2021-03-09dockerTools: Do not lowercase image tag in buildImageChris Roberts
Closes #115455
2021-03-09cc-wrapper: remove quoting of response fileAndrew Childs
Fixes build failures with clang: clang-7: error: unknown argument: '-fPIC -target' clang-7: error: no such file or directory: '@<(printf %qn -O2' clang-7: error: no such file or directory: 'x86_64-apple-darwin' Introduced by 60c5cf9cea56ffd607b48fe07ff1174ea6a13afc in #112449
2021-03-09Merge master into staging-nextgithub-actions[bot]
2021-03-08Merge pull request #112424 from alyssais/fetchbitbucketSandro
fetchFromBitbucket: remove hack for Mercurial
2021-03-08cargo/hooks: allow hooks to be disabledJonathan Ringer
2021-03-08fetchFromSourcehut: initluc65r
2021-03-07Merge staging-next into staginggithub-actions[bot]
2021-03-07ocamlPackages.dune: rename into dune_1Vincent Laporte
2021-03-06Merge pull request #112449 from angerman/angerman/response-filesJohn Ericson
Add response file support when compiling with clang
2021-03-06Merge staging-next into staginggithub-actions[bot]
2021-03-05writers: formatSandro Jäckel
2021-03-05Merge pull request #115008 from Hoverbear/rust-debug-build-supportDaniël de Kok
rustPlatform.buildRustPackage: support debug builds
2021-03-04Merge branch 'staging-next' into stagingJan Tojnar
2021-03-04Merge pull request #115118 from obsidiansystems/prebuilt-android-fix-evalJohn Ericson
android prebuilt: Fix eval
2021-03-04android_prebuilt: Fix evals1341
2021-03-04Merge pull request #115089 from Ma27/php-ext-fixElis Hirwing
Revert "php: Add php package versions to extensions/packages pnames"
2021-03-04Merge pull request #115083 from osener/fix-dockertools-on-darwinRobert Hensing
dockerTools: fix build on Darwin
2021-03-04dockerTools: fix build on DarwinOzan Sener
Fixes #110665 Introduced by #109420
2021-03-04rustPlatform.buildRustPackage: support debug buildsAna Hobden
Signed-off-by: Ana Hobden <operator@hoverbear.org>
2021-03-04Merge pull request #115075 from siraben/stdenv-cleanupRobert Hensing
treewide: remove stdenv where not needed
2021-03-04Revert "php: Add php package versions to extensions/packages pnames"Maximilian Bosch
This reverts commit a081dcf86de4f100efe604a52b32df4b14892f44.
2021-03-04treewide: remove stdenv where not neededBen Siraphob
2021-03-03Merge pull request #114853 from lourkeur/fix-string-escapingtaku0
nixos/kresd, nixos/dokuwiki, tests/fpm, build-bazel-package, libcutl: fix string escaping
2021-03-02Merge pull request #114902 from obsidiansystems/fix-tools-withPackagesJohn Ericson
treewide: Fix various tools wrappers "with packages"
2021-03-02buildEnv: Support `nativeBuildInputs` tooJohn Ericson
Since #112276, we should always put `makeWrapper` in `nativeBuildInputs`. But `buildEnv` was saying put it in `buildInputs`. That's wrong! Fix the instructions, and make the right thing possible.
2021-03-02Merge pull request #114817 from thefloweringash/darwin-archJohn Ericson
darwin: introduce darwinArch, apply in {cc,bintools}-wrappers
2021-03-02Merge staging-next into staginggithub-actions[bot]
2021-03-02buildRustPackage: Add cargoTestFlagsMax Hausch
This makes it possible to pass flags to `cargo test`, which is needed if a crate is compiled with custom feature flags.
2021-03-02bintools-wrapper: set -arch on darwinAndrew Childs
2021-03-02cc-wrapper: set -arch on darwinAndrew Childs
2021-02-27php: Add php package versions to extensions/packages pnamesElis Hirwing
2021-02-26buildRustPackage: use checkType argumentDaniël de Kok
The `checkType` argument of buildRustPackage was not used anymore since the refactoring of `buildRustPackage` into hooks. This was an oversight that is fixed by this change. The check type can also be passed directly to cargoCheckHook using the `cargoCheckType` environment variable.
2021-02-26Merge branch 'staging-next' into stagingRobert Schütz
2021-02-26Merge master into staging-nextFrederik Rietdijk