aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-06-20Nix uses the CPP SDK, not JavaBruno Bieth
2019-06-17Merge pull request #2878 from NixOS/run-in-ptsEelco Dolstra
Run builds in a pseudo-terminal
2019-06-17Merge pull request #2746 from bjornfor/install-multi-user-defaultsEelco Dolstra
install-multi-user: reduce max-jobs from 32 to 1
2019-06-17Another attempt at getting pseudoterminals to work on macOSEelco Dolstra
2019-06-16Hopefully fix macOS testsEelco Dolstra
2019-06-16Set $TERMEelco Dolstra
2019-06-16Run builds in a pseudo-terminalEelco Dolstra
This allows many programs (e.g. gcc, clang, cmake) to print colorized log output (assuming $TERM is set to a value like "xterm"). There are other ways to get colors, in particular setting CLICOLOR_FORCE, but they're less widely supported and can break programs that parse tool output.
2019-06-16Style fixEelco Dolstra
2019-06-15nix: Add -L alias for --print-build-logsEelco Dolstra
2019-06-15Fix test failures when $TMPDIR changesEelco Dolstra
(cherry picked from commit c38c726eb5d447c7e9d894d57cd05ac46c173ddd)
2019-06-15nix: Support -j flagEelco Dolstra
2019-06-15Merge pull request #2931 from NinjaTrappeur/nin-add-warning-setting-untrustedGraham Christensen
Daemon: warn when an untrusted user cannot override a setting
2019-06-15Daemon: warn when an untrusted user cannot override a settingFélix Baylac-Jacqué
In a daemon-based Nix setup, some options cannot be overridden by a client unless the client's user is considered trusted. Currently, if an untrusted user tries to override one of those options, we are silently ignoring it. This can be pretty confusing in certain situations. e.g. a user thinks he disabled the sandbox when in reality he did not. We are now sending a warning message letting know the user some options have been ignored. Related to #1761.
2019-06-04Merge pull request #2918 from JorisE/patch-1Eelco Dolstra
Minor typo
2019-06-04Minor typoJorisE
2019-06-01Fix segfault in builtin fetchurl with hashed mirrors + SRI hashesEelco Dolstra
2019-06-01Merge pull request #2910 from worldofpeace/fundingEelco Dolstra
Add .github/FUNDING.yml
2019-05-31Add .github/FUNDING.ymlworldofpeace
2019-05-31Merge pull request #2905 from ln-nl/patch-1Eelco Dolstra
release-common: fix build with `config.allowAliases = false`
2019-05-30release-common: fix build with `config.allowAliases = false`ln-nl
```sh > nix build -f release.nix build.x86_64-linux error: undefined variable 'docbook5_xsl' at /vcs/nix/release-common.nix:45:7 ```
2019-05-30Merge pull request #2892 from johannes-climacus/masterEelco Dolstra
Replace `type` with `command -v` in install script
2019-05-29Replace `type` with `command -v` in install scriptJohannes Climacus
In POSIX sh, `type` is undefined. cf. https://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html#tag_20_22_04
2019-05-29Enable more fromTOML testsEelco Dolstra
cpptoml now parses almost all examples from the spec.
2019-05-29Fix eval-okay-fromTOML testEelco Dolstra
Turns out we were mis-parsing single-quoted attributes, e.g. 'key2'.
2019-05-29bump cpptoml to v0.1.1Ding Xiang Fei
2019-05-28Iterate over referencesEelco Dolstra
2019-05-28Merge branch 'attrPaths' of https://github.com/NinjaTrappeur/nixEelco Dolstra
2019-05-22Merge pull request #2880 from Ma27/document-optional-attrs-with-at-patternEelco Dolstra
doc: clarify that optional attrs in a function argument will be ignored unless specified
2019-05-21doc: clarify that optional attrs in a function argument will be ignored ↵Maximilian Bosch
unless specified In `args@{ a ? 1 }: /* ... */` the value `a` won't be a part of `args` unless it's specified when calling the function, the default value will be ignored in this case. My personal point of view is that this behavior is a matter of taste, at least I was pretty sure that unmatched arguments will be a part of `args@` while debugging some Nix code last week. I decided to add a warning to the docs which hopefully reduces the confusion of further Nix developers who thought the same about `args@`.
2019-05-21Merge pull request #2800 from flokli/progress-bar-hide-unknown-expectedEelco Dolstra
progress-bar: hide expected if expected is 0 (unknown)
2019-05-21Merge pull request #2812 from matthewbauer/fix-nix-scriptsEelco Dolstra
Sync NIX_PROFILES between single-user and multi-user modes
2019-05-17fetchGit -> fetchTarballEelco Dolstra
(cherry picked from commit cbfdea685764bf66443a999e672656c54289b8c9)
2019-05-17docs: describe $IN_NIX_SHELL values (#2796)Vladimír Čunát
See commit 1bffd83e1a9
2019-05-15Don’t set NIX_REMOTE=daemon in daemon profileMatthew Bauer
This is now autodetected. There is no need to put it in the profile.
2019-05-15Sync NIX_PROFILES between single-user and multi-user modesMatthew Bauer
When we are in single user mode, we still want to have access to profiles. This way things in Nixpkgs that rely on them getting set accurately are done in both cases. The point where I hit this is with using aspell which looks in NIX_PROFILES: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/aspell/default.nix Before this patch, NIX_PROFILES was never set in single user mode! This corrects that.
2019-05-15Merge pull request #2810 from NixOS/print-build-logsEelco Dolstra
nix: Add --print-build-logs flag
2019-05-15nix: Add --print-build-logs flagEelco Dolstra
This causes 'nix' to print build log output to stderr rather than showing the last log line in the progress bar. Log lines are prefixed by the name of the derivation (minus the version string), e.g. binutils> make[1]: Leaving directory '/build/binutils-2.31.1' binutils-wrapper> unpacking sources binutils-wrapper> patching sources ... binutils-wrapper> Using dynamic linker: '/nix/store/kr51dlsj9v5cr4n8700jliyz8v5b2q7q-bootstrap-stage0-glibc/lib/ld-linux-x86-64.so.2' bootstrap-stage2-gcc-wrapper> unpacking sources ... linux-headers> unpacking sources linux-headers> unpacking source archive /nix/store/8javli69jhj3bkql2c35gsj5vl91p382-linux-4.19.16.tar.xz
2019-05-15nix-profile: Add all channels to $NIX_PATHEelco Dolstra
Fixes #2709.
2019-05-15Fix shellcheck errorEelco Dolstra
https://hydra.nixos.org/build/93359951
2019-05-13Merge pull request #2802 from LnL7/fix-needs-hashrewriteEelco Dolstra
build: move needsHashRewrite initialization to startBuilder
2019-05-12Merge pull request #2798 from grahamc/diff-hookEelco Dolstra
build: run diff-hook under --check and document diff-hook
2019-05-12runProgram: Uncomment chdir supportGraham Christensen
2019-05-12build: make needsHashRewrite a methodDaiderd Jordan
2019-05-12handleDiffHook: stop passing allowVforkGraham Christensen
2019-05-12Clarify where output from the diff hook goes.Graham Christensen
2019-05-12runProgram: support gid, uid, chdirGraham Christensen
2019-05-12chdir, setgroupsGraham Christensen
2019-05-12diff hook: execute as the build user, and pass the temp dirGraham Christensen
2019-05-12build: run diff-hook under --check and document diff-hookGraham Christensen
2019-05-12build: add test for sandboxed --checkDaiderd Jordan