Created
April 3, 2018 12:33
-
-
Save grahamc/55a9d8433a80476a6f453176679944aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ nix-channel --list | |
nixos https://nixos.org/channels/nixpkgs-unstable | |
nixpkgs https://nixos.org/channels/nixpkgs-unstable | |
nixpkgsunstable https://nixos.org/channels/nixpkgs-unstable | |
$ nix build -f /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs git | |
$ ls -la result | |
lrwxrwxrwx 1 grahamc users 54 Apr 3 08:31 result -> /nix/store/g1jqxcqiswca72yr8mcj8lbd0w9fz6zh-git-2.16.2 | |
$ rm result | |
$ nix build nixpkgs.git | |
$ ls -la result | |
lrwxrwxrwx 1 grahamc users 54 Apr 3 08:32 result -> /nix/store/jaani1kx4a4kvz11d0myfkjjiiklfl7w-git-2.16.2 | |
$ rm result | |
$ nix build -f '<nixpkgsunstable>' git | |
$ ls -la result | |
lrwxrwxrwx 1 grahamc users 54 Apr 3 08:32 result -> /nix/store/jaani1kx4a4kvz11d0myfkjjiiklfl7w-git-2.16.2 | |
$ NIX_PATH=/home/grahamc/.nix-defexpr/channels nix build nixpkgs.git | |
error: attribute 'nixpkgs' in selection path 'nixpkgs.git' not found | |
$ NIX_PATH=/home/grahamc/.nix-defexpr/channels nix build -f '<nixpkgs>' git | |
$ ls -la result | |
lrwxrwxrwx 1 grahamc users 54 Apr 3 08:32 result -> /nix/store/jaani1kx4a4kvz11d0myfkjjiiklfl7w-git-2.16.2 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment