Skip to content

Instantly share code, notes, and snippets.

@colemickens
Forked from BenSchZA/attribute-import.nix
Created July 27, 2020 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colemickens/d67aac818fc405d37bc50fa879e50e45 to your computer and use it in GitHub Desktop.
Save colemickens/d67aac818fc405d37bc50fa879e50e45 to your computer and use it in GitHub Desktop.
Import attributes from Nix derivation
let
default = import ./default.nix {};
pkgs = default.pkgs;
python = default.python;
pythonPackages = default.pythonPackages;
in with default; {
# now pkgs, python, pythonPackages are just available.
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment