λ mkdir my-project && cd $_
λ nix-shell --packages ghc --run 'cabal init'
- answer
cabal init
CLI questions - copy
default.nix
,pkgs.nix
,release.nix
andshell.nix
files - copy
Makefile
, but updaterun
to use the project's executable name - pin
nixpkgs
and save to a.json
file- 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
(runscabal2nix
to 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