Skip to content

Include dependency from GitHub #8

Description

@Burtannia

Hey, I'm relatively new to nix and hix, I've been trying to include a library from GitHub but so far haven't managed to get it working.

I'd like to do something like the following:

{
  description = "A Haskell project";
  
  inputs = {
    hix.url = "github:tek/hix?ref=0.7.1";
    sem-log.url = "github:Functional-Core/sem-log";
  };

  outputs = {hix, sem-log, ...}: hix.lib.flake {
    overrides = { hackage, unbreak, notest, jailbreak, source, ... }: {
      polysemy-test = unbreak jailbreak;
      polysemy-conc = jailbreak;
      polysemy-log = jailbreak;
      servant-auth-server = unbreak;
      sem-log = sem-log;
    };
...

I've read through the Hix documentation and couldn't find any reference to GitHub deps, only to hackage and source.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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