| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
An example use case is when you have Haskell scripts that use
libraries that don't occur in your packages' dependencies.
|
|
|
|
| |
Co-authored-by: Janne Heß <janne@hess.ooo>
|
| |
|
|\
| |
| | |
concatTextFile: init
|
| | |
|
|\ \
| | |
| | | |
pkgs.tests: Add fetcher tests so ofborg can run them
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | | |
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.
|
|/ /
| |
| | |
Move makeBinaryWrapper tests to pkgs.makeBinaryWrapper.passthru.tests, since OfBorg doesn't discover/skips the tests in the previous location.
|
|\ \
| | |
| | | |
Generate tiny compiled binary for wrapping executables
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
generation. Add assert_success, and assert that setenv/unsetenv succeeds to crash if they don't
|
| | |
| | |
| | |
| | | |
+ to satisfy static analysis tools.
|
| | | |
|
| | |
| | |
| | | |
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
|
| | | |
|
| | |
| | |
| | |
| | | |
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
|
| |/
|/| |
|
|\ \
| | |
| | | |
php: Implement overrideAttrs that composes with buildEnv/withExtensions
|
| | |
| | |
| | |
| | |
| | |
| | | |
Hopefully.
Also add a couple of tests to check that.
|
|\ \ \ |
|
| |\ \ \
| | |/ /
| |/| | |
dhallPackages.buildDhallUrl: add function for easily building dhall remote imports
|
| | | | |
|
| | | |
| | | |
| | | | |
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
|
| | | | |
|
|/ / / |
|
|/ /
| |
| |
| |
| | |
The writeStringReferencesToFile didn't handle non-unique references
to the same path correctly.
|
| | |
|
| |
| |
| |
| | |
This has been synonymous for ~5y.
|
| | |
|
|\ \
| | |
| | | |
texlive: generate fmtutil.cnf
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
This allows packagePlatforms to pick up on the overall supported
platforms and schedule builds on Hydra for more than the evaluation
platform (usually x86_64-linux).
|
| | | |
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Since the rust writer doesn't seem to get fixed on darwin, we'll just
wrap the haskell writer test in our own derivation (which is possible
since tests.writers exposes a bunch of internals via passthru) and
expose it via tests.haskell which are already in mergeable.
Finally a way to test the (hopefully) working haskell writer on darwin
again!
|
|\ \
| | |
| | | |
texlive.combine: improve creation of language files
|
| | | |
|
|\| | |
|
| |\ \ |
|
| | | | |
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This fixes #126344, specifically with the goal of enabling overriding the
checkPhase argument. See `design notes` at the end for details.
This allows among other things, enabling bash extension for the `checkPhase`.
Previously using such bash extensions was prohibited by the `writeShellScript`
code because there was no way to enable the extension in the checker.
As an example:
```nix
(writeShellScript "foo" ''
shopt -s extglob
echo @(foo|bar)
'').overrideAttrs (old: {
checkPhase = ''
# use subshell to preserve outer environment
(
export BASHOPTS
shopt -s extglob
${old.checkPhase}
)
'';
})
```
This commit also adds tests for this feature to `pkgs/tests/default.nix`,
under `trivial-overriding`. The test code is located at
`pkgs/build-support/trivial-builders/test-overriding.nix`.
Design notes:
-------------
Per discussion with @sternenseemann, the original approach of just wrapping
`writeTextFile` in `makeOverridable` had the issue that combined with `callPackage`
in the following form, would shadow the `.override` attribute of the `writeTextFile`:
```nix
with import <nixpkgs>;
callPackage ({writeShellScript}: writeShellScript "foo" "echo foo")
```
A better approach can be seen in this commit, where `checkPhase` is moved
from an argument of `writeTextFile`, which is substituted into `buildCommand`,
into an `mkDerivation` argument, which is substituted from the environment
and `eval`-ed. (see the source)
This way we can simple use `.overideAttrs` as usual, and this also makes
`checkPhase` a bit more conformant to `mkDerivation` naming, with respect to
phases generally being overridable attrs.
Co-authored-by: sterni <sternenseemann@systemli.org>
Co-authored-by: Naïm Favier <n@monade.li>
|
|\| | |
|