summaryrefslogtreecommitdiff
path: root/pkgs/test/make-binary-wrapper/default.nix (follow)
Commit message (Expand)AuthorAgeFilesLines
* various: fix parse errors for nix 2.3•••Path interpolation syntax is not supported in the minimum nix version. Wolfgang Walther2025-05-111-1/+1
* tests.makeBinaryWrapper: avoid `lib.fileset`Emily2024-12-311-10/+1
* treewide: format all inactive Nix files•••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 Silvan Mosberger2024-12-101-54/+67
* treewide: replace `stdenv.is` with `stdenv.hostPlatform.is`•••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" ``` Artturin2024-09-251-1/+1
* tests.makeBinaryWrapper: Prevent rebuilds when Nix files change•••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. Silvan Mosberger2024-08-251-4/+13
* tests.makeBinaryWrapper: avoid same-triple cross•••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. Alyssa Ross2023-04-191-1/+1
* makeBinaryWrapper: fix cross-compilation and add test•••Fixes https://github.com/NixOS/nixpkgs/issues/175045 Naïm Favier2022-05-311-26/+32
* makeBinaryWrapper: add overlength-strings testNaïm Favier2022-05-061-0/+1
* makeBinaryWrapper: Fix issues on aarch64-darwin/macOS 12 (Monterey)•••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.Tobias Bergkvist2021-12-161-1/+1
* makeBinaryWrapper: Fix chdir golden test for darwin•••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.Tobias Bergkvist2021-12-161-1/+1
* make-binary-wrapper: Add -Wall -Werror -WpedanticJacek Galowicz2021-12-091-1/+1
* make makeWrapper and makeBinaryWrapper drop-in-replaceableJacek Galowicz2021-12-091-2/+2
* Inject gcc path into makewrapper scriptJacek Galowicz2021-12-091-2/+2
* Add golden effects testJacek Galowicz2021-12-091-63/+44
* Add tests for `--inherit-argv0` and `--chdir DIR`Tobias Bergkvist2021-12-021-4/+6
* Add assertValidEnvName and check that variable name is valid during code gene...Tobias Bergkvist2021-12-011-0/+1
* Switch from buildInputs to nativeBuildInpuits in makeGoldenTestTobias Bergkvist2021-10-191-1/+1
* Set strictDeps = true in makeGoldenTest•••Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>Tobias Bergkvist2021-10-191-0/+1
* Add golden tests for make-binary-wrapper.•••To run tests after cloning on linux, use the following: nix-build pkgs/top-level/release.nix -A tests.make-binary-wrapper.x86_64-linuxTobias Bergkvist2021-10-041-0/+69