about summary refs log tree commit diff
path: root/pkgs/build-support
AgeCommit message (Collapse)AuthorFilesLines
2024-04-18expand-response-params: add descriptionsternenseemann1-1/+15
Since the tool is exposed more prominently now, we should clear up what it is and note that it is to be considered unstable, i.e. we may change it if the necessity arises. (In practice it is probably going to be fairly stable though, as compiler interfaces tend to be quite stable.) Should we add a version?
2024-04-18wrapCC, wrapBintools: move expand-response-params bootstrapping outsternenseemann2-9/+7
The cc and bintools wrapper contained ad hoc bootstrapping logic for expand-response-params (which was callPackage-ed in a let binding). This lead to the strange situation that the bootstrapping logic related to expand-response-params is split between the wrapper derivations (where it is duplicated) and the actual stdenv bootstrapping. To clean this up, the wrappers simply should take expand-response-params as an ordinary input: They need an adjacent expand-response-params (i.e. one that runs on their host platform), but don't care about the how. Providing this is only problematic during stdenv bootstrapping where we have to pull it from the previous stage at times.
2024-04-18wrapCC, wrapBintools: use runtimeShell instead of stdenv shellsternenseemann2-4/+8
We don't need to artificially make sure that we can execute the wrapper scripts on the build platform by using stdenv's shell (which comes from buildPackages) since our cross infrastructure will get us the wrapper from buildPackages. The upside of this change is that cross-compiled wrappers (e.g. pkgsCross.aarch64-multiplatform.gcc) will actually work when executed! For bootstrapping this is also not a problem, since we have a long build->build platform chain so runtimeShell is just as good as stdenvNoCC.shell. We do fall back to old ways, though, by explicitly using the bootstrap-tools shell in stage2, so the adjacent bash is only used from stage4 onwards. This is unnecessary in principle (I'll try removing this hack in the future), but ensures this change causes zero rebuilds.
2024-04-18Merge pull request #304033 from sternenseemann/wrapper-cleanupsJohn Ericson2-24/+21
wrapCC, wrapBintools, stdenv: make Nix code a bit more consistent
2024-04-17fixup-yarn-lock: split out from prefetch-yarn-deps, cleanup installingSandro Jäckel1-12/+32
To reduce dependencies (mainly nix-prefetch-git and through that git, git-lfs) when we just need to fixup a lock file, eg when building electron. This also tries to avoid needless rebuilds when eg. golang is updated. Also this cleans up and combined the build/installPhase of both tools to be a lot simpler.
2024-04-15wrapCC, wrapBintools: remove unnecessary indexing into platform setssternenseemann2-16/+16
`targetPlatform` and `hostPlatform` are already in scope, so it is unnecessary to index into `stdenvNoCC`.
2024-04-15wrapCC, wrapBintools: don't alias stdenvNoCC to stdenvsternenseemann2-24/+21
In delicate code like this, it seems unwise to pass something of as something it isn't for convenience's (?) sake. It causes a slight possibility for confusion with `buildPackages.stdenv`. However, it should be possible to eliminate the need for this in a separate change.
2024-04-15wrapCC: check darwin-ness for -mcpu/-march based on targetPlatformsternenseemann1-2/+2
`stdenv.is*` defaults to `hostPlatform` which is technically incorrect here, since what we are gating concerns the target platform only. This would be a problem in practice if cross compiling from x86_64-darwin to aarch64-darwin whilst using gcc which is probably rare enough.
2024-04-14Merge pull request #301928 from nevivurn/feat/gomod-workvendorSandro1-0/+1
buildGoModule: vendorHash fixes for proxyVendor and Go 1.22
2024-04-14Merge pull request #302351 from phijor/agda-separate-bin-outputNaïm Favier1-3/+4
haskellPackages.Agda: Split outputs to reduce closure size
2024-04-14buildGoModule: inherit env from main package to goModule derivationYongun Seong1-0/+1
2024-04-12NixOS Integration tests: Re-enable for macOSJacek Galowicz1-5/+1
2024-04-10tests.importCargoLock: fix self-inclusive src listings in .nix filesOlivia Crain8-23/+95
Replace `src = ./.` instances with more explicit source listings. Otherwise, derivations will be rebuilt on any change to the files defining them (e.g. formatting via nixfmt-rfc-style).
2024-04-10Merge pull request #264147 from lheckemann/foreign-distrosLinus Heckemann1-13/+11
vmTools: misc debian tool improvements
2024-04-09Merge pull request #302172 from tpwrules/bubblewrap-no-32Atemu2-8/+7
build-fhsenv-bubblewrap: reference 32-bit binaries only if multiArch
2024-04-08llvmPackages_9: remove due to ageTristan Ross1-5/+0
2024-04-08Merge pull request #292760 from PigeonF/dockertools-build-layered-compressorRobert Hensing2-3/+19
dockerTools: Fix changing compression method for `buildLayeredImage`
2024-04-07build-fhsenv-bubblewrap: reference 32-bit binaries only if multiArchThomas Watson2-8/+7
Fixes issues using bubblewrap'd fhsenvs in scenarios where i686 is not supported (such as Rosetta 2 emulation in a Linux VM on Apple Silicon).
2024-04-07haskellPackages.Agda: Split outputs to reduce closure sizePhilipp Joram1-3/+4
After enabling a separate binary output for the `Agda` Haskell package, the new `bin` output measures ~100MiB, compared to the ~4.5GiB before. Using it in `agdaWithPackages` reduces the closure size of an Agda installation from ~5GiB to ~3GiB. The remaining space is taken up mostly by the GHC backend. With this change, derivations depending on `haskellPackages.Agda` directly need to pick the right (binary) output. This concerns in particular `emacsPackages.agda2-mode`.
2024-04-05Merge pull request #295812 from UlyssesZh/fix-nuget-to-nix-trailing-slashWeijia Wang1-1/+5
nuget-to-nix: fix the bug of wrong url in the generated nix file when base url does not have trailing slash
2024-04-04pkg-config: set prefixed mainProgram for cross compilationNick Cao1-2/+4
`lib.getExe pkgsCross.riscv64.buildPackages.pkg-config` should return `<prefix>/bin/riscv64-unknown-linux-gnu-pkg-config` not `<prefix>/bin/pkg-config`
2024-04-04Merge pull request #291569 from Luflosi/fix-substituteAll-typoAleksana1-1/+1
substituteAll: fix typo in comment
2024-04-04Merge pull request #299618 from TomaSajt/dub-supportAtemu6-0/+199
Add buildDubPackage and dub-to-nix for building dub based packages
2024-04-03buildDubPackage, dub-to-nix: initTomaSajt6-0/+199
2024-04-02Revert "swift: don't pass -march to swiftc"Sam1-6/+2
This reverts commit 8a7841ceef0a7c7794174178de786ae76cc27457.
2024-04-02Merge pull request #301011 from philiptaron/remove-auditBlasHooka-n-n-a-l-e-e1-37/+0
auditBlasHook: remove
2024-04-02auditBlasHook: removePhilip Taron1-37/+0
This was added in https://github.com/NixOS/nixpkgs/commit/d83e9c95738df2e9f912c239201f50e53e40810b, but included substitution variables `@blas@` and `@lapack@` that were never substituted. It's not used anywhere in `nixpkgs`.
2024-04-02buildDotnetModule: fix handling `executables` with an empty listéclairevoyant1-1/+2
2024-04-01Merge master into staging-nextgithub-actions[bot]1-0/+5
2024-04-01Merge pull request #295594 from ShamrockLee/checkpoint-build-dontfixupConnor Baker1-0/+5
checkpointBuildTools.prepareCheckpointBuild: stop at `installPhase`
2024-03-31Merge master into staging-nextgithub-actions[bot]2-7/+9
2024-03-31Merge branch 'master' into haskell-updatesNaïm Favier2-22/+24
2024-03-30Merge master into staging-nextgithub-actions[bot]2-22/+24
2024-03-30Merge pull request #297351 from adisbladis/build-support/lib-staticadisbladis2-22/+24
build-support/lib: Statically compute cmake/meson flags
2024-03-29Merge master into haskell-updatesgithub-actions[bot]2-10/+23
2024-03-28Merge master into staging-nextgithub-actions[bot]2-10/+23
2024-03-28Merge pull request #299169 from ShamrockLee/go-module-vendorsha256Weijia Wang1-6/+10
buildGoModule: Deprecate vendorSha256 with throw
2024-03-28buildGoModule: warn if `-trimpath` or `-mod=` is usedPaul Meyer2-4/+13
in GOFLAGS
2024-03-28Merge master into haskell-updatesgithub-actions[bot]2-4/+4
2024-03-27Merge master into staging-nextgithub-actions[bot]1-2/+2
2024-03-27Merge pull request #297496 from abryko/docker-tag-discard-closureRyan Lahfa1-2/+2
dockerTools: discard closure reference in imageTag
2024-03-27Merge master into staging-nextgithub-actions[bot]1-2/+2
2024-03-27Merge pull request #288212 from r-ryantm/auto-update/makeInitrdNGToolWill Fancher1-2/+2
makeInitrdNGTool: 0.1.0 -> 0.1.0
2024-03-27buildGoModule: Deprecate vendorSha256 with throwYueh-Shun Li1-6/+10
Ignore vendorSha256 when vendorHash is specified. Throw when vendorHash isn't specified: - "buildGoModule: Expect vendorHash instead of vendorSha256" when vendorSha256 is specified. - "buildGoModule: vendorHash is missing" otherwise. `goModules.outputHashAlgo` is specified as null when vendorHash is not empty, "sha256" otherwise. Co-authored-by: zowoq <59103226+zowoq@users.noreply.github.com>
2024-03-26Merge master into haskell-updatesgithub-actions[bot]1-1/+9
2024-03-25Merge remote-tracking branch 'upstream/master' into staging-nextannalee1-1/+9
2024-03-25Merge pull request #286360 from hellwolf/fix-fhsenv-bubblewrap-etc-pathsa-n-n-a-l-e-e1-1/+9
build-fhsenv-bubblewrap: fix fhsenv etc entries
2024-03-24Merge master into haskell-updatesgithub-actions[bot]1-1/+1
2024-03-24Merge staging-next into staginggithub-actions[bot]1-1/+1
2024-03-23Merge pull request #298239 from cdepillabout/layered-img-passthruPol Dellaiera1-1/+1
dockerTools: add streamed image as passthru to buildLayeredImage