about summary refs log tree commit diff
path: root/pkgs/build-support
AgeCommit message (Collapse)AuthorFilesLines
2022-05-18Merge pull request #172946 from Artturin/tester1Artturi1-3/+12
2022-05-18Merge pull request #165388 from r-ryantm/auto-update/garbleLassulus1-3/+3
garble: 0.5.1 -> 0.6.0
2022-05-16testers.testVersion: if grep failed then print the output of the commandArtturin1-3/+12
2022-05-16Merge pull request #173206 from SuperSandro2000/writeCBinJörg Thalheim1-4/+4
writeCBin: fix formatting
2022-05-16writeCBin: fix formattingSandro1-4/+4
2022-05-15Merge pull request #173059 from Julow/linkfarm-27c6f434c1-1/+1
Fix string context lost in `linkFarm`
2022-05-15Escape pathsJules Aguillon1-1/+1
Co-authored-by: pennae <82953136+pennae@users.noreply.github.com>
2022-05-14Merge pull request #169121 from ashkitten/xivlauncherIvv3-8/+8
xivlauncher: init at 1.0.0.4
2022-05-14Fix string context lost in `linkFarm`Jules Aguillon1-1/+1
```nix let pkgs = import ./. {}; in pkgs.linkFarm "test" [ { name = "foo"; path = ./README.md; } ] ``` The nix code above generates this result: (`nix build -f test.nix`) ``` lrwxrwxrwx 1 root root 31 Jan 1 1970 /nix/store/98mdz626n99w0467q4r203q154bnnli9-test/foo -> /home/juloo/w/nixpkgs/README.md ``` With this patch, the target file is naturally copied into the store: ``` lrwxrwxrwx 1 root root 53 Jan 1 1970 /nix/store/ndvffnardifqwzbp07g15llav55r5k1m-test/foo -> /nix/store/9rqwjskbbgbflrpyhzi6rak2j7jspr5f-README.md ```
2022-05-14Merge pull request #172820 from alyssais/compressed-firmwareadisbladis2-2/+22
Compressed firmware
2022-05-13nixos/udev: compress all firmware if supportedAlyssa Ross2-2/+22
This should be a significant disk space saving for most NixOS installations. This method is a bit more complicated than doing it in the postInstall for the firmware derivations, but this way it's automatic, so each firmware package doesn't have to separately implement its compression. Currently, only xz compression is supported, but it's likely that future versions of Linux will additionally support zstd, so I've written the code in such a way that it would be very easy to implement zstd compression for those kernels when they arrive, falling back to xz for older (current) kernels. I chose the highest possible level of compression (xz -9) because even at this level, decompression time is negligible. Here's how long it took to decompress every firmware file my laptop uses: i915/kbl_dmc_ver1_04.bin 2ms regulatory.db 4ms regulatory.db.p7s 3ms iwlwifi-7265D-29.ucode 62ms 9d71-GOOGLE-EVEMAX-0-tplg.bin 22ms intel/dsp_fw_kbl.bin 65ms dsp_lib_dsm_core_spt_release.bin 6ms intel/ibt-hw-37.8.10-fw-22.50.19.14.f.bseq 7ms And since booting NixOS is a parallel process, it's unlikely (but difficult to measure) that the time to user interaction was held up at all by most of these. Fixes (partially?) #148197
2022-05-13Revert "coqPackages: etc"Vincent Laporte1-26/+13
This reverts commit 7e589a45ef86abf9a6a737d9730925b81ee663b4.
2022-05-13buildRustPackage: make cargoDeps logic easier to followsternenseemann1-4/+3
The old logic flow had the structure if ( … ) { if ( … ) { … } else { … } } else { … } which is quite hard to follow in Nix. Instead we ensure that no if expression is inside a then branch. This change is zero rebuild, as no logic was changed.
2022-05-12coqPackages: etcCyril Cohen1-13/+26
- use propagatedBuildInputs to make sure ocaml plugin stuff is 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-10buildDotnetModule: fix argsash lea3-8/+8
2022-05-09skawarePackages.buildPackage: fix typo in commentAlyssa Ross1-1/+1
2022-05-09testers.nixosTest: Remove redundant system.stateVersion = lib.trivial.release;Robert Hensing1-1/+0
Already present in nixos/modules/testing/test-instrumentation.nix, which is imported by the test framework.
2022-05-09Merge remote-tracking branch 'upstream/master' into testersRobert Hensing5-16/+23
2022-05-09tests.testers.nixosTest-example: move from tests.nixos-functions.nixosTest-testRobert Hensing2-0/+35
And improve the test a bit, to assert correct wiring of `pkgs`.
2022-05-09treewide: nixosTest -> testers.nixosTestRobert Hensing1-2/+2
2022-05-06makeBinaryWrapper: really unset NIX_CFLAGSNaïm Favier1-2/+1
https://github.com/NixOS/nixpkgs/commit/f8cc8ff5755528d9a73671481ba3d6fb00f4e8d5 fails to unset the variables in the environment due to a Bash quirk, so set them to the empty string instead.
2022-05-06makeBinaryWrapper: add -Wno-overlength-stringsNaïm Favier1-0/+1
The generated C code contains large string literals that are longer than the maximum length specified by the standard. However, GCC has no trouble dealing with those strings, so we can just add -Wno-overlength-strings. https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Woverlength-strings
2022-05-06Merge master into staging-nextgithub-actions[bot]1-0/+3
2022-05-05buildRustCrate: set meta.mainProgram to crateNameilkecan1-0/+3
2022-05-05testers.nixosTest: Move from top-level and improve docsRobert Hensing1-1/+28
2022-05-05testers.invalidateFetcherByDrvHash: Move from top-levelRobert Hensing6-15/+33
2022-05-03Merge staging-next into staginggithub-actions[bot]3-10/+25
2022-05-03Merge pull request #171134 from helsinki-systems/feat/make-initrd-ng-stripJanne Heß3-10/+25
makeInitrdNG: Strip more and remove output
2022-05-02Merge branch 'staging-next-2022-04-23'Vladimír Čunát4-12/+6
Close #169965: the PR and real 'staging-next' branch contained extra systemd rebuild that I wanted to avoid in this iteration. (to save Hydra's work)
2022-05-01Merge staging-next into staginggithub-actions[bot]3-5/+9
2022-05-01Merge master into staging-nextgithub-actions[bot]3-5/+9
2022-05-01Fix determinism by defaulting codegenUnits to 1, not NIX_BUILD_CORESDavid Scherer3-3/+3
2022-05-01buildRustCrate: make codegen-units configurableMateusz Kowalczyk3-5/+9
This parameter is being set to `$NIX_BUILD_CORES` by default. This is a standard practice but there's a suspicion that this can produce broken builds. For some details see https://github.com/cargo2nix/cargo2nix/issues/184 . As a work-around/test, it'd be good if codegen-units can be set to something constant, such as `1`. This PR allows it. Note that the default of `$NIX_BUILD_CORES` is preserved so this MR causes no change in default behaviour and no rebuilds.
2022-05-01makeInitrdNG: Strip more and remove outputJanne Heß3-10/+25
This strips all elf files as far as possible and removes a lot of unnecessary output. Also wrap in the binaries instead of relying on $PATH.
2022-05-01Merge branch 'master' into staging-next-2022-04-23Vladimír Čunát9-35/+80
2022-05-01Merge staging-next into staginggithub-actions[bot]9-35/+80
2022-05-01Merge master into staging-nextgithub-actions[bot]9-35/+80
2022-04-30nuget-to-nix: include required dependenciesIvar Scholten2-4/+28
2022-04-30buildDotnetModule: properly inherit arguments from drv=5-8/+16
Previously buildDotnetModule did not properly inherit some arguments from derivations, take for example this expression: dotnetFlags = [ "--runtime linux-x64" ]; It would error out as follows: "MSBUILD : error MSB1001: Unknown switch.". Setting the same flag from bash would work fine. This fixes that, all arguments should now be properly interpreted :)
2022-04-30buildDotnetModule: nuget source cleanup=1-5/+10
There used to be a few issues with the way we generate the nuget source: * The derivation generated for the deps would have "nuget-deps" in them twice: /nix/store/...-foo-1.0-nuget-deps-nuget-deps * We always tried to generate the dependencies for "projectReferences" even when it wasn't set, causing a warning. This fixes those issues :)
2022-04-30mkNugetSource: fix bug in metadata generation=1-18/+26
This improves the metadata generation, previously it would take any "license" entry from the nuspec, and tried to match it to an spdx ID from "lib.licenses". Sometimes however licenses are provided in plain-text, which we obviously cannot cleanly resolve. This resulted in in useless information ("LICENSE.txt") being written to "meta.license".
2022-04-30Merge branch 'master' into staging-next-2022-04-23Vladimír Čunát1-1/+1
2022-04-29Merge staging-next into staginggithub-actions[bot]1-1/+1
2022-04-29Merge master into staging-nextgithub-actions[bot]1-1/+1
2022-04-28default-crate-overrides: only add Security to propagatedBuildInputs on ↵Yusuf Bera Ertan1-1/+1
darwin for security-framework-sys
2022-04-27Merge pull request #164163 from ncfavier/gapps-binary-wrapperDoron Behar3-16/+19
2022-04-26makeBinaryWrapper: unset NIX_CFLAGSNaïm Favier1-0/+2
Prevent the wrapper from being affected by the derivation's CFLAGS, which may not even apply to GCC.
2022-04-26wrapGAppsHook: use makeBinaryWrapperNaïm Favier2-16/+17
Reduces the likelihood of having apps wrapped twice by a shell script, which causes problems with argv0.
2022-04-26Merge master into staging-nextgithub-actions[bot]2-3/+3
2022-04-25treewide: Simplify negated uses of versionAtLeast, versionOlderAnders Kaseorg2-3/+3
Signed-off-by: Anders Kaseorg <andersk@mit.edu>