aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2019-05-08Export missing rev/shortRev attributesEelco 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-07Fixed Flake data type and flake fetchingNick Van den Broeck
2019-05-03Fix 'git add' when subdir is emptyEelco Dolstra
2019-05-03Merge remote-tracking branch 'tweag/subdir' into flakesEelco Dolstra
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-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-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-25Merge remote-tracking branch 'tweag/fixFlakeList' into flakesEelco Dolstra
2019-04-25Fix printing FlakeListNick Van den Broeck
2019-04-25Fixed lookupFlake bugNick 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-19nlohmann-json: 3.5.0 -> 3.6.1Eelco Dolstra
https://github.com/nlohmann/json/releases/tag/v3.6.1 This fixes some clang warnings.
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-19fetchGit: Return revCount for dirty working treesEelco Dolstra
2019-04-19exportGit: Don't clone local repositoriesEelco Dolstra
This ensures that commands like 'nix flake info /my/nixpkgs' don't copy a gigabyte of crap to ~/.cache/nix. Fixes #60.
2019-04-19Improve missing flake.nix error messageEelco Dolstra
2019-04-19Clean up exportGit argument handlingEelco Dolstra
2019-04-19Fix assertion failure in FlakeRef::to_string()Eelco Dolstra
2019-04-19Fix assertion failureEelco Dolstra
2019-04-17Fix mutability checkEelco Dolstra
2019-04-17Add command `flake clone`Nick Van den Broeck
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-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-16updateLockFile(): Make sure Git can see flake.lockEelco Dolstra
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-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-16Improve incremental buildEelco Dolstra
2019-04-16Remove dead functionEelco Dolstra
2019-04-16Fix makeFlakeValue()Eelco Dolstra
2019-04-16Add FIXME for pureEvalEelco Dolstra