aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr
AgeCommit message (Collapse)Author
2019-04-19Fix assertion failureEelco Dolstra
2019-04-17Fix mutability checkEelco Dolstra
2019-04-16Pass a flake to itself as "self"Eelco Dolstra
2019-04-16Allow refs to start with a digitEelco Dolstra
E.g. we want to accept "19.03" as a ref.
2019-04-16Use the lock fileEelco Dolstra
2019-04-16Fix lock file generationEelco Dolstra
Before: "requires": { "nixpkgs": { "uri": "nixpkgs" } }, After: "requires": { "nixpkgs": { "uri": "github:edolstra/nixpkgs/f10e8a02eb7fa2b4a070f30cf87f4efcc7f3186d" } },
2019-04-16updateLockFile(): Make sure Git can see flake.lockEelco 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-16Pass stuff by referenceEelco Dolstra
2019-04-16writeLockFile(): Emit empty objects rather than nullEelco Dolstra
2019-04-16getFlake(): Use impureIsAllowedEelco Dolstra
This fixes 'nix build nixpkgs:hello' without --impure.
2019-04-16Remove dead functionEelco Dolstra
2019-04-16Fix makeFlakeValue()Eelco Dolstra
2019-04-16Merge remote-tracking branch 'tweag/privateGithub' into flakesEelco Dolstra
2019-04-16Fixed flake pin issuesNick Van den Broeck
2019-04-16Added support for private github repositoriesNick Van den Broeck
2019-04-15FlakeRef::to_string(): Drop the "flake:" prefixEelco Dolstra
This is unnecessary in most contexts and makes 'nix flake list' output less readable.
2019-04-15Slight cleanupEelco Dolstra
2019-04-15getFlakeRegistries(): Return registries regardless of pureEvalEelco Dolstra
This makes e.g. 'nix flake list' work.
2019-04-15Move --impure to MixEvalArgsEelco Dolstra
2019-04-11FlakeRegistry = FlakeRef -> FlakeRefNick Van den Broeck
2019-04-09FlakeAlias is implementedNick Van den Broeck
2019-04-09Took ref and rev out of FlakeRefNick 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-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-08nix: Add --impure as a shorter alias of --no-pure-evalEelco Dolstra
2019-04-08Add path flakeref variantEelco Dolstra
Unlike file://<path>, this allows the path to be a dirty Git tree, so nix build /path/to/flake:attr is a convenient way to test building a local flake.
2019-04-08Merge remote-tracking branch 'origin/master' into flakesEelco 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-04-08findAlongAttrPath(): Throw AttrPathNotFoundEelco Dolstra
2019-03-27Fix Bison 3.3 warningEelco Dolstra
2019-03-27Merge remote-tracking branch 'tweag/flake-registries' into flakesEelco Dolstra
2019-03-26nix flake add: Handle ~/.config/nix not existingEelco Dolstra
Fixes $ nix flake add fnord github:edolstra/fnord error: opening file '/home/eelco/.config/nix/registry.json': No such file or directory
2019-03-26Merge remote-tracking branch 'tweag/flake-add' into flakesEelco Dolstra
2019-03-26Merge remote-tracking branch 'tweag/auto-update-flake' into flakesEelco Dolstra
2019-03-26Merge remote-tracking branch 'origin/master' into flakesEelco Dolstra
2019-03-24Add isPath primopzimbatm
this is added for completeness' sake since all the other possible `builtins.typeOf` results have a corresponding `builtins.is<Type>`
2019-03-23Combining registries properlyNick Van den Broeck
2019-03-22Issue #15 is finishedNick Van den Broeck
2019-03-22Fixed minor thingsNick Van den Broeck
2019-03-22Implemented --flake flag for nix buildNick Van den Broeck
Also fixed Eelco's PR comments
2019-03-21eval: improve type description for primops and applied primopsLinus Heckemann
This can make type errors a little easier to understand.
2019-03-14pkg-config files: Use c++17Eelco Dolstra
2019-03-14experimental/optional -> optionalEelco Dolstra
2019-03-07Implemented writeRegistryNick Van den Broeck
2019-03-07Implemented json flag for `nix flake info`Nick Van den Broeck
2019-02-26Implemented "nix flake info"Nick Van den Broeck
2019-02-25fetchFlake: Use infinite TTL when the revision is specifiedEelco Dolstra