-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d1f0656
commit dbefb62
Showing
4 changed files
with
68 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,37 @@ | ||
# quick-cook-haskell-project | ||
|
||
This repo is a tool which can quickly cook a haskell project for exploring. It is based on following tools: | ||
** nix | ||
** haskell.nix | ||
** summoner | ||
# Table of Contents | ||
|
||
1. [Features](#org87edada) | ||
2. [Usage](#orgc7dd06a) | ||
|
||
This is a tool which can help you generate a haskell project which uses the haskell.nix as the build framework. | ||
|
||
|
||
<a id="org87edada"></a> | ||
|
||
# Features | ||
|
||
This tool has following features at this moment: | ||
|
||
- provision nix if needed | ||
- generate haskell project with the summoner tool | ||
- generate most usable nix files, including: | ||
- **default.nix:** this is the major nix file | ||
- **shell.nix:** to setup a development environment with nix-shell | ||
- **cross-build.nix:** this nix expression can be used to build cross platform targets, including fully static linked binary with musl library | ||
- **docker.nix:** this file can be used to build a docker image for the project | ||
|
||
|
||
<a id="orgc7dd06a"></a> | ||
|
||
# Usage | ||
|
||
Following these steps to use this tool: | ||
|
||
1. clone the repository | ||
2. run the following command under the clone directory: | ||
|
||
<p class="verse"> | ||
./cook.sh <the porject directory> <the project name><br /> | ||
</p> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#+TITLE: Readme | ||
#+AUTHOR: Hugh JF Chen | ||
#+DATE: 2020-12-18 | ||
#+OPTIONS: ^:{} toc:3 | ||
|
||
This is a tool which can help you generate a haskell project which uses the haskell.nix as the build framework. | ||
|
||
* Features | ||
|
||
This tool has following features at this moment: | ||
- provision nix if needed | ||
- generate haskell project with the summoner tool | ||
- generate most usable nix files, including: | ||
- default.nix :: this is the major nix file | ||
- shell.nix :: to setup a development environment with nix-shell | ||
- cross-build.nix :: this nix expression can be used to build cross platform targets, including fully static linked binary with musl library | ||
- docker.nix :: this file can be used to build a docker image for the project | ||
|
||
* Usage | ||
|
||
Following these steps to use this tool: | ||
|
||
1. clone the repository | ||
2. run the following command under the clone directory: | ||
#+begin_verse | ||
./cook.sh <the porject directory> <the project name> | ||
#+end_verse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters