Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-06-03 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2019-06-01 | Fix segfault in builtin fetchurl with hashed mirrors + SRI hashes | Eelco Dolstra | |
2019-05-31 | Doh | Eelco Dolstra | |
2019-05-31 | Fix handling of bare flakerefs containing a colon | Eelco Dolstra | |
2019-05-31 | Automatically determine subdir for path flakes | Eelco Dolstra | |
This means that in a flake in a subdirectory of a Git repo, you can now do $ nix build rather than the inconvenient $ nix build ../..?dir=foo/bar | |||
2019-05-31 | Allow bare flakerefs as installables | Eelco Dolstra | |
So now $ nix build blender-bin works and builds the default package from that flake. You don't need to add a colon at the end anymore. | |||
2019-05-31 | Fix reading the lockfile of a flake in a subdirectory | Eelco Dolstra | |
2019-05-31 | Add operator << for LockFile | Eelco Dolstra | |
Useful for debugging. | |||
2019-05-31 | Support 'dir' and other parameters in path flakerefs | Eelco Dolstra | |
2019-05-31 | Show hash mismatch warnings in SRI format | Eelco Dolstra | |
2019-05-31 | Rename requires -> inputs, provides -> outputs | Eelco Dolstra | |
Issue #2828. | |||
2019-05-29 | nix flake info --json: List the "provides" | Eelco Dolstra | |
It also lists the contents of "checks" and "packages". For example: $ nix flake info --json | jq { "branch": "HEAD", "description": "The purely functional package manager", "epoch": 2019, "id": "nix", "lastModified": 1559161142, "path": "/nix/store/2w2qla8735dbxah8gai8r1nsbf5x4f5d-source", "provides": { "checks": { "binaryTarball": {}, "nix-copy-closure": {}, "perlBindings": {}, "remoteBuilds": {}, "setuid": {} }, "defaultPackage": {}, "devShell": {}, "hydraJobs": {}, "packages": { "nix": {}, "nix-perl-bindings": {} } }, "revCount": 6955, "revision": "8cb24e04e8b6cc60e2504733afe78e0eadafcd98", "uri": "/home/eelco/Dev/nix" } Fixes #2820. | |||
2019-05-29 | Hack: Use legacyPackages from Nixpkgs | Eelco Dolstra | |
Nixpkgs doesn't provide a clean "packages" set yet, so until that's the case, look for packages in "legacyPackages" as well. | |||
2019-05-29 | nix flake check: Use read-only mode if we're not building | Eelco Dolstra | |
2019-05-29 | nix flake check: Check defaultPackage, devShell and packages | Eelco Dolstra | |
2019-05-29 | Add 'nix flake check' command | Eelco Dolstra | |
This evaluates all the 'provides' of a flake and builds the 'check' attributes. | |||
2019-05-29 | Remove makeFlakeValue() | Eelco Dolstra | |
2019-05-29 | Put flake-related stuff in its own namespace | Eelco Dolstra | |
2019-05-29 | Make unsupported flake attributes a fatal error | Eelco Dolstra | |
2019-05-29 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2019-05-29 | bump cpptoml to v0.1.1 | Ding Xiang Fei | |
2019-05-29 | Get last commit time of github flakes | Eelco Dolstra | |
2019-05-29 | Add date of last commit to SourceInfo | Eelco Dolstra | |
This is primarily useful for version string generation, where we need a monotonically increasing number. The revcount is the preferred thing to use, but isn't available for GitHub flakes (since it requires fetching the entire history). The last commit timestamp OTOH can be extracted from GitHub tarballs. | |||
2019-05-28 | Iterate over references | Eelco Dolstra | |
2019-05-28 | Merge branch 'attrPaths' of https://github.com/NinjaTrappeur/nix | Eelco Dolstra | |
2019-05-28 | nix flake info: Add missing newline | Eelco Dolstra | |
2019-05-28 | printFlakeInfo: Separate JSON output | Eelco Dolstra | |
2019-05-28 | callFlake(): Emit source info attributes for non-flake dependencies | Eelco Dolstra | |
2019-05-28 | nix flake deps: Remove --json flag for now | Eelco Dolstra | |
It doesn't produce valid JSON at the moment (but a concatenation of JSON objects). Anyway we probably should merge this command info 'nix flake info'. | |||
2019-05-28 | printFlakeInfo/printNonFlakeInfo: Factor out commonality | Eelco Dolstra | |
2019-05-28 | nix flake info/deps: Stop progress bar before printing output | Eelco Dolstra | |
2019-05-28 | Remove redundant resolvedRef fields since they're already in SourceInfo | Eelco Dolstra | |
2019-05-28 | Rename contentHash -> narHash for consistency | Eelco Dolstra | |
2019-05-28 | Move hash into SourceInfo and rename to narHash to avoid ambiguity | Eelco Dolstra | |
2019-05-28 | Store SourceInfo in Flake and NonFlake | Eelco Dolstra | |
This deduplicates some shared fields. Factoring out the commonality is useful in places like makeFlakeValue(). | |||
2019-05-28 | Merge branch 'nonFlakeRequiresTest' of https://github.com/CSVdB/nix into flakes | Eelco Dolstra | |
2019-05-28 | Added nonFlakeRequires test | Nick Van den Broeck | |
Fixes #2888 | |||
2019-05-28 | Fixed relative path parsing | Nick Van den Broeck | |
Fixed #2821 | |||
2019-05-23 | Register flake source trees as GC roots | Eelco Dolstra | |
This ensures that flakes don't get garbage-collected, which is important to get nix-channel-like behaviour. For example, running $ nix build hydra: will create a GC root ~/.cache/nix/flake-closures/hydra -> /nix/store/xarfiqcwa4w8r4qpz1a769xxs8c3phgn-flake-closure where the contents/references of the linked file in the store are the flake source trees used by the 'hydra' flake: /nix/store/n6d5f5lkpfjbmkyby0nlg8y1wbkmbc7i-source /nix/store/vbkg4zy1qd29fnhflsv9k2j9jnbqd5m2-source /nix/store/z46xni7d47s5wk694359mq9ay353ar94-source Note that this in itself is not enough to allow offline use; the fetcher for the flakeref (e.g. fetchGit or downloadCached) must not fail if it cannot fetch the latest version of the file, so long as it knows a cached version. Issue #2868. | |||
2019-05-23 | FlakeRef::to_string(): Check round trip | Eelco Dolstra | |
2019-05-23 | fetchGit: Don't barf if we can't update our Git clone | Eelco Dolstra | |
Instead print a warning that we're continuing with the most recently fetched version. | |||
2019-05-22 | Prevent the global registry from being GC'ed | Eelco Dolstra | |
Issue #2868. | |||
2019-05-22 | Refactor downloadCached() interface | Eelco Dolstra | |
2019-05-22 | Fetch the flake registry from the NixOS/flake-registry repo | Eelco Dolstra | |
2019-05-22 | Check the flake epoch | Eelco Dolstra | |
Closes #2883. | |||
2019-05-22 | nix flake deps: Print flake dependencies | Eelco Dolstra | |
2019-05-22 | Move flake-related flags into a separate class | Eelco Dolstra | |
Also, rename --dont-save-lock-file to --no-save-lock-file and change noRegistries to useRegistries. | |||
2019-05-22 | Improve FlakeCommand | Eelco Dolstra | |
It now handles commonality like calling getFlake() and resolving relative local flake refs. Fixes #2822. | |||
2019-05-21 | Use warn(), tweak messages | Eelco Dolstra | |
2019-05-21 | Only rewrite the lockfile if it changed | Eelco Dolstra | |
This removes spurious warnings about failure to write the lockfile. |