test: Fails to use snapshot.yaml (#338)

This commit is contained in:
Kirill Elagin 2019-12-04 02:56:08 +00:00 committed by Moritz Angermann
parent 1de76b7b1a
commit a3b3e0e7eb
7 changed files with 33 additions and 0 deletions

View File

@ -25,6 +25,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 {};

2
test/stack-local-resolver/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/.stack-work/
/*.cabal

View File

@ -0,0 +1,9 @@
{ stackProject }:
let
project = stackProject {
src = ./.;
};
in
project.stack-local-resolver

View File

@ -0,0 +1,7 @@
name: stack-local-resolver
dependencies:
- base
library:
source-dirs: src

View File

@ -0,0 +1,4 @@
name: local-snapshot
resolver: lts-14.13
packages: []

View File

@ -0,0 +1,6 @@
module Lib
( someFunc
) where
someFunc :: IO ()
someFunc = putStrLn "someFunc"

View File

@ -0,0 +1,4 @@
resolver: snapshot.yaml
packages:
- .