Skip to content

Commit

Permalink
Merge pull request #119 from Mic92/docs
Browse files Browse the repository at this point in the history
README: mention flake and --version=branch option
  • Loading branch information
figsoda authored Dec 15, 2022
2 parents bb901a3 + 4839d9c commit 018cd5f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,16 @@ nixpkgs or your own repository). Than run `nix-update` as follows
$ nix-update attribute [--version version]
```

If your package is defined in a flake use the `--flake` flag instead:

```console
$ nix-update attribute --flake [--version version]
```

`nix-update` will than try to update either the
`packages.{currentSystem}.{attribute}` or `{attribute}` output attribute of the
given flake.

This example will fetch the latest github release:

```console
Expand All @@ -88,6 +98,8 @@ To only update sources hashes without updating the version:
$ nix-update --version=skip nixpkgs-review
```

Setting `--version` to `branch` instead, will look for the latest commit.

To extract version information from versions with prefixes or suffixes,
a regex can be used

Expand Down

0 comments on commit 018cd5f

Please sign in to comment.