Created
March 19, 2015 09:46
-
-
Save berdario/a33570d1f593c06ea328 to your computer and use it in GitHub Desktop.
packages.nix
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
# I use this both inside configuration.nix with | |
## environment.systemPackages = (import ((builtins.getEnv "PWD") + "/packages.nix" )); | |
# and on the command line with | |
## nix-env -I ~ -f packages.nix -iA | |
#with (import (builtins.getEnv "HOME" + "/.nix-defexpr/channels_root/nixos/default.nix") {}).pkgs; | |
with (import "/home/dario/.nix-defexpr/channels_root/nixos/default.nix" {}).pkgs; | |
[ | |
# software available in the nixos nix-channel | |
] ++ | |
(with (import <nixpkgs> {}); | |
[ | |
# software (or versions of them) only available in nixpkgs trunk | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment