Fails to build against `nixUnstable` #36

Closed
FRidh opened this Issue Jan 7, 2017 · 1 comment

Projects

None yet

1 participant

@FRidh
FRidh commented Jan 7, 2017

Curious to the new floating-point support I found out that nix-repl fails to build against nixUnstable with NixOS/nixpkgs@7215118

$ nix-shell -p 'nix-repl.override{nix=nixUnstable;}'  -I nixpkgs=.
these derivations will be built:
  /nix/store/4qgb5zg3yrwa90i2fly58167bgs69qgj-nix-repl-1.12pre4911_b30d1e7-2016-02-28.drv
building path(s) ‘/nix/store/5cvngz9clyqb906pp96w4h7q2plpy7ds-nix-repl-1.12pre4911_b30d1e7-2016-02-28’
unpacking sources
unpacking source archive /nix/store/q8h2ng6wzgxsqrsczyam6szms15icg8k-nix-repl-a1ea85e92b067a0a42354a28355c633eac7be65c-src
source root is nix-repl-a1ea85e92b067a0a42354a28355c633eac7be65c-src
patching sources
configuring
no configure script, doing nothing
installing
nix-repl.cc: In constructor 'NixRepl::NixRepl(const Strings&)':
nix-repl.cc:78:44: error: no matching function for call to 'nix::EvalState::EvalState(const Strings&)'
     , staticEnv(false, &state.staticBaseEnv)
                                            ^
In file included from nix-repl.cc:10:0:
/nix/store/nx8gzz0aqk755ixmijzw8q1i0aql6qfm-nix-1.12pre4911_b30d1e7-dev/include/nix/eval.hh:103:5: note: candidate: nix::EvalState::EvalState(const Strings&, nix::ref<nix::Store>)
     EvalState(const Strings & _searchPath, ref<Store> store);
     ^
/nix/store/nx8gzz0aqk755ixmijzw8q1i0aql6qfm-nix-1.12pre4911_b30d1e7-dev/include/nix/eval.hh:103:5: note:   candidate expects 2 arguments, 1 provided
/nix/store/nx8gzz0aqk755ixmijzw8q1i0aql6qfm-nix-1.12pre4911_b30d1e7-dev/include/nix/eval.hh:63:7: note: candidate: nix::EvalState::EvalState(const nix::EvalState&)
 class EvalState
       ^
/nix/store/nx8gzz0aqk755ixmijzw8q1i0aql6qfm-nix-1.12pre4911_b30d1e7-dev/include/nix/eval.hh:63:7: note:   no known conversion for argument 1 from 'const Strings {aka const std::__cxx11::list<std::__cxx11::basic_string<char> >}' to 'const nix::EvalState&'
nix-repl.cc: In member function 'bool NixRepl::processLine(std::__cxx11::string)':
nix-repl.cc:337:31: error: 'store' was not declared in this scope
         if (drvPath == "" || !store->isValidPath(drvPath))
                               ^
nix-repl.cc: In lambda function:
nix-repl.cc:648:9: error: 'store' was not declared in this scope
         store = openStore();
         ^
builder for ‘/nix/store/4qgb5zg3yrwa90i2fly58167bgs69qgj-nix-repl-1.12pre4911_b30d1e7-2016-02-28.drv’ failed with exit code 1
error: build of ‘/nix/store/4qgb5zg3yrwa90i2fly58167bgs69qgj-nix-repl-1.12pre4911_b30d1e7-2016-02-28.drv’ failed
/run/current-system/sw/bin/nix-shell: failed to build all dependencies
@FRidh
FRidh commented Jan 7, 2017

Nevermind, it builds against nix-repl at master

@FRidh FRidh closed this Jan 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment