Join Nostr
2025-02-02 08:45:28 UTC

musicmatze :rust: :nixos: on Nostr: Just my 2ct, but why can't I specify a tag in a #nix #flakes input? Not like in the ...

Just my 2ct, but why can't I specify a tag in a #nix #flakes input?

Not like in the URL tho (in my flake.nix) but rather in the lockfile? So that I can update the git dependency via `nix flake update`?
Not that I want it to update automatically, but I would like to see something like

```
$ nix flake update
# Warning: Not updating github:foo/bar from 1.0.0, available versions: 1.0.0, 1.1.0, 2.0.0
```

And then I would

`nix flake update github:foo/bar --version 2.0.0` or something like this.

Having tags in my flake.nix is tedious, because I have to think about updating it.