λ mkdir my-project && cd $_λ nix-shell --packages ghc --run 'cabal init'- answer
cabal initCLI questions - copy
default.nix,pkgs.nix,release.nixandshell.nixfiles - copy
Makefile, but updaterunto use the project's executable name - pin
nixpkgsand save to a.jsonfile- using latest commit sha:
λ nix-prefetch-git https://github.com/NixOS/nixpkgs.git > nixpkgs.json - or at a specific one:
λ nix-prefetch-git https://github.com/NixOS/nixpkgs.git 05z8iqgpv0pzrwxvjkjwn03kz07dq2y4bv9wdclb2i4f2sh75dlh > nixpkgs.json
- using latest commit sha:
λ make cabal(runscabal2nixto generateproject.nix)λ make build(runsnix-build)- wait for a while
λ make test(run the tests)λ make run(test it out!)
This repository was archived by the owner on Sep 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Haskell and nix example project
License
rpearce/haskell-nix-example
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Haskell and nix example project
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published