Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't work in nixos #66

Open
fzhulitov opened this issue May 13, 2024 · 3 comments
Open

can't work in nixos #66

fzhulitov opened this issue May 13, 2024 · 3 comments

Comments

@fzhulitov
Copy link

i add webdriver-w3c in my .cabal

after i run nix develop -c cabal repl and get

   error: Package ‘script-monad-0.0.4’ in /nix/store/7vdxbra0kwbr0ys0kc5ahbn248mq0pql-source/pkgs/development/haskell-modules/hackage-packages.nix:265455 is marked as broken, refusing to evaluate.

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:
> +++ OK, passed 200 tests.
> getLines / hasFile: OK
> +++ OK, passed 200 tests.
> readLine / writeLines: OK
> +++ OK, passed 200 tests.
>
> 8 out of 3633 tests failed (1.13s)
> Test suite script-monad-test: FAIL
> Test suite logged to: dist/test/script-monad-0.0.4-script-monad-test.log
> 0 of 1 test suites (0 of 1 test cases) passed.
For full logs, run 'nix log /nix/store/gl0s1rmqrgrfa1pzva00a4yg46hqaw60-script-monad-0.0.4.drv'.
error: 1 dependencies of derivation '/nix/store/9rwwrbnq04d31lmivl07brysgagjdjdf-ghc-9.6.5-with-packages.drv' failed to build
error: 1 dependencies of derivation '/nix/store/y686dg9hnmgh2402z3jvj40cqw2zkwpd-ghc-shell-for-checker-0.1.0.0-0-env.drv' failed to build

and full log attached

log.txt

@fzhulitov
Copy link
Author

fzhulitov commented May 13, 2024

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

@fzhulitov
Copy link
Author

Recommendation from
Pull-request: Added an initial default.nix that can build webdriver-w3c. #62,
help me to go without tests. it installed

@fzhulitov
Copy link
Author

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]$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant