I have a single file (dep-terraform.nix
) with contents of:
{ sources ? import ./nix/sources.nix
} :
let
niv = import sources.nixpkgs {
overlays = [
(_ : _ : { niv = import sources.niv {}; })
] ;
config = {};
};
pkgs = niv.pkgs;
in
pkgs.terraform.withPlugins(p: [p.google])
The above (a single package/derivation) can successfully be installed with nix-env -if dep-terraform.nix
. How can specify additional packages to be installed using the above approach (without having to create a file for each dependency)?