]> git.scottworley.com Git - pinch/summary
 
descriptionPIN CHannel, a nix-channel replacement
last changeThu, 8 Aug 2024 18:11:39 +0000 (11:11 -0700)
readme

Pinch

PIN CHannels - a simple drop-in replacement for nix-channel --update.

Example usage, being invoked on the example “channels” file included here:

$ pinch pin channels
$ pinch update channels

The first “pin” command will add these fields to the file:

 [nixos]
 channel_url = https://channels.nixos.org/nixos-20.03
 git_repo = https://github.com/NixOS/nixpkgs.git
 git_ref = nixos-20.03
+release_name = nixos-20.03beta1155.29eddfc36d7
+tarball_url = https://releases.nixos.org/nixos/20.03/nixos-20.03beta1155.29eddfc36d7/nixexprs.tar.xz
+tarball_sha256 = 9c1d182af2af64e5e8799e256a4a6dc1fed324ba06cb5f76c938dc63b64f0959
+git_revision = 29eddfc36d720dcc4822581175217543b387b1e8

 [nixos-hardware]
 git_repo = https://github.com/NixOS/nixos-hardware.git
 git_ref = master
+release_name = nixos-hardware.git-1585241157-edb7199b5c4
+git_revision = edb7199b5c4f1db34a7253d4cabf6cf690521a92

The second “update” command applies these changes to your nix channels, like nix-channel --update does.

Feature comparison

Feature nix-channel require.nix niv flakes pinch
Same version across machines - yes yes yes yes
Verifies hashes - ? yes yes yes
Fetch from git - ? yes yes yes
Fetch from git with ssh key - ? yes yes? yes
command_not_found_handle yes ? - yes yes
Verifies tarball == git repo - - - - yes
Rejects force pushes - - - - yes
Ready to use today yes - yes yes yes

See also auto-upgrade-with-pinch.

shortlog
2024-08-08 Scott WorleyREADME: Link auto-upgrade-with-pinch master
2024-06-29 Scott WorleyRelease 3.1.0 v3.1.0
2024-06-29 Scott Worleyfallback git-cache 1.4.3 -> 1.5.0 for "git_ref = tag...
2024-06-29 Scott WorleyStart on 3.1.0
2024-03-21 Scott WorleyRelease 3.0.15 v3.0.15
2024-03-21 Scott Worley.gitignore `result`
2024-03-21 Scott WorleySimplify example invocation in README
2024-02-15 Scott WorleyFix package description in setup.py
2024-02-15 Scott WorleyFix a bash-ism in test.sh, which is #!/bin/sh
2024-02-15 Scott WorleyStart on 3.0.15
2024-01-25 Scott WorleyFix changelog
2024-01-25 Scott WorleyRelease 3.0.14 v3.0.14
2024-01-25 Scott WorleyAllow identically-broken symlinks
2024-01-25 Scott WorleyAllow more specific invalid symlinks
2024-01-25 Scott WorleyStart on 3.0.14
2024-01-23 Scott WorleyUn-deprecate: This continues being useful
...
tags
4 months ago v3.1.0
8 months ago v3.0.15
9 months ago v3.0.14 Release 3.0.14
11 months ago v3.0.13
14 months ago v3.0.12
17 months ago v3.0.11
23 months ago v3.0.10
2 years ago v3.0.9
2 years ago v3.0.8
2 years ago v3.0.7
2 years ago v3.0.6
3 years ago v3.0.5
3 years ago v3.0.4
3 years ago v3.0.3
3 years ago v3.0.2
4 years ago v3.0.1 Release 3.0.1
...
heads
3 months ago master