Take pkgs as a parameter not the location to nixpkgs