diff options
author | Justin Bedo <cu@cua0.org> | 2022-02-11 11:50:36 +1100 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2022-02-11 11:55:05 +1100 |
commit | cca7a01d0f83b61f12491db0923e502c5650b918 (patch) | |
tree | f4e90ddaa9b4fceec6703e188196daa54f5e0a59 /default.nix |
init
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..2afb73b --- /dev/null +++ b/default.nix @@ -0,0 +1,18 @@ +{ stdenv +, ghc +}: +stdenv.mkDerivation { + name = "latexfmt"; + + src = ./.; + + nativeBuildInputs = [ (ghc.withPackages (x: [ x.attoparsec ])) ]; + + buildPhase = '' + ghc -O -o latexfmt latexfmt.hs + ''; + + installPhase = '' + install -Dm 755 ./latexfmt $out/bin/latexfmt + ''; +} |