[Nix-dev] How to check which commit my channels are on?

Luca Bruno lethalman88 at gmail.com
Sat May 23 21:10:39 CEST 2015


https://nixos.org/wiki/FAQ#How_do_I_know_where.27s_nixpkgs_channel_located_and_at_which_commit.3F

On Sat, May 23, 2015 at 8:19 PM, Joachim Schiele <js at lastlog.de> wrote:

> On 23.05.2015 19:09, Matthias Beyer wrote:
> > Hi,
> >
> > is there a way to query which commit my channels are currently
> > pointing to? Something line `nix-channel --list --commit` or
> > something?
> >
> > If not, I think it would be great to integrate such a feature into the
> > nix-channel application!
>
> sounds like a good idea to have such a feature:
>
> what i usually do is:
> curl $(nix-channel --list | awk '{print $2}') 2>/dev/null | grep releases
> <p>The document has moved <a
> href="
> https://nixos.org/releases/nixos/unstable/nixos-15.06pre62649.f93a8ee
> ">here</a>.</p>
>
> if you want to know which channel your system generation was built on:
>
>
>
> ls -la /nix/var/nix/profiles/
> insgesamt 116
> drwxr-xr-x  4 root root 4096 23. Mai 20:16 ./
> drwxr-xr-x 11 root root 4096 23. Mai 20:15 ../
> lrwxrwxrwx  1 root root   16 23. Apr 19:52 default -> default-238-link/
> lrwxrwxrwx  1 root root   60 24. Mär 15:33 default-236-link ->
> /nix/store/jjpsn8rsbqnxx8abqxaf0qyf76l62782-user-environment/
> lrwxrwxrwx  1 root root   60 23. Apr 11:35 default-237-link ->
> /nix/store/3smabmr15im62575rgmsw4iq6767960s-user-environment/
> lrwxrwxrwx  1 root root   60 23. Apr 19:52 default-238-link ->
> /nix/store/y9fhabn78mia4jgrbqcccn8qsdamwzma-user-environment/
> drwx------  3 root root 4096 18. Apr 14:08 per-container/
> drwxrwxrwt  5 root root 4096 25. Mär 02:15 per-user/
> lrwxrwxrwx  1 root root   15 16. Mai 00:53 system -> system-383-link/
> lrwxrwxrwx  1 root root   71  8. Apr 18:04 system-362-link ->
> /nix/store/sl41xpk8i50xvsmnm3xh8rm3ifvmfsbi-nixos-15.05pre58357.a869c83/
> lrwxrwxrwx  1 root root   71 16. Apr 17:01 system-363-link ->
> /nix/store/m7bcky9226q477kfayd5ghz5s7wcc50k-nixos-15.05pre58357.a869c83/
> lrwxrwxrwx  1 root root   71 17. Apr 11:03 system-364-link ->
> /nix/store/v1ryqyhszr9j05acf1ps43hc7yqa13v5-nixos-15.05pre58357.a869c83/
> lrwxrwxrwx  1 root root   71 17. Apr 13:31 system-365-link ->
> /nix/store/r5h91qa09qvji00m9cbfib72kl5smiy1-nixos-15.05pre58357.a869c83/
> lrwxrwxrwx  1 root root   71 18. Apr 12:21 system-366-link ->
> /nix/store/m9ivqsn73a5015a4lzzfmycf4b9k3c9b-nixos-15.05pre58357.a869c83/
> lrwxrwxrwx  1 root root   71 18. Apr 16:11 system-367-link ->
> /nix/store/1c5cf71rmhf1kv3p1iacks4xl4rgyc27-nixos-15.05pre58357.a869c83/
> lrwxrwxrwx  1 root root   71 23. Apr 11:38 system-368-link ->
> /nix/store/bd3xjqm08gmfwj7486izfin9p13s757n-nixos-15.05pre58357.a869c83/
> lrwxrwxrwx  1 root root   71  4. Mai 11:25 system-369-link ->
> /nix/store/zm6czk7h814vcxka1y4k0ycfhn4rym07-nixos-15.05pre58357.a869c83/
> lrwxrwxrwx  1 root root   71  4. Mai 11:29 system-370-link ->
> /nix/store/457dx8nj8y2jjn0cyv7rwxagi9i686h3-nixos-15.05pre58357.a869c83/
> lrwxrwxrwx  1 root root   71  4. Mai 11:53 system-371-link ->
> /nix/store/5ayy7g9mp52d2b3w5nk9ab2s4yfdzha3-nixos-15.05pre58357.a869c83/
> lrwxrwxrwx  1 root root   71  4. Mai 11:55 system-372-link ->
> /nix/store/136g8mqd69rvnlv0344y24300b7wqs6m-nixos-15.05pre58357.a869c83/
> lrwxrwxrwx  1 root root   71  4. Mai 12:00 system-373-link ->
> /nix/store/ckhjydp9hw4z0ryib01zrvn00a40a7z8-nixos-15.05pre58357.a869c83/
> lrwxrwxrwx  1 root root   71  4. Mai 12:55 system-374-link ->
> /nix/store/0mbnmvqacnsga6g8pqf62jb167pwya96-nixos-15.05pre58357.a869c83/
> lrwxrwxrwx  1 root root   71  4. Mai 12:59 system-375-link ->
> /nix/store/bzivgjr8d72sqki1hp0yqvsdf5pgal2m-nixos-15.05pre58357.a869c83/
> lrwxrwxrwx  1 root root   71  4. Mai 13:03 system-376-link ->
> /nix/store/1bvrqvb3hdbq7rl6y1kh7fz5pq1rw7h6-nixos-15.05pre58357.a869c83/
> lrwxrwxrwx  1 root root   71  4. Mai 13:04 system-377-link ->
> /nix/store/w823w0h0ssha00af6izk8w6dpwr5adii-nixos-15.05pre58357.a869c83/
> lrwxrwxrwx  1 root root   71  4. Mai 13:21 system-378-link ->
> /nix/store/d58a4zicv2fi9yx6zly954y00mz3ksfd-nixos-15.05pre58357.a869c83/
> lrwxrwxrwx  1 root root   71  4. Mai 13:46 system-379-link ->
> /nix/store/mdj4qnm48bc5dfm75i07551ymrb02shd-nixos-15.05pre58357.a869c83/
> lrwxrwxrwx  1 root root   71  7. Mai 04:13 system-380-link ->
> /nix/store/zdb8kzvsq92vnwk0vl34sff2izi0dp9d-nixos-15.05pre58357.a869c83/
> lrwxrwxrwx  1 root root   71  7. Mai 04:14 system-381-link ->
> /nix/store/as5z6qpxazicajv63gli795wwrasq75a-nixos-15.05pre58357.a869c83/
> lrwxrwxrwx  1 root root   71 15. Mai 15:50 system-382-link ->
> /nix/store/41pcpxvr4bhqcdl835r3nb70j9vj5mya-nixos-15.05pre58357.a869c83/
> lrwxrwxrwx  1 root root   71 16. Mai 00:53 system-383-link ->
> /nix/store/azwwk5y69bwwiqilv21zxwvsrw5fm9kg-nixos-15.05pre58357.a869c83/
>
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>



-- 
NixOS Linux <http://nixos.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150523/2fce2128/attachment.html 


More information about the nix-dev mailing list