--version
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/di7i7qnafdhi5dkh6k6ynqz3rhc7sh7p-nixpkgs-24.05/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:333:7
… while evaluating attribute 'LD_LIBRARY_PATH' of derivation 'myEnv'
at «string»:1:411:
1| with (import <nixpkgs> {}); let inputs = [haskell.compiler.ghc966 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 'ghc966' missing
at «string»:1:43:
1| with (import <nixpkgs> {}); let inputs = [haskell.compiler.ghc966 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 ghc926, ghc946, ghc96, ghc963 or ghc964?
и что делать
stack config set install-ghc --global false stack config set system-ghc --global true
Стикер
а ошибка из-за старого nixpkgs
а где он старый, у стака?
Обсуждают сегодня