aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-03-10Fix flake subdirectory handlingEelco Dolstra
2020-03-09Move calling flakes into a Nix helper function (call-flake.nix)Eelco Dolstra
2020-03-09Add 'flake' attribute to lock files to denote non-flakesEelco Dolstra
2020-03-04Merge remote-tracking branch 'origin/master' into flakesEelco Dolstra
2020-03-04nix-build: Fix !<output> handlingEelco Dolstra
This was broken by 22a754c091f765061f59bef5ce091268493bb138. https://hydra.nixos.org/eval/1573669
2020-03-04Merge branch 'emacs_lambda_indentation' of https://github.com/tbsmoest/nix-1Eelco Dolstra
2020-03-04Optimise Derivation::unparse()Eelco Dolstra
In nix-instantiate --dry-run '<nixpkgs/nixos/release-combined.nix>' -A nixos.tests.simple.x86_64-linux this reduces time spent in unparse() from 9.15% to 4.31%. The main culprit was appending characters one at a time to the destination string. Even though the string has enough capacity, push_back() still needs to check this on every call.
2020-03-04builtins.cache: Cache regular expressionsEelco Dolstra
The evaluator was spending about 1% of its time compiling a small number of regexes over and over again.
2020-03-04Add test for foldl'Eelco Dolstra
2020-02-28Fix GC failures on bad store path namesEelco Dolstra
It failed on names like '/nix/store/9ip48nkc9rfy0a4yaw98lp6gipqlib1a-'.
2020-02-27Merge remote-tracking branch 'origin/master' into flakesEelco Dolstra
2020-02-27nix dev-shell: Add --command optionEelco Dolstra
Note: like 'nix run', and unlike 'nix-shell', this takes an argv vector rather than a shell command. So nix dev-shell -c 'echo $PATH' doesn't work. Instead you need to do nix dev-shell -c bash -c 'echo $PATH'
2020-02-25Add backward compatibility default.nix / shell.nixEelco Dolstra
This uses https://github.com/edolstra/flake-compat which is a bit more general than #3366.
2020-02-20Fix nlohmann::json exceptionEelco Dolstra
2020-02-20Restore subdir -> dirEelco Dolstra
Got this mixed up somewhere.
2020-02-20Restore subdir support in registriesEelco Dolstra
Hacky...
2020-02-20fetchTree: Use a feature flagEelco Dolstra
2020-02-20.dir-locals.el: Set additional lambda indentation to zeroTobias Möst
2020-02-19Merge pull request #3325 from xzfc/clean-tmpdirEelco Dolstra
nix-shell: clean up the tmpDir and escape variables
2020-02-19nix eval-hydra-jobs: RemoveEelco Dolstra
On second thought, let's move this back to Hydra.
2020-02-19nix-shell: clean up the tmpDir and escape variablesAlbert Safin
The problem fixed: each nix-shell invocation creates a new temporary directory (`/tmp/nix-shell-*`) and never cleans up. And while I'm here, shellescape all variables inlined into the rcfile. See what might happen without escaping: $ export TZ="';echo pwned'" $ nix-shell -p hello --run hello pwned Hello, world!
2020-02-19Merge pull request #3229 from Ma27/flakes-fetchgit-worktree-supportEelco Dolstra
builtins.fetchGit: Fix build when fetching a git worktree
2020-02-19builtins.fetchGit: Fix build when fetching a git worktreeMaximilian Bosch
Worktrees[1] are a feature of git which allow you to check out a ref in a different directory. While playing around with flakes I realized that git repositories in a worktree checkout break when trying to build a flake: ``` $ git worktree add ../nixpkgs-flakes nixpkgs-flakes $ cd ../nixpkgs-flakes $ nix build .#hello error: opening directory '/home/ma27/Projects/nixpkgs-flakes/.git/refs/heads': Not a directory ``` This issue has been fixed by determining with `git rev-parse --git-common-dir` where the actual `.git` directory is. Please note that this issue only exists on the `flakes` branch, fetching worktree checkouts with Nix master seems to work fine. [1] https://git-scm.com/docs/git-worktree
2020-02-19Merge pull request #3332 from Calvin-L/patch-1Eelco Dolstra
Document that autoconf is a dependency
2020-02-19Merge pull request #3357 from carlosdagos/pure-nix-shell-proxy-envEelco Dolstra
Pass through http proxy env vars in pure shell
2020-02-19Merge remote-tracking branch 'origin/master' into flakesEelco Dolstra
2020-02-19Merge pull request #3328 from ↵Eelco Dolstra
Rovanion/nix-daemon-already-running-when-installing-fix installer: Handle edge case where the nix-daemon is already running on the system
2020-02-19nix eval-hydra-jobs: Add featureEelco Dolstra
2020-02-19Use Nixpkgs 20.03Eelco Dolstra
2020-02-19TypoEelco Dolstra
2020-02-19Merge pull request #3359 from bhipple/doc/pure-evalEelco Dolstra
doc: mention how to turn on pure evaluation mode in manual
2020-02-19Merge pull request #3353 from tbsmoest/priv_tobias_pr_set_deathsig-1.4Eelco Dolstra
Fix PR_SET_PDEATHSIG results in Broken pipe (#2395)
2020-02-19Add dev outputEelco Dolstra
Necessary since we're now propagating boehm-gc.
2020-02-19Fix nixpkgs.<attr> warningEelco Dolstra
2020-02-18Remove outdated shell.nixEelco Dolstra
Looks like this got accidentally revived after 204291f0598c43b10cf20a89b49fc63624d78c7c.
2020-02-18ggRevert "Use Nixpkgs 20.03"Eelco Dolstra
This reverts commit 5921ca89f9cc6247830e92a71f7db3f1fe0c193b.
2020-02-18nix eval-hydra-jobs: Fix aggregate derivation nameEelco Dolstra
2020-02-18nix eval-hydra-jobs: Check aggregate jobs in --dry-run modeEelco Dolstra
2020-02-18Build with large config Boehm GCEelco Dolstra
2020-02-18Enable debug symbolsEelco Dolstra
2020-02-18LocalStore::checkDerivationOutputs(): Improve error messageEelco Dolstra
2020-02-18Disable the progress bar if $TERM == dumb or unsetEelco Dolstra
Fixes #3363.
2020-02-18Disable the progress bar if $TERM == dumb or unsetEelco Dolstra
Fixes #3363.
2020-02-18Use Nixpkgs 20.03Eelco Dolstra
2020-02-18Fix URL parserEelco Dolstra
Fixes #3361.
2020-02-17nix eval-hydra-jobs: Support job names as aggregate constituentsEelco Dolstra
Fixes https://github.com/NixOS/hydra/issues/715.
2020-02-17LocalStore::checkDerivationOutputs(): Improve error messageEelco Dolstra
2020-02-17nix eval-hydra-job: Progress indicatorEelco Dolstra
2020-02-17nix eval-hydra-jobs: Improve error handlingEelco Dolstra
2020-02-15Build with large config Boehm GCEelco Dolstra