aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-08-02s3 binary cache: support specifying an endpointGraham Christensen
Works for uploading and not downloading.
2018-08-02Merge pull request #2322 from samueldr/fix/removes-unused-variableEelco Dolstra
Removes unused variable from `nix-build/nix-shell`
2018-08-01Removes unused variable from `nix-build/nix-shell`Samuel Dionne-Riel
This particular `shell` variable wasn't used, since a new one was declared in the only side of the `if` branch that used a `shell` variable. It could realistically confuse developers thinking it could use `$SHELL` under some situations.
2018-08-01Document s3 substitutionsGraham Christensen
2018-07-31Merge branch 'prim_mapAttr-fix' of https://github.com/volth/nixEelco Dolstra
2018-07-31Disable rpm_fedora27x86_64Eelco Dolstra
Fedora 27 provides an incompatible version of Boost (1.64.0).
2018-07-31Fix race downloading into a sinkEelco Dolstra
This fixes 'error 10 while decompressing xz file'. https://hydra.nixos.org/build/78308551
2018-07-31Add a check for broken Boost versionsEelco Dolstra
In some Boost versions, coroutines don't propagate exceptions properly, causing Nix to fail with the exception 'coroutine has finished'.
2018-07-31Attempt to fix the RPM buildEelco Dolstra
2018-07-31Fix RPM buildEelco Dolstra
https://hydra.nixos.org/build/73991153
2018-07-24Merge pull request #2305 from lheckemann/copy-keep-goingEelco Dolstra
copyPathsToStore: honour keep-going
2018-07-24copyPathsToStore: honour keep-goingLinus Heckemann
2018-07-23Merge pull request #2303 from volth/patch-4Eelco Dolstra
parser.y: fix assoc of -> and < > <= >=
2018-07-23parser.y: right-associativity of ->volth
2018-07-23Merge pull request #2302 from volth/patch-3Eelco Dolstra
prim_foldlStrict: call forceValue() before value is copied
2018-07-21parser.y: fix assoc of -> and < > <= >=volth
The parser allowed senseless `a > b > c` but disallowed `a -> b -> c` which seems valid It might be a typo
2018-07-21prim_foldlStrict: call forceValue() before value is copiedvolth
forceValue() were called after a value is copied effectively forcing only one of the copies keeping another copy not evaluated. This resulted in its evaluation of the same lazy value more than once (the number of hits is not big though)
2018-07-12nix-prefetch-url: Download file in constant memoryEelco Dolstra
Before: $ command time nix-prefetch-url https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.17.6.tar.xz 1.19user 1.02system 0:41.96elapsed 5%CPU (0avgtext+0avgdata 182720maxresident)k After: 1.38user 1.05system 0:39.73elapsed 6%CPU (0avgtext+0avgdata 16204maxresident)k Note however that addToStore() can still take a lot of memory (e.g. RemoteStore::addToStore() is constant space, but LocalStore::addToStore() isn't; that's fixed by https://github.com/edolstra/nix/commit/c94b4fc7ee0c7b322a5f3c7ee784063b47a11d98 though). Fixes #1400.
2018-07-11Fix build on 32-bit systems and macOSEelco Dolstra
Apparently, on macOS, 'long' != 'int64_t'. https://hydra.nixos.org/build/77100756
2018-07-11Shup up a warningEelco Dolstra
2018-07-11Remove unused function printStats2()Eelco Dolstra
Closes #2282.
2018-07-07prim_map, prim_genList: no need to force function argument which will be ↵volth
stored in mkApp
2018-07-06prim_mapAttrs: `f' must be evaluated lazily to avoid infinite recursionvolth
2018-07-06Merge pull request #2250 from dtzWill/feature/repl-progress-bar-buildsEelco Dolstra
repl: use `nix build` for building instead of `nix-store -r`
2018-07-05Merge pull request #2275 from volth/issue-1776Eelco Dolstra
[bugfix] lib.concatMap and lib.mapAttrs to be builtins
2018-07-05prim_concatMap: no need to force valuevolth
2018-07-05prim_mapAttrs: must be lazy to avoid infinite recursionvolth
2018-07-05Merge pull request #2273 from volth/issue-1776Eelco Dolstra
[wip] lib.concatMap and lib.mapAttrs to be builtins
2018-07-05prim_concatMap: allocate intermediate list on stackvolth
2018-07-05primops.cc: fix commentvolth
2018-07-05lib.concatMap and lib.mapAttrs to be builtinsvolth
2018-07-04Merge pull request #2268 from dtzWill/fix/search-ux-test-breakEelco Dolstra
tests/search.sh: minor fix to unbreak tests after search ux merge
2018-07-03tests/search.sh: minor fix to unbreak tests after search ux mergeWill Dietz
2018-07-03nix-daemon: Respect --storeEelco Dolstra
For example, this allows you to do run nix-daemon as a non-privileged user: eelco$ NIX_STATE_DIR=~/my-nix/nix/var nix-daemon --store ~/my-nix/ The NIX_STATE_DIR is still needed because settings.nixDaemonSocketFile is not derived from settings.storeUri (and we can't derive it from the store's state directory because we don't want to open the store in the parent process).
2018-07-03Include cpptoml for build simplicityEelco Dolstra
2018-07-03Add a fromTOML primopEelco Dolstra
This is primarily useful for processing Cargo.lock files.
2018-07-03Store floating point numbers in double precisionEelco Dolstra
Even on 32-bit systems, Value has enough space to hold a double.
2018-07-03Merge pull request #2265 from Ma27/nix-why-depends-pagerEelco Dolstra
nix why-depends: render output into $PAGER
2018-07-03nix why-depends: render output into $PAGERMaximilian Bosch
2018-07-02Merge pull request #2158 from Ma27/improve-search-uxEelco Dolstra
search.cc: improve UX for `nix search`
2018-07-02search.cc: improve UX for `nix search`Maximilian Bosch
As proposed in #1634 the `nix search` command could use some improvements. Initially 0413aeb35d6ee869a98b6565781c1cf47dc80080 added some basic sorting behavior using `std::map`, a next step would be an improvement of the output. This patch includes the following changes: * Use `$PAGER` for outputs with `RunPager` from `shared.hh`: The same behavior is defined for `nix-env --query`, furthermore it makes searching huge results way easier. * Simplified result blocks: The new output is heavily inspired by the output from `nox`, the first line shows the attribute path and the derivaiton name (`attribute path (derivation name)`) and the description in the second line.
2018-06-23repl: use `nix build` for building instead of `nix-store -r`Will Dietz
progress bar!
2018-06-21Merge pull request #2243 from peti/masterEelco Dolstra
docker: move the docker file to https://github.com/NixOS/docker
2018-06-21docker: move the docker file to https://github.com/NixOS/dockerPeter Simons
We have automated builds at https://hub.docker.com/r/nixos/nix/ now. The master branch of the "docker" repository is available as "latest". Branches that match the regular expression "^[0-9.]+$" are pushed to the tag that corresponds to their branch name. Other branches are ignored.
2018-06-19Merge pull request #2241 from dtzWill/feature/refresh-progress-barEelco Dolstra
progress-bar: refresh occasionally even if no updates are received
2018-06-18Merge pull request #2240 from dtzWill/fix/use-utillinux-minimalShea Levy
release-common: prefer utillinuxMinimal to reduce compile-time deps
2018-06-18progress-bar: re-draw last update if nothing new for 1sec.Will Dietz
Slightly nicer behavior when updates are somewhat far apart (during a long linking step, perhaps) ensuring things don't appear unresponsive. If we wait the maximum amount for the update, don't bother waiting another 50ms (for rate-limiting purposes) and just check if we should quit. This also ensures we'll notice the request to quit within 1s if quit is signalled but there is not an udpate. (I'm not sure if this happens or not)
2018-06-18sync.hh: return cv_status instead of dropping it, in case useful.Will Dietz
2018-06-18release-common: prefer utillinuxMinimal to reduce compile-time depsWill Dietz
Honestly could probably use busybox here instead, but at least with utillinuxMinimal there's no build-time dependency on systemd.
2018-06-18Detect redirect loopsEelco Dolstra
Fixes #2225.