about summary refs log tree commit diff
path: root/pkgs/build-support
AgeCommit message (Collapse)AuthorFilesLines
2024-04-27treewide: wrapGAppsHook → wrapGAppsHook3Jan Tojnar2-9/+9
This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
2024-04-27wrapGAppsHook: Flip inheritance relationship with wrapGAppsNoGuiHookJan Tojnar1-1/+1
2024-04-25Merge master into staging-nextgithub-actions[bot]3-25/+20
2024-04-24Merge pull request #271071 from pbsds/wrapAppImage-pname-reduxAtemu3-25/+20
appimageTools.wrapAppImage: remove version from `pname`
2024-04-24appimage: avoid setting `name`Peder Bergebakken Sundt1-8/+3
2024-04-24appimageTools.wrapAppImage: passthru pname and versionPeder Bergebakken Sundt1-1/+1
2024-04-24buildFHSEnvBubblewrap/buildFHSEnv: permit pname+version instead of namePeder Bergebakken Sundt2-4/+7
2024-04-24buildFHSEnvBubblewrap: do not infer `pname` from `name`Peder Bergebakken Sundt1-12/+9
2024-04-23Merge master into staging-nextgithub-actions[bot]1-2/+8
2024-04-22Merge pull request #300538 from ShamrockLee/write-shell-application-extraPeder Bergebakken Sundt1-2/+8
writeShellApplication: add argument extraShellCheckFlags
2024-04-22Merge staging-next into staginggithub-actions[bot]7-210/+363
2024-04-22prefetch-npm-deps: switch to data-encodingLily Foster4-17/+16
2024-04-22prefetch-npm-deps: remove runtime dependency on nixLily Foster7-201/+355
2024-04-22fetchgit: Support fetching signed tags over dumb http transportScott Worley2-1/+8
2024-04-21Merge staging-next into staginggithub-actions[bot]1-0/+1
2024-04-21fetchurl: add codemirror.dlang.org to the list of dub mirrorsbinarycat1-0/+1
code.dlang.org actually went down recently, hopefully this should make that a bit less likely to happen in the future.
2024-04-19Merge staging-next into staginggithub-actions[bot]3-14/+30
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-18Merge staging-next into staginggithub-actions[bot]2-24/+21
2024-04-18Merge staging-next into staginggithub-actions[bot]1-12/+32
2024-04-16Merge pull request #302926 from ↵lassulus1-1/+8
helsinki-systems/fix/buildrustpackage-structuredattrs cargoBuildHook: Fix features with __structuredAttrs
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-10cargoBuildHook: Fix features with __structuredAttrsJanne Heß1-1/+8
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