Re: [Nix-dev] Haskell workflow - ghc not in PATH - recommended way / documentation?
> nix-shell -A env my fault - sry. In the past I used sourceAndTags to get sources tagged (using hasktags) so that I was able to jump to source using Vim's :tjump command (and search names) fast. Is this workflow "outdated" eg because hoogle can do it or should I try integrating it into current haskell-packages? hastags fails at "template haskell generated stuff", adding it is trivial because its just applying addHasktagsTaggingInfo = deriv : deriv // { to an existing derivation. It served me quite well that time. Marc Weber ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Haskell workflow - ghc not in PATH - recommended way / documentation?
I think you might want to use: nix-shell -A env The `env` attribute creates a derivation that brings in GHC. You can generate a shell.nix via `cabal2nix --shell` which detects if you're in a shell and automatically uses the attribute. On 23 June 2016 at 19:24, Marc Weberwrote: > It's way too much work to keep maintaining my nixpkgs-haskell-overlay. > > Trying the workflow specified in the manual: > > 1) ./default.nix: > > { nixpkgs ? import {}, compiler ? "ghc7102" }: > nixpkgs.pkgs.haskell.packages.${compiler}.callPackage ./foo.nix { } > > > 2) cabal2nix . >| foo.nix > > 3) nix-shell --command zsh > > however doesn't put ghc in PATH. > > BTW: Cabal2nix on cabal2nix seems to fail: > > configureFlags: --verbose > --prefix=/nix/store/qk9jk6abnqzg8dybzgiabm4p3wjmflr0-distribution-nixpkgs-1 > --libdir=$prefix/lib/$compiler --libsubdir=$pkgid --with-gcc=gcc > --package-db=/tmp/nix-build-distribution-nixpkgs-1.drv-0/package.conf.d > --ghc-option=-optl=-Wl,-rpath=/nix/store/qk9jk6abnqzg8dybzgiabm4p3wjmflr0-distribution-nixpkgs-1/lib/ghc-7.10.2/distribution-nixpkgs-1 > --enable-split-objs --disable-library-profiling > --disable-executable-profiling --enable-shared --enable-library-vanilla > --enable-executable-dynamic --enable-tests > Configuring distribution-nixpkgs-1... > Setup: At least the following dependencies are missing: > Cabal >1.24 > builder for > ‘/nix/store/9ml89qkri8fkn1bldyh446a2g6rkscjc-distribution-nixpkgs-1.drv’ > failed with exit code 1 > error: build of > ‘/nix/store/9ml89qkri8fkn1bldyh446a2g6rkscjc-distribution-nixpkgs-1.drv’ > failed > > > I'm pretty sure that I missed something obvious .. > > Marc Weber > ___ > nix-dev mailing list > nix-dev@lists.science.uu.nl > http://lists.science.uu.nl/mailman/listinfo/nix-dev ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
[Nix-dev] Haskell workflow - ghc not in PATH - recommended way / documentation?
It's way too much work to keep maintaining my nixpkgs-haskell-overlay. Trying the workflow specified in the manual: 1) ./default.nix: { nixpkgs ? import {}, compiler ? "ghc7102" }: nixpkgs.pkgs.haskell.packages.${compiler}.callPackage ./foo.nix { } 2) cabal2nix . >| foo.nix 3) nix-shell --command zsh however doesn't put ghc in PATH. BTW: Cabal2nix on cabal2nix seems to fail: configureFlags: --verbose --prefix=/nix/store/qk9jk6abnqzg8dybzgiabm4p3wjmflr0-distribution-nixpkgs-1 --libdir=$prefix/lib/$compiler --libsubdir=$pkgid --with-gcc=gcc --package-db=/tmp/nix-build-distribution-nixpkgs-1.drv-0/package.conf.d --ghc-option=-optl=-Wl,-rpath=/nix/store/qk9jk6abnqzg8dybzgiabm4p3wjmflr0-distribution-nixpkgs-1/lib/ghc-7.10.2/distribution-nixpkgs-1 --enable-split-objs --disable-library-profiling --disable-executable-profiling --enable-shared --enable-library-vanilla --enable-executable-dynamic --enable-tests Configuring distribution-nixpkgs-1... Setup: At least the following dependencies are missing: Cabal >1.24 builder for ‘/nix/store/9ml89qkri8fkn1bldyh446a2g6rkscjc-distribution-nixpkgs-1.drv’ failed with exit code 1 error: build of ‘/nix/store/9ml89qkri8fkn1bldyh446a2g6rkscjc-distribution-nixpkgs-1.drv’ failed I'm pretty sure that I missed something obvious .. Marc Weber ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev