Skip to content

Distro packaging is hard because of downloads during build #348

@nikstur

Description

@nikstur

I'm currently trying to package this for Nixpkgs/NixOS and it's proving to be quite difficult.

Mostly because the tool tries to dynamically download quite a few things during build time. Most other distros will have a similarly hard time packaging this because almost all Linux distros nowadays care about reproducible builds and thus disable or discourage downloading stuff at build time.

There's three instances where files are expected to be download:

  1. node_extra_ca_certs_mozilla_bundle: which implicitly downloads file at installation (which seems troublesome for other reasons)
  2. retrieve-hsts.js
  3. retrieve-tld-list.js

I think the solution to this is to download these files during the normal operation of the tool, store them in a user config location e.g. ~/.config and occasionally refresh them.

I think this tool is really cool and I wish I could package it for Nixpkgs to make it easily available to a broader audience.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions