[Nix-dev] Installing a Haskell program

Arseniy Seroka ars.seroka at gmail.com
Sun May 17 01:42:36 CEST 2015


Woops, mistyped.
```
{ pkgs ? import <nixpkgs> {} }:
pkgs.haskellngPackages.callPackage ./project.nix {}
```

2015-05-17 2:38 GMT+03:00 Amy de Buitléir <amy at nualeargais.ie>:

> Arseniy Seroka <ars.seroka <at> gmail.com> writes:
>
> > My usual haskell workflow is```
> > $ cabal2nix ./. --shell > shell.nix
> > $ cabal2nix ./. > project.nix
> > $ # I have file default.nix [1] in project too
> > $ nix-shell # going into shell to use vim, ghc-mod etc
> > $ nix-build # building my project, usually doing that in parallel to vim
> > $ ./result/bin/foobar # testing my executable```[1] `pkgs ? import
> <nixpkgs> {} }:
> >
> >
> >
> >         pkgs.haskellngPackages.callPackage ./project.nix {}`
>
> OK, I've started over, and tried your workflow.
>
> [amy at wombat9000:~/jot]$ cabal2nix ./. --shell > shell.nix
>
> [amy at wombat9000:~/jot]$ cabal2nix ./. > project.nix
>
> [amy at wombat9000:~/jot]$ cat default.nix
> pkgs ? import <nixpkgs> {} }: pkgs.haskellngPackages.callPackage
> ./project.nix {}
>
> [amy at wombat9000:~/jot]$ nix-build
> error: syntax error, unexpected SPATH, expecting $end, at
> "/home/amy/jot/default.nix":1:15
>
>
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>



-- 
Sincerely,
Arseniy Seroka
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150517/3cc1051b/attachment.html 


More information about the nix-dev mailing list