about summary refs log tree commit diff
path: root/pkgs/build-support/setup-hooks
Commit message (Collapse)AuthorAge
* postgresqlTestHook: add postgresqlExtraSettings variableMario Rodas2024-01-22
| | | | | | Add `postgresqlExtraSettings` to allow to setup the `postgresql.conf`. This would be useful in cases where we need to set `shared_preload_libraries`.
* auto-patchelf: improve deprecation check by searching all elementsConnor Baker2023-12-14
|
* auto-patchelf: add support for __structuredAttrsConnor Baker2023-12-14
|
* separateDebugInfo: use NIX_RUSTFLAGSAlyssa Ross2023-11-30
| | | | | | | | Setting RUSTFLAGS causes Cargo to ignore other ways of configuring flags, including the target-specific RUSTFLAGS options. This broke pkgsCross.musl64.crosvm, and was surprising to users. Fixes: https://github.com/NixOS/nixpkgs/pull/261727
* autoPatchelfHook: fix arguments parsingK9002023-11-17
|
* darwin: fix also .so names in darwinJari Vetoniemi2023-10-28
| | | | | | | | | | Darwin does not actually require `*.dylib` extension, and some ports of unix software may still simply compile and install these as `*.so` files. Include `*.so` in the find in this case. Co-authored-by: Artturi <Artturin@artturin.com> Co-authored-by: toonn <toonn@toonn.io>
* autoPatchelfHook: add `patchelfFlags` optionK9002023-09-30
| | | | This may be useful. Eventually. Maybe.
* Merge pull request #255208 from rhendric/rhendric/make-binary-wrapperArtturi2023-09-20
|\
| * makeBinaryWrapper: protect wildcards in flagsRyan Hendrickson2023-09-18
| |
* | makeBinaryWrapper.extractCmd: fix use in cross compilationNick Cao2023-09-16
|/
* Merge pull request #249268 from Enzime/remmina-bundletoonn2023-09-14
|\ | | | | writeDarwinBundle: use binary wrapper
| * writeDarwinBundle: use binary wrapperMichael Hoang2023-08-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously `writeDarwinBundle` used a handcrafted shell wrapper, however this causes issues on Apple Silicon Macs as script-only application bundles are always run under Rosetta[0][1]. Replacing the handcrafted shell wrapper with a binary wrapper allows apps to run natively instead of requiring Rosetta. However, this means we can no longer use `$1` and `$@`. After checking nearly every current usage of `desktopToDarwinBundle`, there were no apps that used `%[fFuU]` before the last argument, meaning removing them naively is good enough for the current apps. [0]: https://developer.apple.com/documentation/apple-silicon/building-a-universal-macos-binary [1]: https://stackoverflow.com/a/68208374
* | Merge pull request #218783 from timbertson/stripExcludeExtensionsArtturi2023-09-05
|\ \
| * | setup-hooks/strip: add stripExcludeTim Cuthbertson2023-09-03
| | |
* | | Merge pull request #245909 from Artturin/setupshchanges2Artturi2023-09-04
|\ \ \
| * | | setup-hooks/separate-debug-info.sh: Warn if necessary variables are not setArtturin2023-09-03
| | | | | | | | | | | | | | | | | | | | `$OBJCOPY` is not available in bootstrap tools `stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages.bash.stdenv.cc.bintools`
| * | | stdenv: Fix possible issues discovered withArtturin2023-09-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ``` set -o errexit -o nounset -o pipefail shopt -s inherit_errexit ``` in `stdenv/default-builder.sh`
* | | | win-dll-links: also copy dll from dependenciesbrano5432023-08-31
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes running `pkgsCross.mingwW64._7zz` in wine. Fixes issue 38451 ``` tree result/bin result/bin ├── 7zz.exe └── mcfgthread-12.dll -> ../../wmgj476qjfw26f9aij1d64lxrjfv6kk0-mcfgthreads-x86_64-w64-mingw32-git/bin/mcfgthread-12.dll ``` Co-authored-by: marius david <marius@mariusdavid.fr>
* | | Merge pull request #246867 from markuskowa/add-mpi-hookmarkuskowa2023-08-26
|\ \ \ | | | | | | | | add mpiCheckPhaseHook
| * | | mpiCheckPhaseHook: add new setup hook for MPI aware check phasesMarkus Kowalewski2023-08-22
| | |/ | |/| | | | | | | | | | | | | Add this hook to checkPhase to allow for running MPI application in the sandbox. It detects the MPI implementations and sets the respective environment variables.
* | | setup-hooks/strip: Create the log file in '$TMDPIR'Artturin2023-08-07
| | | | | | | | | | | | | | | | | | | | | | | | vcunat said > This invocation of mktemp creates the file in the current directory, which is bad practice. We should add "--tmpdir=$TMPDIR" or make the template absolute. > I noticed because one package did cd $src during installing, which is a read-only path...
* | | makeBinaryWrapper: remove cc dependency on aarch64-darwinTheodore Ni2023-08-04
| | |
* | | Merge pull request #238525 from tie/patch-shebang-update-store-pathsArtturi2023-08-04
|\ \ \
| * | | patch-shebangs: add a flag to update shebangs with store pathsIvan Trubach2023-06-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds a flag to update shebang paths that point to the Nix store. This is particularly useful when a cross-compiled package uses same script at compile-time and run-time, but the interpreter must be changed since hostPlatform != buildPlatform.
* | | | Revert "stdenv: use improved strip.sh for aarch64-linux"Vladimír Čunát2023-07-31
| | | | | | | | | | | | | | | | | | | | This reverts commit 39919b8f215110c1516f5c6b300f5ee69df23fd4. The parent merge resolved this more properly.
* | | | Merge pull request #246164 from trofi/strip-no-symlinksLinus Heckemann2023-07-31
|\ \ \ \ | |_|/ / |/| | | setup-hooks/strip: resolve/uniq symlinks before stripping
| * | | setup-hooks/strip: resolve/uniq symlinks before strippingSergei Trofimovich2023-07-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before the change the hook had a chance to run `strip` against the same file using multiple link paths. In case of `gcc` `libgcc.a` was stripped multiple times in parallel and produces corrupted archive. The change runs inputs via `realpath | uniq` to make sure we don't attempt to strip the same files multiple times.
* | | | stdenv: use improved strip.sh for aarch64-linuxVladimír Čunát2023-07-30
|/ / / | | | | | | | | | | | | Adapted from PR #246164 TODO: clean up / use it everywhere on the next rebuild.
* | | setup-hooks/strip: Exit if `cmd` or `ranlibCmd` are emptyArtturin2023-07-21
| | |
* | | setup-hooks/strip: Add -- before $cmdArtturin2023-07-21
| | |
* | | setup-hooks/strip: Print strip stderr if command failsArtturin2023-07-21
| | | | | | | | | | | | | | | | | | This is easiest to do through a file. mktemp needs six X because busybox only accepts exactly six X.
* | | setup-hooks/strip: parallelise strippingLinus Heckemann2023-07-10
| |/ |/| | | | | | | This makes bootstrapping to GNU hello ~1-2% faster on an 8-core machine and ~3-4% faster on a 64-core machine.
* | makeWrapper: fix flag handlingJames Kay2023-06-11
|/ | | | | When `--add-flags` is not used, `flagsBefore` is unset. This causes an error when invoking `makeWrapper` from a context that sets `-o nounset`, as is done in `buildDotnetModule`. This change makes `makeWrapper` safe for use in these conditions.
* pkgs/build-support: fix typosfetsorn2023-05-31
|
* autoPatchelfHook: Add support for single filesGuillaume Maudoux2023-05-30
|
* Merge #229154: staging: make wrapProgram<Type> use the right wrapperVladimír Čunát2023-05-01
|\ | | | | | | ...into staging
| * pkgs/build-support: call the right makeWrapper function from wrapProgram<Type>K9002023-04-30
| |
* | Merge master into staging-nextgithub-actions[bot]2023-05-01
|\ \ | |/ |/|
| * Merge pull request #224178 from Yarny0/patch-ppd-files-metaArtturi2023-04-30
| |\
| | * patch-ppd-files: use `meta` and `passthru` directlyYarny02023-04-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When I authored the nix file in 335a9083b02d2a7034dd98c8641f019e85e50426, `makeSetupHook` didn't know about `passthru` or `meta`. So I foisted these attributes on the derivation with `.overrideAttrs`. Commits ba895a7da8f86c6f924fc96026d8f1cb1ea2af1e and 48034046bf6271d44f7dea4c1ba97196b3b105a7 enabled `makeSetupHook` to receive these attributes directly. It seems advisable to use that instead of `.overrideAttrs`.
* | | Merge staging-next into staginggithub-actions[bot]2023-04-25
|\| |
| * | Merge master into staging-nextgithub-actions[bot]2023-04-25
| |\ \
| | * \ Merge pull request #223759 from 2xsaiko/outgoing/darwin-bundletoonn2023-04-25
| | |\ \ | | | | | | | | | | desktopToDarwinBundle: Parsing & icon conversion fixes
| | | * | desktopToDarwinBundle: Fix icon selection algorithmMarco Rebhan2023-03-29
| | | | | | | | | | | | | | | | | | | | | | | | | Now, the fallback icon is only used after considering all possible icons instead of only the first one.
| | | * | desktopToDarwinBundle: Add debug outputs for icon conversionMarco Rebhan2023-03-29
| | | | |
| | | * | desktopToDarwinBundle: Return at most 1 literal match from desktop fileMarco Rebhan2023-03-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes multiple entries being returned from getDesktopParam, e.g. in the case of localized key names: 'Name', 'Name[de]', and makes this function to match this key exactly instead of a pattern for the same reason.
* | | | | Merge pull request #227762 from raboof/separate-debug-info-deterministicallyGuillaume Girol2023-04-23
|\ \ \ \ \ | |/ / / / |/| | | | setup-hooks/separate-debug-info.sh: make deterministic
| * | | | setup-hooks/separate-debug-info.sh: make deterministicArnout Engelen2023-04-23
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | If multiple files with the same build id were found, we silently randomly overwrote one with the other. Change the order to make the output deterministic, and emit a warning when overwriting.
* | | | Merge staging-next into staginggithub-actions[bot]2023-04-15
|\| | |
| * | | moveBuildTree: initWeijia Wang2023-04-14
| | |/ | |/|