diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-01-12 21:18:17 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-01-12 21:18:17 -0800 |
commit | 91fbea29ddf961654b1c09efaba70d92bfd65cc0 (patch) | |
tree | 9a3fc77c7c0c5d451d65472bdbb917eba38ba8ad /Makefile | |
parent | 387d3e76ee81138588195ebe8dad7720f2623b02 (diff) | |
download | pandoc-91fbea29ddf961654b1c09efaba70d92bfd65cc0.tar.gz |
Add files for using nix-shell.
'make nix-shell' enters a nix shell with pandoc dependencies
installed.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -91,6 +91,12 @@ README.md: README.template MANUAL.txt tools/update-readme.lua pandoc --lua-filter tools/update-readme.lua \ --reference-location=section -t gfm $< -o $@ +default.nix: pandoc.cabal + nix-shell --pure -p cabal2nix --run "cabal2nix ." > $@ + +nix-shell: + nix-shell --attr env release.nix + download_stats: curl https://api.github.com/repos/jgm/pandoc/releases | \ jq -r '.[] | .assets | .[] | "\(.download_count)\t\(.name)"' @@ -124,4 +130,4 @@ sdist-files.txt: .FORCE git-files.txt: .FORCE git ls-tree -r --name-only HEAD | grep '^\(test\|data\)\/' | sort > $@ -.PHONY: .FORCE deps quick full haddock install clean test bench changes_github dist prof download_stats reformat lint weigh doc/lua-filters.md pandoc-templates trypandoc update-website debpkg checkdocs ghcid ghci fix_spacing hlint check check-cabal +.PHONY: .FORCE deps quick full haddock install clean test bench changes_github dist prof download_stats reformat lint weigh doc/lua-filters.md pandoc-templates trypandoc update-website debpkg checkdocs ghcid ghci fix_spacing hlint check check-cabal nix-shell |