Last active
April 16, 2018 19:32
-
-
Save fuerbringer/bc772e93769018093ebbbc194ea7ae1f to your computer and use it in GitHub Desktop.
Mixed channel NixOS derivations
This file contains hidden or 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
# Have different channels added | |
$ nix-channel --list | |
beta https://nixos.org/channels/nixos-16.09 | |
nixos https://nixos.org/channels/nixos-unstable | |
# Install derivation(s) for current user | |
$ nix-env -qaP | grep pirate-get | |
beta.python35Packages.pirate-get python3.5-pirate-get-0.2.8 | |
nixos.python35Packages.pirate-get python3.5-pirate-get-0.2.9 | |
# Install derivation(s) globally in configuration.nix | |
{ config, pkgs, ... }: | |
let | |
unstable = import <nixos-unstable> {}; | |
in { | |
environment.systemPackages = [ unstable.packagehere ]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment