aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-05-09Update flake.lockEelco Dolstra
2019-05-09Merge remote-tracking branch 'tweag/content-hashes' into flakesEelco Dolstra
2019-05-09Fixed issue #47Nick Van den Broeck
Content hashes
2019-05-08Add patchelf to the flake registryEelco Dolstra
2019-05-08Fix assertion failure in FlakeRef::to_string()Eelco Dolstra
Fixes $ nix build nix: src/libexpr/primops/flakeref.cc:169: std::__cxx11::string nix::FlakeRef::to_string() const: Assertion `!rev' failed. Aborted e.g. when flake.nix doesn't exist. Also use gitRev().
2019-05-08Add newline at end of lockfileEelco Dolstra
Suggested by @grahamc.
2019-05-08nix dev-shell: Keep $TERMEelco Dolstra
2019-05-08Merge remote-tracking branch 'origin/master' into flakesEelco Dolstra
2019-05-08nix-shell: Don't absolutize '-p' expressionsEelco Dolstra
This prevents spurious syscalls like 25011 lstat("/home/eelco/with import <nixpkgs> { }; (pkgs.runCommandCC or pkgs.runCommand) \"shell\" { buildInputs = [ (hello) ]; } \"\"", 0x7ffe9c67f580) = -1 ENOENT (No such file or directory)
2019-05-08nix-shell: Don't fail if run from a path containing the string "nix-shell"Eelco Dolstra
2019-05-08Merge remote-tracking branch 'tweag/flake-test' into flakesEelco Dolstra
2019-05-08Merge remote-tracking branch 'tweag/nix-shell' into flakesEelco Dolstra
2019-05-08Export missing rev/shortRev attributesEelco Dolstra
2019-05-08Add Hydra flake to the registryEelco Dolstra
2019-05-08updateLockFile: Do "git add" in a slightly nicer wayEelco Dolstra
"--intent-to-add" ensures the change shows up in "git diff".
2019-05-08Merge pull request #2594 from LnL7/darwin-10.12.6Graham Christensen
installer: update macOS version check to 10.12.2
2019-05-08Merge pull request #2765 from nh2/manual-nixpkgs-wordEelco Dolstra
manual: "Nix Package collection" -> "Nixpkgs package collection".
2019-05-08Merge branch 'repl/ctrlc' of https://github.com/xbreak/nixEelco Dolstra
2019-05-08Merge pull request #2790 from samueldr/fix/minor-comment-NIX_ROOT_FINDEREelco Dolstra
findRootsNoTemp: fixes comment about findRuntimeRoots
2019-05-08fix hashfile test that wasn't failing due to eval lazinessWill Dietz
See: https://github.com/NixOS/nix/commit/7becb1bf1c2ec1544a5374580a97b36273506baf#r33450554
2019-05-07Add basic flake testsEelco Dolstra
2019-05-07Fix immutable flakeref constructionEelco Dolstra
We were appending ref/revs incorrectly for the IsGit case (by appending /<ref>/<rev> rather than ?ref=<ref>&rev=<rev).
2019-05-07Improve FlakeRef::to_string()Eelco Dolstra
We were incorrectly using path syntax (i.e. /<ref>/<rev>) for Git repositories. This is only valid for GitHub flakerefs.
2019-05-07Make the URL/path of the global flake registry configurableEelco Dolstra
2019-05-07Fix test failures when $TMPDIR changesEelco Dolstra
2019-05-07Merge remote-tracking branch 'tweag/fixGetFlake' into flakesEelco Dolstra
2019-05-07Merge pull request #2792 from JohnAZoidberg/builtins-hash-fileEelco Dolstra
Add builtins.hashFile
2019-05-07Fixed Flake data type and flake fetchingNick Van den Broeck
2019-05-03Add builtins.hashFileDaniel Schaefer
For text files it is possible to do it like so: `builtins.hashString "sha256" (builtins.readFile /tmp/a)` but that doesn't work for binary files. With builtins.hashFile any kind of file can be conveniently hashed.
2019-05-03Fix 'git add' when subdir is emptyEelco Dolstra
2019-05-03Merge remote-tracking branch 'tweag/subdir' into flakesEelco Dolstra
2019-05-03Merge remote-tracking branch 'tweag/fuzzyMatching' into flakesEelco Dolstra
2019-05-03Fix "Bad system call" running i686-linux binaries on x86_64-linuxEelco Dolstra
To determine which seccomp filters to install, we were incorrectly using settings.thisSystem, which doesn't denote the actual system when --system is used. Fixes #2791.
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 function for quoting stringsEelco Dolstra
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-05-02Fixed compile errorsNick Van den Broeck
2019-05-01Allow 'dir' parameter in github: URIsEelco Dolstra
E.g. 'github:edolstra/dwarffs/flake?dir=foo/bar'.
2019-05-01Accept empty directoriesEelco Dolstra
2019-05-01Validate 'dir=' parametersEelco Dolstra
We reject any path element starting with a '.' (mostly to reject '.' and '..').
2019-05-01Improve error messageEelco Dolstra
2019-05-01flake.lock now uses flakeRef.subdirNick Van den Broeck
2019-05-01Merge pull request #2679 from bjornfor/offline-installEelco Dolstra
install script: don't abort when "nix-channel --update" fails
2019-05-01Support 'dir' parameters in https and ssh flake URIsEelco Dolstra
2019-05-01FuzzymatchingNick Van den Broeck
Fixed issue #61
2019-05-01WIP: still need to adapt flakeref parsingNick Van den Broeck
2019-04-30findRootsNoTemp: fixes comment about findRuntimeRootsSamuel Dionne-Riel
The NIX_ROOT_FINDER environment variable was removed in 3c46fe62b833a4e66845665edc99555022d3d98c when porting from perl to C.