nix-community / yarn2nix

Generate nix expressions from a yarn.lock file [maintainer=???]
GNU General Public License v3.0
123 stars 61 forks source link

Latest release v0.6.0 is broken #162

Closed stevenroose closed 3 years ago

stevenroose commented 3 years ago

It doesn't seem to build for me:

$ nix-env -i yarn2nix -f .
installing 'yarn2nix-0.6.0'
these 2 derivations will be built:
  /nix/store/401klm0x7fnamv2fm08lhly0k4zzcrhy-yarn-lock-0.6.2.drv
  /nix/store/9l2nykmw9bkj1yqhkbmf99c3qlq00xj0-yarn2nix-0.6.0.drv
building '/nix/store/401klm0x7fnamv2fm08lhly0k4zzcrhy-yarn-lock-0.6.2.drv'...
setupCompilerEnvironmentPhase
Build with /nix/store/3cv3s9lv79qjkqyafbclbk03gz5z813w-ghc-8.2.2.
ignoring (possibly broken) abi-depends field for packages
unpacking sources
unpacking source archive /nix/store/y18pfpri9w8nnq5pz6kj1yh4984cf8mm-source
source root is source
patching sources
generated yarn-lock.cabal
compileBuildDriverPhase
setupCompileFlags: -package-db=/tmp/nix-build-yarn-lock-0.6.2.drv-0/package.conf.d -j8 -threaded
[1 of 1] Compiling Main             ( /nix/store/4mdp8nhyfddh7bllbi7xszz7k9955n79-Setup.hs, /tmp/nix-build-yarn-lock-0.6.2.drv-0/Main.o )
Linking Setup ...
configuring
configureFlags: --verbose --prefix=/nix/store/n94y09dph8zi0hlz7dwbixwmpchyi52c-yarn-lock-0.6.2 --libdir=$prefix/lib/$compiler --libsubdir=$pkgid --docdir=/nix/store/1cfcahl8imylhx9j310dhsc1yql39fkk-yarn-lock-0.6.2-doc/share/doc --with-gcc=gcc --package-db=/tmp/nix-build-yarn-lock-0.6.2.drv-0/package.conf.d --ghc-option=-j8 --disable-split-objs --enable-library-profiling --profiling-detail=all-functions --disable-profiling --enable-shared --disable-coverage --disable-executable-dynamic --enable-tests --enable-library-vanilla --enable-library-for-ghci --ghc-option=-split-sections --extra-lib-dirs=/nix/store/v4fkzi98745wi8psjdvfsp8nn6ygx9ww-ncurses-6.1/lib --extra-lib-dirs=/nix/store/hwkkw10kb5w600c3dvv061gn1ld5fbja-gmp-6.1.2/lib --extra-lib-dirs=/nix/store/v4fkzi98745wi8psjdvfsp8nn6ygx9ww-ncurses-6.1/lib
Configuring yarn-lock-0.6.2...
CallStack (from HasCallStack):
  die', called at libraries/Cabal/Cabal/Distribution/Simple/Configure.hs:948:20 in Cabal-2.0.1.0:Distribution.Simple.Configure
  configureFinalizedPackage, called at libraries/Cabal/Cabal/Distribution/Simple/Configure.hs:470:12 in Cabal-2.0.1.0:Distribution.Simple.Configure
  configure, called at libraries/Cabal/Cabal/Distribution/Simple.hs:570:20 in Cabal-2.0.1.0:Distribution.Simple
  confHook, called at libraries/Cabal/Cabal/Distribution/Simple/UserHooks.hs:67:5 in Cabal-2.0.1.0:Distribution.Simple.UserHooks
  configureAction, called at libraries/Cabal/Cabal/Distribution/Simple.hs:174:19 in Cabal-2.0.1.0:Distribution.Simple
  defaultMainHelper, called at libraries/Cabal/Cabal/Distribution/Simple.hs:119:27 in Cabal-2.0.1.0:Distribution.Simple
  defaultMain, called at /nix/store/4mdp8nhyfddh7bllbi7xszz7k9955n79-Setup.hs:2:8 in main:Main
Setup: Encountered missing dependencies:
megaparsec >=7 && <9
error: --- Error ------------------------------------------------------------------------------------------------------------------- nix-env
builder for '/nix/store/401klm0x7fnamv2fm08lhly0k4zzcrhy-yarn-lock-0.6.2.drv' failed with exit code 1
error: --- Error ------------------------------------------------------------------------------------------------------------------- nix-env
1 dependencies of derivation '/nix/store/9l2nykmw9bkj1yqhkbmf99c3qlq00xj0-yarn2nix-0.6.0.drv' failed to build

(that's not the first build attempt, but a subsequent one)

stevenroose commented 3 years ago

Whoops I wsa using anothre yarn2nix. Sorry.