Haskell: Difference between revisions

imported>Tobias.bora
No edit summary
imported>Tobias.bora
No edit summary
Line 170: Line 170:
})).backend
})).backend
</syntaxhighlight>
</syntaxhighlight>
or if you want to create a single derivation file, you can use <code>if pkgs.lib.inNixShell then … else …</code> to output the shell when we start a shell and the packages when we want to build them. You can find [https://github.com/kowainik/summoner/blob/60de4f2f087e5bd2beaad9253e7eded731cfbaaf/default.nix here] an example.


=== Using haskell.nix (for complex projects) ===
=== Using haskell.nix (for complex projects) ===