Open fzhulitov opened 1 month ago
Update - if I force around script-monad in my flake I get the following error: builder for '/nix/store/v8n0a7f3glnay4slg65vhgy7nw2a2v09-webdriver-w3c-0.0.3.drv' failed with exit code 1; last 10 log lines:
• In the first argument of ‘key’, namely ‘(pack k)’ In the first argument of ‘(.)’, namely ‘key (pack k)’ In the second argument of ‘(^?)’, namely ‘key (pack k) . _String’ |
1099 | let v = payload ^? key (pack k) . _String | ^^^^^^ [ 6 of 11] Compiling Web.Api.WebDriver.Monad.Test.Session.InvalidElementState ( test/Web/Api/WebDriver/Monad/Test/Session/InvalidElementState.hs, dist/build/webdriver-w3c-test/webdriver-w3c-test-tmp/Web/Api/WebDriver/Monad/Test/Session/InvalidElementState.o ) [ 7 of 11] Compiling Web.Api.WebDriver.Monad.Test.Session.Success ( test/Web/Api/WebDriver/Monad/Test/Session/Success.hs, dist/build/webdriver-w3c-test/webdriver-w3c-test-tmp/Web/Api/WebDriver/Monad/Test/Session/Success.o ) [ 8 of 11] Compiling Web.Api.WebDriver.Monad.Test.Session.UnknownError ( test/Web/Api/WebDriver/Monad/Test/Session/UnknownError.hs, dist/build/webdriver-w3c-test/webdriver-w3c-test-tmp/Web/Api/WebDriver/Monad/Test/Session/UnknownError.o ) [10 of 11] Compiling Web.Api.WebDriver.Types.Test ( test/Web/Api/WebDriver/Types/Test.hs, dist/build/webdriver-w3c-test/webdriver-w3c-test-tmp/Web/Api/WebDriver/Types/Test.o ) For full logs, run 'nix log /nix/store/v8n0a7f3glnay4slg65vhgy7nw2a2v09-webdriver-w3c-0.0.3.drv'. error: 1 dependencies of derivation '/nix/store/hmbpq9252v4xvz98jg2xarzq6dn857vp-ghc-9.6.5-with-packages.drv' failed to build error: 1 dependencies of derivation '/nix/store/p0rdbdw75lr8g0a5l5ibgfvw4k7n898a-ghc-shell-for-checker-0.1.0.0-0-env.drv' failed to build
full log attached log2.txt
Recommendation from Pull-request: Added an initial default.nix that can build webdriver-w3c. #62, help me to go without tests. it installed
Going trow examples get errors on stack ghci webdriver-w3c:webdriver-w3c-intro
[fedor@a17nix:~/hask-test/webdriver-w3c]$ stack ghci webdriver-w3c:webdriver-w3c-intro stack: command not found
[fedor@a17nix:~/hask-test/webdriver-w3c]$ nix shell nixpkgs#stack
[fedor@a17nix:~/hask-test/webdriver-w3c]$ stack ghci webdriver-w3c:webdriver-w3c-intro error: … while calling the 'derivationStrict' builtin
at /builtin/derivation.nix:9:12: (source not available)
… while evaluating derivation 'myEnv'
whose name attribute is located at /nix/store/shqh2az4rh30ix6xygjxlhmknyidvma9-nixos-23.05.4335.898cb2064b6e/nixos/pkgs/stdenv/generic/make-derivation.nix:303:7
… while evaluating attribute 'LD_LIBRARY_PATH' of derivation 'myEnv'
at «string»:1:411:
1| with (import <nixpkgs> {}); let inputs = [haskell.compiler.ghc883 git gcc gmp]; libPath = lib.makeLibraryPath inputs; stackExtraArgs = lib.concatMap (pkg: [ ''--extra-lib-dirs=${lib.getLib pkg}/lib'' ''--extra-include-dirs=${lib.getDev pkg}/include'' ]) inputs; in runCommand ''myEnv'' { buildInputs = lib.optional stdenv.isLinux glibcLocales ++ inputs; STACK_PLATFORM_VARIANT=''nix''; STACK_IN_NIX_SHELL=1; LD_LIBRARY_PATH = libPath;STACK_IN_NIX_EXTRA_ARGS = stackExtraArgs; LANG="en_US.UTF-8";} ""
| ^
error: attribute 'ghc883' missing
at «string»:1:43:
1| with (import <nixpkgs> {}); let inputs = [haskell.compiler.ghc883 git gcc gmp]; libPath = lib.makeLibraryPath inputs; stackExtraArgs = lib.concatMap (pkg: [ ''--extra-lib-dirs=${lib.getLib pkg}/lib'' ''--extra-include-dirs=${lib.getDev pkg}/include'' ]) inputs; in runCommand ''myEnv'' { buildInputs = lib.optional stdenv.isLinux glibcLocales ++ inputs; STACK_PLATFORM_VARIANT=''nix''; STACK_IN_NIX_SHELL=1; LD_LIBRARY_PATH = libPath;STACK_IN_NIX_EXTRA_ARGS = stackExtraArgs; LANG="en_US.UTF-8";} ""
| ^
Did you mean one of ghc88, ghc884, ghc810 or ghc943?
[fedor@a17nix:~/hask-test/webdriver-w3c]$
i add webdriver-w3c in my .cabal
after i run nix develop -c cabal repl and get
I try with allow broken and get
error: builder for '/nix/store/gl0s1rmqrgrfa1pzva00a4yg46hqaw60-script-monad-0.0.4.drv' failed with exit code 1; last 10 log lines:
and full log attached
log.txt