Skip to content

Don't hardcode the function used to fetch the source #6

@P-E-Meunier

Description

@P-E-Meunier

Currently, bundix hardcodes the way users can download sources, i.e. the produced files look like:

    source = {
      remotes = ["https://rubygems.org"];
      sha256 = "0niqzvclkb6205vdc4cx8gz2yjy5csy3w8cm15rgr1yqwigh1bqn";
      type = "gem";
    };

Which makes it hard to try and compile local versions, and possibly patch the sources, or report upstream bugs. If it were of the following form, this would be easy:

    source = fetchgem {
      remotes = ["https://rubygems.org"];
      sha256 = "0niqzvclkb6205vdc4cx8gz2yjy5csy3w8cm15rgr1yqwigh1bqn";
    };

With fetchgem a function doing exactly the same as it does today, but replaceable with fetchurl or even source = ./;.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions