Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nix overlay for shell #29

Closed
piq9117 opened this issue Jun 20, 2022 · 2 comments
Closed

Nix overlay for shell #29

piq9117 opened this issue Jun 20, 2022 · 2 comments

Comments

@piq9117
Copy link
Contributor

piq9117 commented Jun 20, 2022

overlays/tie.nix

self: super: {
  haskellPackages = super.haskellPackages.override {
    overrides = hself: hsuper: {
      openapi3 = hsuper.callCabal2nix "openapi3" (builtins.fetchGit {
        url = "https://github.com/alexbiehl/openapi3.git";
        rev = "4793b3c09f8c146161f7e78f8c0924bc9b0ec395";
        ref = "alex/aeson-2-support-for-extensions";
      }){};
      tie = hself.callCabal2nix "tie" (builtins.fetchGit {
        url = "[email protected]:scarf-sh/tie.git";
        ref = "main";
      }){};
    };
  };
}

shell.nix

{ pkgs ? import <nixpkgs> {overlays = (import ./overlays/tie.nix); }}:
pkgs.mkShell {}

This is mostly for my reference.

@piq9117 piq9117 closed this as completed Jun 20, 2022
@alexbiehl
Copy link
Member

Very sweet! Do you think it would make sense to make it part of ties default.nix or be should we maybe pin this issue for future readers at the very least?

@alexbiehl alexbiehl pinned this issue Jun 20, 2022
@piq9117
Copy link
Contributor Author

piq9117 commented Jun 21, 2022

not sure. i think everyone has moved on to flakes. 😅 I think this is good enough. If someone searches for "nix" in the issues, this will show up anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants