- See https://nix.dev/manual/nix/2.19/command-ref/new-cli/nix3-profile-install#examples and
- https://www.reddit.com/r/NixOS/comments/15ke4tk/comment/jv4w235/ and i. e.
- https://lazamar.co.uk/nix-versions/?channel=nixpkgs-unstable&package=hledger-iadd
Given at lazamar is:
nix-env -iA haskellPackages.hledger-iadd_1_3_16 -f https://github.com/NixOS/nixpkgs/archive/d1c3fea7ecbed758168787fe4e4a3157e52bc808.tar.gz
which translates to (I have flake-registry set, see example):
nix profile install nixpkgs/d1c3fea7ecbed758168787fe4e4a3157e52bc808#haskellPackages.hledger-iadd
# theoretically this also should work:
# nix profile install nixpkgs/d1c3fea7ecbed758168787fe4e4a3157e52bc808#haskellPackages.hledger-iadd_1_3_16