summaryrefslogtreecommitdiff
path: root/pkgs/test/make-binary-wrapper
AgeCommit message (Collapse)Author
2025-05-11Merge master into staging-nextnixpkgs-ci[bot]
2025-05-11various: fix parse errors for nix 2.3Wolfgang Walther
Path interpolation syntax is not supported in the minimum nix version.
2025-04-25makeWrapper: --add-flag and --append-flag argumentsBirdeeHub
also: manual: differences in makeWrapper implementations better explained Update pkgs/by-name/ma/makeBinaryWrapper/make-binary-wrapper.sh Co-authored-by: Naïm Camille Favier <n@monade.li> Update pkgs/by-name/ma/makeBinaryWrapper/make-binary-wrapper.sh Co-authored-by: Naïm Camille Favier <n@monade.li> Update pkgs/by-name/ma/makeBinaryWrapper/make-binary-wrapper.sh Co-authored-by: Naïm Camille Favier <n@monade.li> Update pkgs/build-support/setup-hooks/make-wrapper.sh Co-authored-by: Naïm Camille Favier <n@monade.li> Update pkgs/build-support/setup-hooks/make-wrapper.sh Co-authored-by: Naïm Camille Favier <n@monade.li> Update pkgs/build-support/setup-hooks/make-wrapper.sh Co-authored-by: Naïm Camille Favier <n@monade.li> Update pkgs/by-name/ma/makeBinaryWrapper/make-binary-wrapper.sh Co-authored-by: Naïm Camille Favier <n@monade.li> Update pkgs/build-support/setup-hooks/make-wrapper.sh Co-authored-by: Naïm Camille Favier <n@monade.li> Update pkgs/by-name/ma/makeBinaryWrapper/make-binary-wrapper.sh Co-authored-by: Naïm Camille Favier <n@monade.li> Update pkgs/build-support/setup-hooks/make-wrapper.sh Co-authored-by: Naïm Camille Favier <n@monade.li>
2024-12-31tests.makeBinaryWrapper: avoid `lib.fileset`Emily
2024-12-10treewide: format all inactive Nix filesSilvan Mosberger
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \ --argstr baseRev b32a0943687d2a5094a6d92f25a4b6e16a76b5b7 result/bin/apply-formatting $NIXPKGS_PATH
2024-09-25treewide: replace `stdenv.is` with `stdenv.hostPlatform.is`Artturin
In preparation for the deprecation of `stdenv.isX`. These shorthands are not conducive to cross-compilation because they hide the platforms. Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way One example of why this is bad and especially affects compiler packages https://www.github.com/NixOS/nixpkgs/pull/343059 There are too many files to go through manually but a treewide should get users thinking when they see a `hostPlatform.isX` in a place where it doesn't make sense. ``` fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is" fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is" ```
2024-08-25tests.makeBinaryWrapper: Prevent rebuilds when Nix files changeSilvan Mosberger
The source included way more files than it really needed. This commit limits it to exactly those it needs. This also makes sure that no rebuild is necessary when any Nix file changes, in particular useful when we reformat the Nix files.
2023-09-18makeBinaryWrapper: protect wildcards in flagsRyan Hendrickson
2023-09-15tests.makeBinaryWrapper: fix cross test on aarch64-linuxArtturin
2023-04-19tests.makeBinaryWrapper: avoid same-triple crossAlyssa Ross
We shouldn't try compiling to aarch64-unknown-linux-gnu from aarch64-unknown-linux-gnu, because that tends to confuse things and is not representative of actual cross compilation usage.
2022-06-12Merge pull request #172769 from ncfavier/wrappers-append-argsThiago Kenji Okada
makeWrapper,makeBinaryWrapper: implement `--append-flags`
2022-05-31makeBinaryWrapper: fix cross-compilation and add testNaïm Favier
Fixes https://github.com/NixOS/nixpkgs/issues/175045
2022-05-30makeWrapper,makeBinaryWrapper: implement `--append-flags`Naïm Favier
2022-05-06makeBinaryWrapper: add overlength-strings testNaïm Favier
2021-12-16makeBinaryWrapper: Fix issues on aarch64-darwin/macOS 12 (Monterey)Tobias Bergkvist
Sanitizers don't seem to be present on aarch64-darwin/macOS 12 (Monterey), so they are removed from the aarch64-darwin tests. Switching from nativeBuildInputs to buildInputs and adding cc to the deps list caused some strange error messages to go away.
2021-12-16makeBinaryWrapper: Fix chdir golden test for darwinTobias Bergkvist
On macOS, /tmp is a symlink to /private/tmp. When performing cd /tmp, and checking cwd - it won't match since it follows the symlink. This caused test breakage on macOS but not Linux. Instead, use a folder which is not a symlink, and consistent across Linux and macOS.
2021-12-09make-binary-wrapper: Add -Wall -Werror -WpedanticJacek Galowicz
2021-12-09make makeWrapper and makeBinaryWrapper drop-in-replaceableJacek Galowicz
2021-12-09Inject gcc path into makewrapper scriptJacek Galowicz
2021-12-09Add golden effects testJacek Galowicz
2021-12-02Add tests for `--inherit-argv0` and `--chdir DIR`Tobias Bergkvist
2021-12-01Replace concat3 with asprintf in set_env_prefix and set_env_suffix.Tobias Bergkvist
2021-12-01Switch from malloc to calloc in addFlagsTobias Bergkvist
2021-12-01Switch from exit(1) to abort() in assert_successTobias Bergkvist
2021-12-01Add assertValidEnvName and check that variable name is valid during code ↵Tobias Bergkvist
generation. Add assert_success, and assert that setenv/unsetenv succeeds to crash if they don't
2021-11-09Assert that malloc does not return a NULL pointer for better error messages ↵Tobias Bergkvist
+ to satisfy static analysis tools.
2021-10-19Switch from buildInputs to nativeBuildInpuits in makeGoldenTestTobias Bergkvist
2021-10-19Set strictDeps = true in makeGoldenTestTobias Bergkvist
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2021-10-04EditorConfig: Switch from tabs to spacesTobias Bergkvist
2021-10-04Add golden tests for make-binary-wrapper.Tobias Bergkvist
To run tests after cloning on linux, use the following: nix-build pkgs/top-level/release.nix -A tests.make-binary-wrapper.x86_64-linux