diff --git a/flake.lock b/flake.lock index c24abf7..7ad8f92 100644 --- a/flake.lock +++ b/flake.lock @@ -18,6 +18,24 @@ "type": "github" } }, + "flake-utils_2": { + "inputs": { + "systems": "systems_2" + }, + "locked": { + "lastModified": 1726560853, + "narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1729256560, @@ -37,7 +55,8 @@ "root": { "inputs": { "flake-utils": "flake-utils", - "nixpkgs": "nixpkgs" + "nixpkgs": "nixpkgs", + "wreq-effectful": "wreq-effectful" } }, "systems": { @@ -54,6 +73,42 @@ "repo": "default", "type": "github" } + }, + "systems_2": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "wreq-effectful": { + "inputs": { + "flake-utils": "flake-utils_2", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1734731007, + "narHash": "sha256-eVR0tc9fG//S/DuLnXQF/DyTZ2PJPfEbO9e/Wp2QwGg=", + "owner": "The1Penguin", + "repo": "wreq-effectful", + "rev": "5266a5fe20af01f3e018d54cc03dc259b8d3aa23", + "type": "github" + }, + "original": { + "owner": "The1Penguin", + "repo": "wreq-effectful", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 50832a9..b0c3bc8 100644 --- a/flake.nix +++ b/flake.nix @@ -4,11 +4,13 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; flake-utils.url = "github:numtide/flake-utils"; + wreq-effectful.url = "github:The1Penguin/wreq-effectful"; + wreq-effectful.inputs.nixpkgs.follows = "nixpkgs"; }; nixConfig.allow-import-from-derivation = true; # cabal2nix uses IFD - outputs = { self, nixpkgs, flake-utils }: + outputs = { self, nixpkgs, flake-utils, wreq-effectful }: let ghcVer = "ghc96"; makeHaskellOverlay = overlay: final: prev: { @@ -73,6 +75,7 @@ let hlib = prev.haskell.lib; in { mat = hprev.callCabal2nix "mat" ./. { }; + wreq-effectful = wreq-effectful.packages."x86_64-linux".wreq-effectful; # here's how to do hacks to the package set # don't run the test suite