diff --git a/test/default.nix b/test/default.nix index cbed52242a..e35e3aae8b 100644 --- a/test/default.nix +++ b/test/default.nix @@ -16,6 +16,7 @@ in pkgs.recurseIntoAttrs { with-packages = haskell-nix.callPackage ./with-packages { inherit util; }; builder-haddock = haskell-nix.callPackage ./builder-haddock {}; stack-simple = haskell-nix.callPackage ./stack-simple {}; + stack-local-resolver = haskell-nix.callPackage ./stack-local-resolver {}; snapshots = haskell-nix.callPackage ./snapshots {}; shell-for = haskell-nix.callPackage ./shell-for {}; shell-for-setup-deps = haskell-nix.callPackage ./shell-for-setup-deps {}; diff --git a/test/stack-local-resolver/.gitignore b/test/stack-local-resolver/.gitignore new file mode 100644 index 0000000000..d14118b69c --- /dev/null +++ b/test/stack-local-resolver/.gitignore @@ -0,0 +1,2 @@ +/.stack-work/ +/*.cabal diff --git a/test/stack-local-resolver/default.nix b/test/stack-local-resolver/default.nix new file mode 100644 index 0000000000..5d55ce3b69 --- /dev/null +++ b/test/stack-local-resolver/default.nix @@ -0,0 +1,9 @@ +{ stackProject }: + +let + project = stackProject { + src = ./.; + }; +in + +project.stack-local-resolver diff --git a/test/stack-local-resolver/package.yaml b/test/stack-local-resolver/package.yaml new file mode 100644 index 0000000000..b7f2bb1fef --- /dev/null +++ b/test/stack-local-resolver/package.yaml @@ -0,0 +1,7 @@ +name: stack-local-resolver + +dependencies: +- base + +library: + source-dirs: src diff --git a/test/stack-local-resolver/snapshot.yaml b/test/stack-local-resolver/snapshot.yaml new file mode 100644 index 0000000000..d175fc8f66 --- /dev/null +++ b/test/stack-local-resolver/snapshot.yaml @@ -0,0 +1,4 @@ +name: local-snapshot +resolver: lts-14.13 + +packages: [] diff --git a/test/stack-local-resolver/src/Lib.hs b/test/stack-local-resolver/src/Lib.hs new file mode 100644 index 0000000000..d36ff2714d --- /dev/null +++ b/test/stack-local-resolver/src/Lib.hs @@ -0,0 +1,6 @@ +module Lib + ( someFunc + ) where + +someFunc :: IO () +someFunc = putStrLn "someFunc" diff --git a/test/stack-local-resolver/stack.yaml b/test/stack-local-resolver/stack.yaml new file mode 100644 index 0000000000..4aec180e1e --- /dev/null +++ b/test/stack-local-resolver/stack.yaml @@ -0,0 +1,4 @@ +resolver: snapshot.yaml + +packages: +- .