about summary refs log tree commit diff
path: root/pkgs/build-support
AgeCommit message (Collapse)AuthorFilesLines
2022-06-22Merge pull request #177326 from a-m-joseph/pr/fetchgit/allowedRequisitesRobert Hensing1-1/+3
fetchgit: inherit allowedRequisites in mkDerivation
2022-06-22Merge pull request #175474 from hercules-ci/issue-148456-dockerTools-example-etcRobert Hensing1-0/+41
dockerTools: Add example of using NixOS' etc
2022-06-21Merge pull request #178446 from zimbatm/dotnet-nugetdepsIvv1-1/+3
buildDotnetModule: allow passing derivations to nugetDeps
2022-06-21buildDotnetModule: allow passing derivations to nugetDepszimbatm1-1/+3
Sometimes I want to pass a different implementation of `mkNugetDeps`. For example in private repos, it can be handy to use `__noChroot = true` and bypass the deps.nix generation altogether. Or some Nuget packages ship with ELF binaries that need to be patched, and that's best done as soon as possible.
2022-06-21buildDotnetModule: use src-only in fetch-deps scriptmdarocha1-2/+2
2022-06-21src-only: pass all argumentsmdarocha1-20/+8
This allows executing postPatch and other hooks correctly
2022-06-21make-nuget-deps: support an url field in fetchNuGetmdarocha1-5/+6
If a package source defines an url field, use it instead of the url based on package name and version, which assumes nuget.org as a package source.
2022-06-21nuget-to-nix: support custom package sourcesmdarocha2-1/+14
If the package was not restored from nuget.org (determinted by checking the "source" field of ".nupkg.metadata"), query the custom source for the package endpoint (the way nuget api is built we can't determine it without an API query) and build a custom package URL to save in the generated deps file.
2022-06-20Merge pull request #177308 from risicle/ris-native-source-provenance-appimageRobert Scott1-1/+11
appimageTools.wrapAppImage: default produced derivations to `sourceProvenance` `binaryNativeCode`
2022-06-19Merge master into staging-nextgithub-actions[bot]1-1/+1
2022-06-18mkCoqDerivation: do not set DESTDIRVincent Laporte1-1/+1
Fixes #178109
2022-06-16Merge master into staging-nextgithub-actions[bot]1-5/+5
2022-06-16Merge pull request #176095 from SuperSandro2000/prefer-remote-fetchSandro1-5/+5
prefer-remote-fetch: don't overwrite fetcher's which set preferLocalB…
2022-06-16Merge master into staging-nextgithub-actions[bot]1-2/+6
2022-06-15fetchYarnDeps: support hash in pkg.integrity (#177255)Chuang Zhu1-2/+6
2022-06-15Merge remote-tracking branch 'origin/master' into staging-nextMartin Weinelt4-2/+3512
2022-06-15Merge pull request #177360 from ilya-fedin/fix-replace-dependencyAlexander Bantyev1-1/+1
replace-dependency: fix a syntax error while generating references.nix
2022-06-14tests.buildRustCrate: add rcgen testBen Wolsieffer2-0/+3510
rcgen depends on ring, and therefore exercises support for static libraries
2022-06-14buildRustCrate: pass link flags when building librariesBen Wolsieffer1-1/+1
With Rust 1.61, it is necessary to link to external static/dynamic libaries when building the rlib that uses them, rather than when linking the final binary. In fact, it is no longer necessary to specify the libraries to link when building the final binary, but the library search path flags must still be included.
2022-06-13Merge master into staging-nextgithub-actions[bot]1-1/+0
2022-06-13update-luarocks-package: fix mirrorsMatthieu Coudron1-1/+0
2022-06-12replace-dependency: fix a syntax error while generating references.nixIlya Fedin1-1/+1
2022-06-11fetchgit: allow passing allowedRequisites through to stdenv.mkDerivationAdam Joseph1-1/+3
When maintainers override stages of `fetchgit' (e.g. `postPatch`) it is very easy for them to accidentally leak the outpath-hash of their current `stdenv` into `fetchgit''s output, and therefore into the value they paste into `sha256`. This is a problem, because the resulting expression will break whenever any change is made to `stdenv` or when anybody attempts to build the expression on a different platform than the one used by the original maintainer. Almost as much of a problem is the fact that CI **does not catch** these problems. The `fetchgit` is run only once, then its output goes into cachix, and all future builds (hydra, CI, ofborg) pull from cachix. Let's offer maintainers the option to check that they aren't making this mistake, by passing through `allowedRequisites`. The default value is `null`, but it might be worth changing that at some point in the future. It is also sometimes difficult to communicate to package maintainers why their expression is problematic. Having `allowedRequisites` passed through makes it easier to do this: "look, when I switch on `allowedRequisites` your package breaks; are you sure you meant to hardcode the hash today's `x86_64-linux.stdenv` into your expression?` For an example use case, see https://github.com/NixOS/nixpkgs/pull/171223 The issue above is part of a larger problem with nixpkgs infra: there large parts of cachix cannot be reproduced easily if they are lost. Once something ends goes into cachix, we never ever again reverify the procedure by which it was placed into cachix.
2022-06-11appimageTools.wrapAppImage: default produced derivations to sourceProvenance ↵Robert Scott1-1/+11
binaryNativeCode
2022-06-08Merge pull request #174709 from FliegendeWurst/fortran-format-securityAnderson Torres1-0/+2
cc-wrapper: Fortran: disable format hardening
2022-06-07treewide: remove usage of runCommandNoCC aliasesSandro Jäckel1-1/+0
2022-06-03Merge pull request #168713 from NixOS/appimage-drop-gconfRick van Schijndel1-1/+0
appimageTools.defaultFhsEnvArgs: Drop GConf
2022-06-03prefer-remote-fetch: don't overwrite fetcher's which set preferLocalBuild ↵Sandro Jäckel1-5/+5
explicitly
2022-06-02Merge pull request #175317 from ncfavier/makeBinaryWrapper-crossRick van Schijndel1-2/+3
makeBinaryWrapper: fix cross-compilation and add test
2022-05-31Merge master into staging-nextgithub-actions[bot]2-3/+4
2022-05-31makeBinaryWrapper: fix cross-compilation and add testNaïm Favier1-2/+3
Fixes https://github.com/NixOS/nixpkgs/issues/175045
2022-05-30dockerTools.examples.etc: Make it a reliable testRobert Hensing1-2/+2
/etc/hosts is generally also provided by the container runtime.
2022-05-30dockerTools: Add example of using NixOS' etcRobert Hensing1-0/+41
(cherry picked from commit 9b2af8673be82d48ce76c8c152de85ad921d26ba)
2022-05-28fetchCargoTarball: allow adding nativeBuildInputsArtturin1-2/+3
2022-05-28buildRustPackage: add missing attr to removeArtturin1-1/+1
cargoUpdateHook is used in cargoDeps
2022-05-27Merge staging-next into staginggithub-actions[bot]1-4/+4
2022-05-27Merge pull request #172391 from Artturin/deprecate-stdenv-glibcArtturi1-4/+4
2022-05-27treewide: change some glibc to stdenv.cc.libcArtturin1-4/+4
2022-05-26Merge staging-next into staginggithub-actions[bot]1-1/+1
2022-05-26cc-wrapper: Fortran: disable format hardeningFliegendeWurst1-0/+2
Otherwise, these warnings are emitted: command-line option '-Wformat=1' is valid for C/C++/ObjC/ObjC++ but not for Fortran command-line option '-Wformat-security' is valid for C/C++/ObjC/ObjC++ but not for Fortran '-Werror=' argument '-Werror=format-security' is not valid for Fortran Fixes part of #27218
2022-05-26Merge pull request #174689 from alyssais/compress-firmware-emptyadisbladis1-1/+1
compressFirmwareXz: fix with empty lib/firmware
2022-05-26compressFirmwareXz: fix with empty lib/firmwareAlyssa Ross1-1/+1
Fixes: 8aa8e0ce7f1 ("nixos/udev: compress all firmware if supported")
2022-05-26Merge staging-next into staginggithub-actions[bot]4-5/+24
2022-05-26Merge pull request #173304 from IvarWithoutBones/bump/dotnetmoduleSandro1-2/+2
2022-05-25Merge pull request #174291 from jtojnar/unstable-updater-urlSandro3-3/+22
2022-05-25Merge pull request #172962 from Artturin/defaultparallelnorebuildBen Siraphob6-0/+8
2022-05-25Merge staging-next into staginggithub-actions[bot]2-14/+28
2022-05-25coqPackages: etcCyril Cohen1-13/+27
- put `findlib` in `buildInputs` of `mkCoqDerivation` to make sure `coq` packages find their ocaml plugin dependencies, - use `propagatedBuildInputs` to make sure ocaml plugin dependencies are in path, - updated `coqPackage.heq` (broken url), - fixed use of `DESTDIR` and `COQMF_COQLIB` in mkCoqDerivation, - adding `COQCORELIB` environement variable to put ocaml plugin files in the right place, - make `metaFetch` available from `coqPackages`
2022-05-25Merge pull request #171043 from prusnak/curlWithGnuTlsPavol Rusnak1-1/+1
treewide: refactor curlWithGnuTls into all-packages.nix
2022-05-25treewide: add enableParallelBuilding's to bootstrap packages so hashes stay ↵Artturin6-0/+8
the same when enableParallelBuildingByDefault is enabled verified with `nix-diff $(nix eval ".#gcc-unwrapped.drvPath") $(nix eval --expr 'with import ./. { config = { enableParallelBuildingByDefault = true; }; }; gcc-unwrapped.drvPath' --impure)`