mirror of
https://github.com/ilyakooo0/haskell.nix.git
synced 2024-10-26 09:37:17 +03:00
test: Fails to use snapshot.yaml (#338)
This commit is contained in:
parent
1de76b7b1a
commit
a3b3e0e7eb
@ -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
2
test/stack-local-resolver/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/.stack-work/
|
||||
/*.cabal
|
9
test/stack-local-resolver/default.nix
Normal file
9
test/stack-local-resolver/default.nix
Normal file
@ -0,0 +1,9 @@
|
||||
{ stackProject }:
|
||||
|
||||
let
|
||||
project = stackProject {
|
||||
src = ./.;
|
||||
};
|
||||
in
|
||||
|
||||
project.stack-local-resolver
|
7
test/stack-local-resolver/package.yaml
Normal file
7
test/stack-local-resolver/package.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
name: stack-local-resolver
|
||||
|
||||
dependencies:
|
||||
- base
|
||||
|
||||
library:
|
||||
source-dirs: src
|
4
test/stack-local-resolver/snapshot.yaml
Normal file
4
test/stack-local-resolver/snapshot.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
name: local-snapshot
|
||||
resolver: lts-14.13
|
||||
|
||||
packages: []
|
6
test/stack-local-resolver/src/Lib.hs
Normal file
6
test/stack-local-resolver/src/Lib.hs
Normal file
@ -0,0 +1,6 @@
|
||||
module Lib
|
||||
( someFunc
|
||||
) where
|
||||
|
||||
someFunc :: IO ()
|
||||
someFunc = putStrLn "someFunc"
|
4
test/stack-local-resolver/stack.yaml
Normal file
4
test/stack-local-resolver/stack.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
resolver: snapshot.yaml
|
||||
|
||||
packages:
|
||||
- .
|
Loading…
Reference in New Issue
Block a user