aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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-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-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-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-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 #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-19nix eval-hydra-jobs: Add featureEelco Dolstra
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-19Fix nixpkgs.<attr> warningEelco Dolstra
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-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-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-14nix eval-hydra-jobs: Support flakesEelco Dolstra
2020-02-14nix eval-hydra-jobs: Support parallel evaluationEelco Dolstra
Example usage: $ nix eval-hydra-jobs -f '<nixpkgs/pkgs/top-level/release.nix>' '' \ --max-memory-size 2048 --workers 8
2020-02-14Add 'nix eval-hydra-jobs' commandEelco Dolstra
2020-02-14Fix buildEelco Dolstra
2020-02-14Merge remote-tracking branch 'origin/master' into flakesEelco Dolstra
2020-02-14Fix PR_SET_PDEATHSIG results in Broken pipe (#2395)Tobias Möst
The ssh client is lazily started by the first worker thread, that requires a ssh connection. To avoid the ssh client to be killed, when the worker process is stopped, do not set PR_SET_PDEATHSIG.
2020-02-14Pass through http proxy env vars in pure shellCarlos D
2020-02-13Bindings::get(): std::optional<Attr *> -> Attr *Eelco Dolstra
Returning a nullable type in an optional is silly.
2020-02-13Prevent uninitialized StorePath creationEelco Dolstra
2020-02-11Add fetchTree builtin functionEelco Dolstra
This allows all supported fetchers to be used, e.g. builtins.fetchTree { type = "github"; owner = "NixOS"; repo = "nix"; rev = "d4df99a3349cf2228a8ee78dea320afef86eb3ba"; }
2020-02-11Parse narHash attribute for all input typesEelco Dolstra
2020-02-11nix path-info --json: Print hash in SRI formatEelco Dolstra
2020-02-07nix edit: Support non-derivation attributesEelco Dolstra
E.g. $ nix edit .#nixosConfigurations.bla now works.
2020-02-07findAlongAttrPath(): Return positionEelco Dolstra
2020-02-07Merge remote-tracking branch 'origin/master' into flakesEelco Dolstra
2020-02-07Fix segfault in gcc on i686-linuxEelco Dolstra
src/libstore/ssh-store.cc: In constructor 'nix::SSHStore::SSHStore(const string&, const Params&)': src/libstore/ssh-store.cc:31:21: internal compiler error: Segmentation fault compress) ^ Please submit a full bug report, with preprocessed source if appropriate. https://hydra.nixos.org/build/111545609
2020-02-06Registry: Use attr notation instead of URLsEelco Dolstra
2020-02-05Warn when we commit a new revisionEelco Dolstra