   @doc """
   Get the artifact name
 
-  Requires the package and toolchain package to be supplied
+  Requires the package and toolchain package to be supplied.
   """
   @spec name(Nerves.Package.t, Nerves.Package.t) :: String.t
   def name(pkg, toolchain) do


    File.write!(opts[:checksum_path], archive_checksum(archive_path))
  end

  def archive_checksum(archive_path) do
    archive = File.read!(archive_path)
    :crypto.hash(:sha256, archive)

  end

  @doc """
  Determine the environment variable which would be set to override the path.
  """
  @spec env_var(Nerves.Package.t) :: String.t
  def env_var(pkg) do
