Skip to content

Commit

Permalink
fix(nix): overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Sep 3, 2023
1 parent 05add4e commit 7a50238
Showing 1 changed file with 29 additions and 30 deletions.
59 changes: 29 additions & 30 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
}: let
name = "haskell-snippets.nvim";

plugin-overlay = import ./nix/plugin-overlay.nix {
inherit name self;
};

supportedSystems = [
"aarch64-linux"
"aarch64-darwin"
Expand All @@ -53,10 +57,6 @@
;
};

plugin-overlay = import ./nix/plugin-overlay.nix {
inherit name self;
};

pkgs = import nixpkgs {
inherit system;
overlays = [
Expand Down Expand Up @@ -86,32 +86,31 @@
zlib
];
};
in
{
devShells = {
default = devShell;
inherit devShell;
};
in {
devShells = {
default = devShell;
inherit devShell;
};

packages = rec {
default = haskell-snippets-nvim;
inherit docgen;
inherit
(pkgs)
haskell-snippets-nvim
;
};
packages = rec {
default = haskell-snippets-nvim;
inherit docgen;
inherit
(pkgs)
haskell-snippets-nvim
;
};

checks = {
formatting = pre-commit-check;
inherit
(pkgs)
nvim-stable-tests
nvim-nightly-tests
;
};
}
// {
overlays.default = plugin-overlay;
});
checks = {
formatting = pre-commit-check;
inherit
(pkgs)
nvim-stable-tests
nvim-nightly-tests
;
};
})
// {
overlays.default = plugin-overlay;
};
}

0 comments on commit 7a50238

Please sign in to comment.