diff --git a/flake.lock b/flake.lock new file mode 100644 index 000000000..9ce20fffc --- /dev/null +++ b/flake.lock @@ -0,0 +1,60 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1694529238, + "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "ff7b65b44d01cf9ba6a71320833626af21126384", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1700204040, + "narHash": "sha256-xSVcS5HBYnD3LTer7Y2K8ZQCDCXMa3QUD1MzRjHzuhI=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "ref": "nixos-unstable", + "type": "indirect" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 000000000..039f3d523 --- /dev/null +++ b/flake.nix @@ -0,0 +1,26 @@ +{ + description = "Shell for dev"; + + inputs = { + nixpkgs.url = "nixpkgs/nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { flake-utils, self, nixpkgs, ... }: + let + system = flake-utils.lib.system.x86_64-linux; + pkgs = nixpkgs.legacyPackages.${system}; + in + { + devShells.${system}.default = pkgs.mkShell { + name = "catcheffect-dev"; + nativeBuildInputs = [ + pkgs.jdk11 + pkgs.scalafmt + pkgs.zsh + pkgs.sbt + pkgs.graalvm-ce + ]; + }; + }; +} diff --git a/modules/relational-doobie/src/test/scala/gql/relational/DoobieRelationalSuite.scala b/modules/relational-doobie/src/test/scala/gql/relational/DoobieRelationalSuite.scala index dc56c4ca0..58ce8a418 100644 --- a/modules/relational-doobie/src/test/scala/gql/relational/DoobieRelationalSuite.scala +++ b/modules/relational-doobie/src/test/scala/gql/relational/DoobieRelationalSuite.scala @@ -22,6 +22,7 @@ import cats.effect.std.UUIDGen import munit.AnyFixture import doobie._ import doobie.implicits._ +import scala.collection.immutable._ class DoobieRelationalSuite extends RelationalSuiteTables(DoobieIntegraion) { def intDecoder: Read[Int] = Read[Int] diff --git a/modules/relational-skunk/src/test/scala/gql/relational/SkunkRelationalSuite.scala b/modules/relational-skunk/src/test/scala/gql/relational/SkunkRelationalSuite.scala index 9a2af3308..8f938dc83 100644 --- a/modules/relational-skunk/src/test/scala/gql/relational/SkunkRelationalSuite.scala +++ b/modules/relational-skunk/src/test/scala/gql/relational/SkunkRelationalSuite.scala @@ -26,6 +26,7 @@ import cats.effect.std.UUIDGen import munit.AnyFixture import gql.relational.skunk.dsl._ import skunk.data.TransactionStatus +import scala.collection.immutable._ class SkunkRelationalSuite extends RelationalSuiteTables(SkunkIntegration) { def intDecoder: Decoder[Int] = int4