Skip to content

Commit

Permalink
Add attoparsec-aeson to nix flake
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanG077 authored and DigitalBrains1 committed Sep 20, 2023
1 parent 3a43348 commit 75d70f7
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
18 changes: 18 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
url = "github:edolstra/flake-compat";
flake = false;
};
# TODO: Package is not yet in 23.05 but it is in unstable. Once 23.11
# Has been released remove this
attoparsec-aeson = {
url = "github:athanclark/aeson-attoparsec/v0.0.0";
flake = false;
};

ghc-tcplugins-extra = {
url = "github:clash-lang/ghc-tcplugins-extra";
Expand Down Expand Up @@ -51,6 +57,7 @@
makeOverlay =
import (./. + "/nix/overlay.nix") {
inherit (args)
attoparsec-aeson
ghc-tcplugins-extra
ghc-typelits-extra
ghc-typelits-knownnat
Expand Down
10 changes: 9 additions & 1 deletion nix/overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
# packages to the environment, or need to change the configuration of the
# different packages maintained by QBayLogic.

{ ghc-tcplugins-extra
{ attoparsec-aeson
, ghc-tcplugins-extra
, ghc-typelits-extra
, ghc-typelits-knownnat
, ghc-typelits-natnormalise
Expand All @@ -25,6 +26,13 @@ let
# standalone repositories, e.g. the typechecker plugins needed for Clash.
haskellExternalPackages =
hfinal: hprev: {
# TODO: Package is not yet in 23.05 but it is in unstable. Once 23.11
# Has been released remove this
attoparsec-aeson = hprev.callCabal2nix
"attoparsec-aeson"
"${attoparsec-aeson}"
{ };

ghc-tcplugins-extra =
hprev.callCabal2nix
"ghc-tcplugins-extra"
Expand Down

0 comments on commit 75d70f7

Please sign in to comment.