about summary refs log tree commit diff
path: root/pkgs/build-support
AgeCommit message (Collapse)AuthorFilesLines
2023-10-25Merge pull request #263201 from LunNova/lunnova/build-fhs-env-no-usr-libAtemu1-1/+1
build-fhsenv-bubblewrap: remove /usr/lib and /usr/lib32 from LD_LIBRARY_PATH
2023-10-24Merge pull request #263096 from hercules-ci/clean-up-data-writersRobert Hensing2-32/+12
Clean up data writers
2023-10-24build-fhsenv-bubblewrap: remove /usr/lib and /usr/lib32 from LD_LIBRARY_PATHLuna Nova1-1/+1
See https://github.com/NixOS/nixpkgs/issues/262775
2023-10-24writers/test: RefactorRobert Hensing1-8/+2
It now also checks the executable bit.
2023-10-24writers.makeDataWriter: DeprecateRobert Hensing1-1/+1
2023-10-24writers/data.nix: Remove duplicate implementationsRobert Hensing2-23/+9
2023-10-24Merge pull request #262388 from ↵Pol Dellaiera4-23/+69
drupol/php/build-support/make-validation-non-blocking build-support/php: make validation check a non blocking process
2023-10-23buildRustPackage: add isMips64n32 to badPlatformsAdam Joseph1-0/+4
Rust is not yet able to target the n32 ABI on mips64. Let's add `isMips64n32` to the `meta.badPlatforms` of all derivations created by buildRustPackage. I use this to automatically detect which packages on my system can be built for n32 (almost all of them) and build those using n32, and the few packages (mainly those that depend on boost or rust) that can't for n64.
2023-10-23buildRustCrate: add isMips64n32 to badPlatformsAdam Joseph1-0/+4
Rust is not yet able to target the n32 ABI on mips64. Let's add `isMips64n32` to the `meta.badPlatforms` of all derivations created by buildRustCrate. I use this to automatically detect which packages on my system can be built for n32 (almost all of them) and build those using n32, and the few packages (mainly those that depend on boost or rust) that can't for n64.
2023-10-23cc-wrapper: fix -mtune= validation, add ARM, add fallbacksAdam Joseph1-5/+65
Before this commit, cc-wrapper/default.nix was using `isGccArchSupported` to validate `-mtune=` values. This has two problems: - On x86, `-mtune=` can take the same values as `-march`, plus two additional values `generic` and `intel` which are not valid for `-march`. - On ARM, `-mtune=` does not take the same values as `-march=`; instead it takes the same values as `-mcpu`. This commit fixes these two problems by adding a new `isGccTuneSupported` function. For `isx86` this returns `true` for the two special values and otherwise defers to `isGccArchSupported`. This commit also adds support for `-mtune=` on Aarch64. Unfortunately on Aarch64, Clang does not accept as wide a variety of `-mtune=` values as Gcc does. In particular, Clang does not tune for big.LITTLE mixed-model chips like the very popular RK3399, which is targeted using `-march=cortex-a72.cortex-a53` in gcc. To address this problem, this commit also adds a function `findBestTuneApproximation` which can be used to map clang-unsupported tunings like `cortex-a72.cortex-a53` to less-precise tunings like `cortex-a53`. The work which led to this commit arose because we now have packages, like `crosvm`, which use *both* `clang` *and* `gcc`. Previously I had been using `overrideAttrs` to set `NIX_CFLAGS_COMPILE` on a package-by-package basis based on which compiler that package used. Since we now have packages which use *both* compilers, this strategy no longer works. I briefly considered splitting `NIX_CFLAGS_COMPILE` into `NIX_CFLAGS_COMPILE_GCC` and `NIX_CFLAGS_COMPILE_CLANG`, but since `NIX_CFLAGS_COMPILE` is sort of a hack to begin with I figured that adding the logic to `cc-wrapper` would be preferable.
2023-10-22Merge pull request #262675 from Artturin/addcommentArtturi1-0/+7
expand-response-params: explain what a "response file" is
2023-10-22expand-response-params: explain what a "response file" isArtturin1-0/+7
Co-authored-by: Adam Joseph <adam@westernsemico.com>
2023-10-22Merge master into staging-nextgithub-actions[bot]6-178/+181
2023-10-21Merge pull request #231483 from hacker1024/feature/flutter-on-dartMaciej Krüger6-178/+181
buildFlutterApplication: Wrap buildDartApplication
2023-10-22dartHooks.dartFixupHook: Add trailing newlinehacker10241-1/+1
2023-10-22buildFlutterApplication: Wrap buildDartApplicationhacker10241-147/+61
2023-10-22buildDartApplication: Recognise extraWrapProgramArgshacker10242-7/+19
2023-10-21Merge master into staging-nextgithub-actions[bot]1-1/+1
2023-10-21 buildDartApplication: Allow passing a `sdkSetupScript`hacker10242-4/+8
2023-10-21buildDartApplication: Use package override mechanism from ↵hacker10241-29/+73
buildFlutterApplication This allows Dart applications to benefit from the package override system, which is useful for things like FFI dependencies.
2023-10-21Merge pull request #262179 from ↵nikstur1-1/+1
ElvishJerricco/systemd-stage-1-specific-fs-packages systemd-stage-1: Use specific fs packages
2023-10-21buildDartApplication: Allow supplying runtime dependencieshacker10243-2/+30
2023-10-21fetchDartDeps: Disable install phase in depsListDrvhacker10241-0/+2
2023-10-21buildDartApplication: Format with nixpkgs-fmthacker10241-10/+9
2023-10-21build-support/php: add `composerStrictValidation` attributePol Dellaiera4-2/+44
Set to `true` by default
2023-10-21Merge master into staging-nextgithub-actions[bot]2-1/+2
2023-10-20build-support/php: add colors in case of errorsPol Dellaiera2-21/+25
2023-10-20fetchdocker: fix missing libArtturin2-1/+2
2023-10-19systemd-stage-1: Use specific fs packagesWill Fancher1-1/+1
2023-10-19Merge master into staging-nextgithub-actions[bot]3-1/+35
2023-10-19Merge pull request #261115 from con-f-use/masterThiago Kenji Okada3-1/+35
writeShellApplication: exclude shell checks
2023-10-19Merge master into staging-nextgithub-actions[bot]1-1/+2
2023-10-19appimageTools.extract: add postExtract option (#261190)Gabriel Volpe1-1/+2
2023-10-18Merge master into staging-nextgithub-actions[bot]2-0/+85
2023-10-18fetchFromBittorrent: initmatthewcroughan2-0/+85
Adds a basic FOD Fetcher for Bittorrent that uses Transmission as a client Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2023-10-18Merge master into staging-nextgithub-actions[bot]4-7/+7
2023-10-17Merge pull request #261582 from NixOS/php/build-support/fix-diff-and-env-varsPol Dellaiera4-7/+7
php/build-support: fix `diff` command and env. variables
2023-10-17Merge remote-tracking branch 'origin/master' into staging-nextAlyssa Ross3-3/+4
Conflicts: pkgs/development/python-modules/flask-wtf/default.nix pkgs/development/python-modules/unstructured-inference/default.nix pkgs/development/python-modules/unstructured/default.nix pkgs/development/python-modules/velbus-aio/default.nix
2023-10-17build-support/php: `phpDrv` in `nativeBuildInputs`Lorenz Leutgeb3-3/+4
Fixes NixOS/nixpkgs#261500
2023-10-17php/build-support: fix usage of environment variablesPol Dellaiera3-5/+4
2023-10-17php/build-support: fix usage of diff conditionPol Dellaiera2-2/+3
Remove double brackets and replace `diff` with `cmp`
2023-10-17Merge master into staging-nextgithub-actions[bot]4-3/+16
2023-10-17Merge pull request #261088 from NixOS/build-support/php/remove-autoloader-prefixElis Hirwing1-1/+0
build-support/php: remove obsolete autoloader-suffix
2023-10-17Merge pull request #261413 from yu-re-ka/composer-vcs-reposElis Hirwing1-2/+2
build-support/php: fix support of vcs repositories
2023-10-16build-support/php: add `doInstallCheck`Pol Dellaiera2-0/+2
2023-10-16build-support/php: add `installCheckPhase`Pol Dellaiera2-0/+12
2023-10-16build-support/php: fix support of vcs repositoriesYureka1-2/+2
2023-10-16Merge master into staging-nextgithub-actions[bot]1-5/+11
2023-10-16Merge pull request #249733 from Aleksanaa/nix-prefetch-gitDomen Kožar1-5/+11
nix-prefetch-git: fix make_deterministic_repo in submodules
2023-10-15writeShellApplication: exclude shell checkscon-f-use3-1/+35