-
Notifications
You must be signed in to change notification settings - Fork 22
add nix and markdownify readme #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
chessai
wants to merge
1
commit into
master
Choose a base branch
from
add-nix
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,7 @@ | ||
{ | ||
"url": "https://github.com/nixos/nixpkgs-channels", | ||
"rev": "f3fa5a101eb74a10f6c53b504e18b42bacccbaeb", | ||
"date": "2019-12-03T16:52:39+00:00", | ||
"sha256": "0mf8n78xhni57f5pgc5rc7l3sgnar95998gi06a1anf8gqnrrhn1", | ||
"fetchSubmodules": false | ||
} |
This file contains hidden or 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,10 @@ | ||
{ owner ? "NixOS" | ||
, repo ? "nixpkgs-channels" | ||
, rev ? "f3fa5a101eb74a10f6c53b504e18b42bacccbaeb" | ||
, sha256 ? "0mf8n78xhni57f5pgc5rc7l3sgnar95998gi06a1anf8gqnrrhn1" | ||
}: | ||
|
||
import (builtins.fetchTarball { | ||
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; | ||
inherit sha256; | ||
}) {} |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,77 @@ | ||
Haskell Report | ||
============== | ||
|
||
These are the sources to the Haskell report, including all the source files you | ||
will need to generate either the PDF or the HTML version of the report. | ||
|
||
|
||
Building via Nix | ||
---------------- | ||
|
||
To build using the [Nix](https://nixos.org/nix/) package manager, simply run | ||
`nix-build`. The PDF and HTML versions can then be found in the `result` | ||
subdirectory. | ||
|
||
Alternatively, you can invoke `nix-shell` to enter a shell with the environment | ||
needed to build the report. Once in the shell you can use `make` as normal. | ||
|
||
Building manually | ||
----------------- | ||
|
||
### Tools you will need | ||
|
||
PDF version: a decent LaTeX installation with pdflatex. We use the following | ||
additional packages: | ||
|
||
- times | ||
- makeidx | ||
- graphicx | ||
- url | ||
- color | ||
- hyperref | ||
|
||
Also you need the following tools | ||
|
||
- makeindex | ||
|
||
all of which are usually available with a good TeX distribution (e.g. TeX Live). | ||
|
||
The following are also required for building the tools: | ||
|
||
- flex | ||
- GHC | ||
|
||
The HTML version additionally requires | ||
|
||
- tex4ht (e.g. install `tex4ht` on a Debian or Ubuntu system, or | ||
`tetex-tex4ht` on a Fedora system) | ||
|
||
### Building | ||
|
||
Firstly: | ||
|
||
$ cd tools | ||
$ make | ||
|
||
should build a few tools required for building the report itself. Then you | ||
should be able to say | ||
|
||
$ cd report | ||
$ make | ||
|
||
This will create: | ||
|
||
- PDF version: report/haskell.pdf | ||
|
||
- HTML version: report/ht/haskell.html | ||
(NB. requires report/ht/*.{html,png,css}) | ||
|
||
|
||
Roadmap | ||
------- | ||
|
||
Source files | ||
|
||
- `report/` The Language and Libraries Reports (now together in a single document) | ||
- `tools/` Tools needed to build the Reports (cd into here and type make) | ||
- `Makefile` Build a distribution of the Reports |
This file contains hidden or 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,36 @@ | ||
with (import ./.nix/nixpkgs.nix {}); | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "haskell-report"; | ||
version = "2020"; | ||
|
||
src = ./.; | ||
|
||
buildInputs = [ | ||
(texlive.combine { | ||
inherit (texlive) | ||
scheme-basic | ||
tex4ht | ||
tabulary | ||
collection-fontsrecommended; | ||
}) | ||
flex | ||
ghc | ||
perl528 | ||
ghostscript | ||
]; | ||
|
||
buildCommand = '' | ||
cp -r ${src} haskell-report | ||
chmod -R u+w haskell-report | ||
|
||
cd haskell-report | ||
export HOME=$TMPDIR | ||
|
||
make | ||
|
||
mkdir $out | ||
cp report/haskell.pdf $out/haskell-report.pdf | ||
cp -r report/ht $out/ht | ||
''; | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it still Haskell Report 2010? Or is this version referring to this nix build?