aboutsummaryrefslogtreecommitdiff
path: root/src/nix
AgeCommit message (Collapse)Author
2019-05-15Merge remote-tracking branch 'origin/master' into flakesEelco Dolstra
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-11nix dev-shell: Ignore SSL_CERT_FILEEelco Dolstra
2019-05-08nix dev-shell: Keep $TERMEelco Dolstra
2019-05-08Merge remote-tracking branch 'origin/master' into flakesEelco Dolstra
2019-05-08Merge remote-tracking branch 'tweag/nix-shell' into flakesEelco Dolstra
2019-05-07Fixed Flake data type and flake fetchingNick Van den Broeck
2019-05-02nix dev-shell: Less purityEelco Dolstra
2019-05-02Move createTempFile to libutilEelco Dolstra
2019-05-02nix dev-shell: Execute shellHookEelco Dolstra
2019-05-02nix dev-shell: Use 'provides.devShell' by defaultEelco Dolstra
Thus $ nix dev-shell will now build the 'provides.devShell' attribute from the flake in the current directory. If it doesn't exist, it falls back to 'provides.defaultPackage'.
2019-05-02Add 'nix dev-shell' and 'nix print-dev-env' commandEelco Dolstra
'nix dev-shell' is intended to replace nix-shell. It supports flakes, e.g. $ nix dev-shell nixpkgs:hello starts a bash shell providing an environment for building 'hello'. Like Lorri (and unlike nix-shell), it computes the build environment by building a modified top-level derivation that writes the environment after running $stdenv/setup to $out and exits. This provides some caching, so it's faster than nix-shell in some cases (especially for packages with lots of dependencies, where the setup script takes a long time). There also is a command 'nix print-dev-env' that prints out shell code for setting up the build environment in an existing shell, e.g. $ . <(nix print-dev-env nixpkgs:hello) https://github.com/tweag/nix/issues/21
2019-04-30Merge remote-tracking branch 'tweag/flakeFlags' into flakesEelco Dolstra
2019-04-30Fixed issue #13Nick Van den Broeck
2019-04-30Fix flag registry orderNick Van den Broeck
2019-04-25Fix printing FlakeListNick Van den Broeck
2019-04-24Merge remote-tracking branch 'tweag/flake-clone' into flakesEelco Dolstra
2019-04-19Use "." as the default installableEelco Dolstra
This makes e.g. "nix build" do something more or less reasonable (namely, build the default package of the flake in the current directory).
2019-04-19Merge remote-tracking branch 'tweag/resolvedFlake' into flakesEelco Dolstra
2019-04-19Shut up clang warningEelco Dolstra
2019-04-19Changed some namesNick Van den Broeck
2019-04-19nix flake info: Show revcountEelco Dolstra
2019-04-19Improve missing flake.nix error messageEelco Dolstra
2019-04-17Add command `flake clone`Nick Van den Broeck
2019-04-16Improve 'nix flake info' a bitEelco Dolstra
Example: $ nix flake info dwarffs ID: dwarffs URI: github:edolstra/dwarffs/a83d182fe3fe528ed6366a5cec3458bcb1a5f6e1 Description: A filesystem that fetches DWARF debug info from the Internet on demand Revision: a83d182fe3fe528ed6366a5cec3458bcb1a5f6e1 Path: /nix/store/grgd14kxxk8q4n503j87mpz48gcqpqw7-source
2019-04-16Fix lock file generationEelco Dolstra
Before: "requires": { "nixpkgs": { "uri": "nixpkgs" } }, After: "requires": { "nixpkgs": { "uri": "github:edolstra/nixpkgs/f10e8a02eb7fa2b4a070f30cf87f4efcc7f3186d" } },
2019-04-16Remove unneeded pureEval flagsEelco Dolstra
2019-04-16Update lock files from InstallableFlake::toValue()Eelco Dolstra
This ensures that the lock file is updated *before* evaluating it, and that it gets updated for any nix command, not just 'nix build'. Also, while computing the lock file, allow arbitrary registry lookups, not just at top-level. Also, improve some error messages slightly.
2019-04-16Improve incremental buildEelco Dolstra
2019-04-16Fix makeFlakeValue()Eelco Dolstra
2019-04-16Add FIXME for pureEvalEelco Dolstra
2019-04-16Fixed flake pin issuesNick Van den Broeck
2019-04-15Move --impure to MixEvalArgsEelco Dolstra
2019-04-15Merge remote-tracking branch 'tweag/automatedUpdate' into flakesEelco Dolstra
2019-04-11Automated lockfile updating with `nix build`Nick Van den Broeck
2019-04-11FlakeRegistry = FlakeRef -> FlakeRefNick Van den Broeck
2019-04-09FlakeAlias is implementedNick Van den Broeck
2019-04-09Fixed dependency resolutionNick Van den Broeck
2019-04-09FlakeIds are now properly looked up in registriesNick Van den Broeck
2019-04-09Added nonFlakeRequires and the command `nix flake deps`Nick Van den Broeck
2019-04-08WhitespaceEelco Dolstra
2019-04-08Allow relative paths in flakerefsEelco Dolstra
Also allow "." as an installable to refer to the flake in the current directory. E.g. $ nix build . will build 'provides.defaultPackage' in the flake in the current directory.
2019-04-08Move flake template into a separate fileEelco Dolstra
2019-04-08Add "nix flake init" command for creating a flakeEelco Dolstra
2019-04-08nix: Add --impure as a shorter alias of --no-pure-evalEelco Dolstra
2019-04-08nix: Support nixpkgs.<attrpath> for compatibilityEelco Dolstra
2019-04-08nix: Make -f work for compatibilityEelco Dolstra
2019-04-08nix: New installables syntaxEelco Dolstra
The general syntax for an installable is now <flakeref>:<attrpath>. The attrpath is relative to the flake's 'provides.packages' or 'provides' if the former doesn't yield a result. E.g. $ nix build nixpkgs:hello is equivalent to $ nix build nixpkgs:packages.hello Also, '<flakeref>:' can be omitted, in which case it defaults to 'nixpkgs', e.g. $ nix build hello
2019-03-27Merge remote-tracking branch 'tweag/flake-registries' into flakesEelco Dolstra