blob: 2afb73bf1a91351feb49112e7cc63a801d5794b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
'';
}
|