about summary refs log tree commit diff
path: root/pkgs/build-support
AgeCommit message (Collapse)AuthorFilesLines
9 daysMerge master into staging-nextgithub-actions[bot]1-3/+2
10 daysmkCoqDerivation: fix install path of ML plug-in built w/ duneVincent Laporte1-3/+2
11 daysMerge staging-next into staginggithub-actions[bot]1-3/+10
11 daysMerge pull request #320851 from tie/dotnet-crossDavid McFarland1-3/+10
buildDotnetModule: convert makeWrapperArgs to an array
12 daysMerge remote-tracking branch 'origin/staging-next' into stagingMartin Weinelt1-2/+2
Conflicts: - pkgs/os-specific/windows/mingw-w64/default.nix
12 daysRevert "rust: Write config.toml not config"Winter3-8/+8
13 daysMerge pull request #258058 from doronbehar/pkg/transmission_4Doron Behar1-2/+2
transmission: sent a warning and alias it to transmission_3
13 daystreewide: replace freeglut with libglutEmily1-1/+1
Allow the macOS GLUT framework to be used automatically in many cases. Packages that specifically search for freeglut or require its additional APIs should still explicitly depend on it. Deliberately skip the Haskell package set, which is mostly automatically generated, and mupdf, which has its own fork of freeglut.
14 daysMerge pull request #321095 from mmlb/rust-write-config.toml-not-configPol Dellaiera3-8/+8
rust: Write config.toml not config
14 daysMerge staging-next into staginggithub-actions[bot]2-1/+13
14 daysdefaultCrateOverrides: add missing protobuf to cratesIlan Joselevich1-0/+12
14 daysmaintainers: drop lheckemannLinus Heckemann1-1/+1
14 daysMerge staging-next into staginggithub-actions[bot]6-20/+83
14 daysMerge pull request #321220 from thehabbos007/cargo-colonIlan Joselevich2-10/+61
buildRustCrate: support new cargo invocation syntax for build script outputs
2024-06-21transmission_3: rename from transmissionDoron Behar1-2/+2
2024-06-21build-support/ocaml: deprecate minimumOCamlVersion (#319907)superherointj1-2/+1
* ocamlPackages.wtf8: use minimalOCamlVersion * ocamlPackages.ppx_yojson_conv: minimalOCamlVersion * ocamlPackages.postgresql: use minimalOCamlVersion * ocamlPackages.opti: use minimalOCamlVersion * ocamlPackages.opam-repository: use minimalOCamlVersion * ocamlPackages.opam-format: use minimalOCamlVersion * ocamlPackages.lwt-dllist: use minimalOCamlVersion * ocamlPackages.lacaml: use minimalOCamlVersion * ocamlPackages.gnuplot: use minimalOCamlVersion * ocamlPackages.fix: use minimalOCamlVersion * ocamlPackages.eigen: use minimalOCamlVersion * ocamlPackages.earley: use minimalOCamlVersion * ocamlPackages.directories: use minimalOCamlVersion * ocamlPackages.cpuid: use minimalOCamlVersion * build-support/ocaml: deprecate minimumOCamlVersion * build-support/ocaml: deprecate minimumOCamlVersion --------- Co-authored-by: Vincent Laporte <Vincent.Laporte@gmail.com>
2024-06-21buildRustCrate: support `cargo::` invocation syntax for build script outputsAhmad Sattar2-10/+61
In order to allow for the new `cargo::` prefix for build script outputs we have to adjust the configure-crate bash scripts in buildRustCrate to properly parse the new additional syntax. These changes don't affect existing build scripts configured with the old `cargo:` prefix. For more information, see https://doc.rust-lang.org/cargo/reference/build-scripts.html#outputs-of-the-build-script
2024-06-21Revert #320852: Clean up cross bootstrappingVladimír Čunát1-4/+4
It rebuilt stdenv on *-darwin; we can't do that in nixpkgs master. This reverts commit 2f20501c5f188ab0c4c430519ce77bc6b988202b, reversing changes made to fd469c24af2e16aad2c2b4fc90fc8c74af36e773.
2024-06-20buildFHSEnv: export GST_PLUGIN_SYSTEM_PATH_1_0Martino Fontana1-0/+4
GStreamer searches for plugins relative to its binary's location. However, since https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/bd97973ce0f2c5495bcda5cccd4f7ef7dcb7febc, it uses its *real* binary location, breaking the FHS. Fixes #311004 (tested on Heroic and Lutris too).
2024-06-20Merge pull request #320852 from obsidiansystems/fewer-cross-suffix-attrsJohn Ericson1-4/+4
Clean up cross bootstrapping
2024-06-20Merge pull request #317755 from thehabbos007/masterIlan Joselevich1-0/+2
BuildRustCrate: proc macros must be built for build's platform
2024-06-20Merge pull request #292759 from ShamrockLee/test-references-darwinRobert Hensing1-8/+15
tests.references: use `runNixOSTest` instead of `nixosTest`
2024-06-20BuildRustCrate: proc macros must be built for build's platformAhmad Sattar1-0/+2
When cross compiling proc macros, the proc macro needs to be built for the build platform's architecture. Without this change cross compiling from Darwin to Linux would simply fail because it tries to link to a library with a file extension that doesn't exist on the builder's platform.
2024-06-19rust: Write to .cargo/config.toml instead of .cargo/configManuel Mendez3-8/+8
Seeing the following new warnings pop up on stderr when cargo was bumped to 1.78: ``` warning: `/build/.cargo/config` is deprecated in favor of `config.toml` note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml` ``` which happens to break commitmsgfmt builds in nix (#320294). closes #320294
2024-06-19Merge pull request #318256 from risicle/ris-stack-clash-protectionRick van Schijndel1-1/+5
cc-wrapper: add stack clash protection hardening flag
2024-06-19buildDotnetModule: convert makeWrapperArgs to an arrayIvan Trubach1-3/+10
2024-06-18Clean up cross bootstrappingJohn Ericson1-4/+4
For a long time, we've had `crossLibcStdenv`, `*Cross` libc attributes, and `*bsdCross` pre-libc package sets. This was always bad because having "cross" things is "not declarative": the naming doesn't reflect what packages *need* but rather how we *provide* something. This is ugly, and creates needless friction between cross and native building. Now, almost all of these `*Cross` attributes are gone: just these are kept: - Glibc's and Musl's are kept, because those packages are widely used and I didn't want to risk changing the native builds of those at this time. - generic `libcCross`, `theadsCross`, and friends, because these relate to the convolulted GCC bootstrap which still needs to be redone. The BSD and obscure Linux or freestnanding libcs have conversely all been made to use a new `stdenvNoLibc`, which is like the old `crossLibcStdenv` except: 1. It usable for native and cross alike 2. It named according to what it *is* ("a standard environment without libc but with a C compiler"), rather than some non-compositional jargon ("the stdenv used for building libc when cross compiling", yuck). I should have done this change long ago, but I was stymied because of "infinite recursions". The problem was that in too many cases we are overriding `stdenv` to *remove* things we don't need, and this risks cyles since those more minimal stdenvs are used to build things in the more maximal stdenvs. The solution is to pass `stage.nix` `stdenvNoCC`, so we can override to *build up* rather than *tear down*. For now, the full `stdenv` is also passed, so I don't need to change the native bootstraps, but I can see this changing as we make things more uniform and clean those up. Finally, the BSDs also had to be cleaned up, since they have a few pre-libc dependencies, demanding a systematic approach. I realized what rhelmot did in 61202561d92cf1cd74532fcbd8b9d6662c5bc57b (specify what packages just need `stdenvNoLibc`) is definitely the right approach for this, and adjusted NetBSD and OpenBSD to likewise use it.
2024-06-18Merge remote-tracking branch 'origin/staging-next' into stagingMartin Weinelt9-172/+301
Conflicts: - pkgs/development/python-modules/langsmith/default.nix - pkgs/development/python-modules/rich-pixels/default.nix - pkgs/servers/teleport/generic.nix
2024-06-17Merge pull request #313005 from tie/dotnet-crossDavid McFarland8-171/+300
buildDotnetModule: fix structured attributes support
2024-06-16Merge pull request #319782 from thehabbos007/quoteIlan Joselevich1-1/+1
build-rust-crate: quote build script output env var
2024-06-16Merge staging-next into staginggithub-actions[bot]2-10/+24
2024-06-15Merge pull request #212328 from ExpidusOS/flutter-engine/inittomberek1-7/+19
flutter.engine: init
2024-06-15Merge pull request #319623 from Infinidoge/fix-fetch-yarn-depsAtemu1-3/+5
fetchYarnDeps: properly accept src argument
2024-06-15clang: don't set machine flags for overridden targetAlyssa Ross2-48/+31
We already did this for -march in 12b0e8ac74f8 ("clang: don't set -march for overridden target"), but it should have been done for all machine flags, for the same reason. Example bug this fixes: nix-shell -E ' with import ./. { crossSystem = { system = "powerpc64le-linux"; gcc.cpu = "power10"; }; }; clangStdenv.mkDerivation { name = "test"; } ' --run '$CC -target wasm32-unknown-unknown -c /dev/null' Which previously failed with: clang: error: unsupported option '-mcpu=' for target 'wasm32-unknown-unknown'
2024-06-15Merge staging-next into staginggithub-actions[bot]1-0/+14
2024-06-14buildFlutterApplication: use the engineTristan Ross1-7/+19
2024-06-14fetch-yarn-deps: reference files to be copied directlyAtemu1-2/+4
This would cause any drv to be rebuilt when any part of the default.nix changes. What we actually care about is the two JS files though, so simply reference them directly. Co-authored-by: Infinidoge <infinidoge@inx.moe>
2024-06-14fetchYarnDeps: properly accept src argumentInfinidoge1-1/+1
2024-06-14build-rust-crate: quote build script output env varAhmad Sattar1-1/+1
2024-06-13rustPlatform.maturinBuildHook: specify the output directory (#291025)Dmitry Kalinkin1-4/+4
2024-06-13flutterPackages: support beta releasesTristan Ross1-0/+14
2024-06-13Merge staging-next into staginggithub-actions[bot]1-2/+5
2024-06-13Merge pull request #315991 from ExpidusOS/fix/flutter-moreutilsPeder Bergebakken Sundt1-2/+5
flutter: drop moreutils for more bash
2024-06-11Merge staging-next into staginggithub-actions[bot]4-4/+4
2024-06-11Merge master into staging-nextgithub-actions[bot]4-4/+4
2024-06-11buildRustCrate: extensions.sharedLibrary -> extensions.libraryIlan Joselevich4-4/+4
Switched to a common attribute for library file extensions: https://github.com/NixOS/nixpkgs/commit/de70971c90f3e3161e94ace851b30474228a0861 This makes buildRustCrate evaluate successfully when using pkgsCross/pkgsStatic.
2024-06-10Merge staging-next into staginggithub-actions[bot]5-5/+5
2024-06-09Merge remote-tracking branch 'origin/master' into staging-nextAlyssa Ross5-5/+5
Conflicts: pkgs/applications/blockchains/polkadot/default.nix
2024-06-09treewide: Remove indefinite article from meta.descriptionAlexis Hildebrandt4-4/+4
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09treewide: Remove ending period from meta.descriptionAlexis Hildebrandt1-1/+1
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*".*\.";' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*)\.";/\1";/'