Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-04-19 | Fix 'nix fmt' test | Eelco Dolstra | |
2022-04-19 | Require formatters to be packages | Eelco Dolstra | |
Because of 9b41239d8fdcc3fe50febe718c15833ebc224354, a formatter can no longer be a package *or* an app. So let's require it to be a package for now. | |||
2022-04-19 | Merge branch 'issue-6075' of https://github.com/kamadorueda/nix | Eelco Dolstra | |
2022-04-19 | Fix compilation, style fixes | Eelco Dolstra | |
2022-04-19 | Merge branch 'make-flake-show-more-lenient-on-apps' of ↵ | Eelco Dolstra | |
https://github.com/flox/nix | |||
2022-04-14 | fix: ensure apps are apps and packages are packages | Tom Bereknyei | |
2022-04-09 | Test fetchMercurial with path containing a `.` segment | Daniel Pauls | |
2022-04-07 | Test fetchgit with path containing a `.` segment | Théophane Hufschmitt | |
2022-04-06 | fetchClosure: Don't allow URL query parameters | Eelco Dolstra | |
Allowing this is a potential security hole, since it allows the user to specify parameters like 'local-nar-cache'. | |||
2022-04-05 | Allow `welcomeText` when checking a flake template | Théophane Hufschmitt | |
Fix https://github.com/NixOS/nix/issues/6321 | |||
2022-04-01 | Fix handling of outputHash when outputHashAlgo is not specified | Eelco Dolstra | |
https://hydra.nixos.org/build/171351131 | |||
2022-03-31 | tests/impure-derivations.sh: Ensure that inputAddressed build fails | Eelco Dolstra | |
2022-03-31 | Provide default values for outputHashAlgo and outputHashMode | Eelco Dolstra | |
2022-03-31 | Fix test | Eelco Dolstra | |
2022-03-31 | tests/impure-derivations.sh: Restart daemon | Eelco Dolstra | |
2022-03-31 | Support fixed-output derivations depending on impure derivations | Eelco Dolstra | |
2022-03-31 | Add support for impure derivations | Eelco Dolstra | |
Impure derivations are derivations that can produce a different result every time they're built. Example: stdenv.mkDerivation { name = "impure"; __impure = true; # marks this derivation as impure outputHashAlgo = "sha256"; outputHashMode = "recursive"; buildCommand = "date > $out"; }; Some important characteristics: * This requires the 'impure-derivations' experimental feature. * Impure derivations are not "cached". Thus, running "nix-build" on the example above multiple times will cause a rebuild every time. * They are implemented similar to CA derivations, i.e. the output is moved to a content-addressed path in the store. The difference is that we don't register a realisation in the Nix database. * Pure derivations are not allowed to depend on impure derivations. In the future fixed-output derivations will be allowed to depend on impure derivations, thus forming an "impurity barrier" in the dependency graph. * When sandboxing is enabled, impure derivations can access the network in the same way as fixed-output derivations. In relaxed sandboxing mode, they can access the local filesystem. | |||
2022-03-30 | Don’t create a file in the worktree in the fetchPath test | Théophane Hufschmitt | |
2022-03-25 | Merge pull request #6311 from edolstra/return-wanted-paths | Eelco Dolstra | |
Make buildPathsWithResults() only return info on wanted outputs | |||
2022-03-24 | tests/build.sh: Test that 'nix build' only prints wanted outputs | Eelco Dolstra | |
2022-03-24 | Implement regression test for empty logs loaded via `nix log` | Maximilian Bosch | |
2022-03-24 | Add experimental feature 'fetch-closure' | Eelco Dolstra | |
2022-03-24 | Add a test for fetchClosure and 'nix store make-content-addressed' | Eelco Dolstra | |
2022-03-22 | Don't hide repeated values while generating manifest.nix | Eelco Dolstra | |
Fixes #6243. | |||
2022-03-19 | Fix sourcehut integration test | Gabriel Fontes | |
The new implementation relies on tab separting the hash and ref (this is how sourcehut does it). This fixes the integration test to use a tab instead of a space. | |||
2022-03-17 | Merge pull request #6277 from thufschmitt/ca/nix-build-dry-run | Eelco Dolstra | |
Fix `nix build --dry-run` with CA derivations | |||
2022-03-17 | Merge pull request #6270 from Artturin/stdineval | Théophane Hufschmitt | |
nix: allow using --file - to read from stdin | |||
2022-03-17 | Fix `nix build --dry-run` with CA derivations | Théophane Hufschmitt | |
Don’t try and assume that we know the output paths when we’ve just built with `--dry-run`. Instead make `--dry-run` follow a different code path that won’t assume the knowledge of the output paths at all. Fix #6275 | |||
2022-03-17 | Merge pull request #6242 from ncfavier/print-output-names | Théophane Hufschmitt | |
nix-env: always print output names in JSON and XML | |||
2022-03-16 | Add some tests for `nix-env -q --json` | Théophane Hufschmitt | |
2022-03-16 | add tests for nix eval and nix-instantiate | Artturin | |
2022-03-16 | Fix the date in the comment of fetchPath’s test | Théophane Hufschmitt | |
Co-authored-by: pennae <82953136+pennae@users.noreply.github.com> | |||
2022-03-15 | Fix the tests on 32bits machines | regnat | |
year 2222 is too much for a 32 bit timestamp. So replace it by something smaller | |||
2022-03-15 | Implement simple test for `path`-fetcher setting a correct `lastModifiedDate` | Maximilian Bosch | |
Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com> | |||
2022-03-11 | nix-fmt: add command | Kevin Amado | |
2022-03-11 | Merge remote-tracking branch 'origin/eval-suggestions' | Eelco Dolstra | |
2022-03-11 | Merge pull request #5758 from mschwaig/fix-git-workspace-dirty-detection | Théophane Hufschmitt | |
git fetcher: fix detection of dirty git workspaces | |||
2022-03-08 | Also display some suggestions for invalid formal arguments | regnat | |
```console $ nix eval --expr '({ foo ? 1 }: foo) { fob = 2; }' error: anonymous function at (string):1:2 called with unexpected argument 'fob' at «string»:1:1: 1| ({ foo ? 1 }: foo) { fob = 2; } | ^ Did you mean foo? ``` Not that because Nix will first check for _missing_ arguments before checking for extra arguments, `({ foo }: foo) { fob = 1; }` will complain about the missing `foo` argument (rather than extra `fob`) and so won’t display a suggestion. | |||
2022-03-08 | Add some suggestions to the evaluator | regnat | |
Make the evaluator show some suggestions when trying to access an invalid field from an attrset. ```console $ nix eval --expr '{ foo = 1; }.foa' error: attribute 'foa' missing at «string»:1:1: 1| { foo = 1; }.foa | ^ Did you mean foo? ``` | |||
2022-03-07 | Merge branch 'cli-suggestions' of https://github.com/thufschmitt/nix | Eelco Dolstra | |
2022-03-07 | Add some end-to-end tests for the suggestions | regnat | |
2022-03-07 | Merge pull request #6029 from Ma27/nix-log-ssh-ng | Théophane Hufschmitt | |
ssh-ng: also store build logs to make them accessible by `nix log` | |||
2022-03-07 | Explain why the log tests are disabled for CA derivations | Théophane Hufschmitt | |
2022-03-04 | tests: grep for string in nix log for remote-builds | Maximilian Bosch | |
2022-03-02 | nix profile test: Restart daemon | Eelco Dolstra | |
Fixes nix-daemon: src/libstore/sqlite.cc:97: nix::SQLiteStmt::Use::Use(nix::SQLiteStmt&): Assertion `stmt.stmt' failed. which happens because the daemon doesn't properly handle the case where ca-derivations isn't enabled at daemon startup. | |||
2022-03-02 | Remove obsolete todo | Eelco Dolstra | |
2022-03-02 | Silence kill output | Eelco Dolstra | |
2022-03-02 | tests/common.sh.in: Add enableFeatures helper | Eelco Dolstra | |
2022-03-02 | nix profile: Add a test for non-flake packages | Eelco Dolstra | |
2022-03-02 | nix profile: Support CA derivations | Eelco Dolstra | |