summary refs log tree commit diff
path: root/pkgs/development/compilers/elm/packages/elm-format.nix
blob: a9340fc94fe40e3e5d6331d584dbbdf0d610a9a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ mkDerivation, aeson, ansi-terminal, ansi-wl-pprint, base, binary
, bytestring, containers, directory, edit-distance, fetchgit
, filemanip, filepath, HUnit, indents, mtl, optparse-applicative
, parsec, pretty, process, QuickCheck, quickcheck-io
, regex-applicative, split, stdenv, tasty, tasty-golden
, tasty-hunit, tasty-quickcheck, text, union-find, wl-pprint
}:
mkDerivation {
  pname = "elm-format";
  version = "0.5.2";
  src = fetchgit {
    url = "http://github.com/avh4/elm-format";
    sha256 = "0lman7h6wr75y90javcc4y1scvwgv125gqqaqvfrd5xrfmm43gg8";
    rev = "e452ed9342620e7bb0bc822983b96411d57143ef";
  };
  isLibrary = false;
  isExecutable = true;
  executableHaskellDepends = [
    aeson ansi-terminal ansi-wl-pprint base binary bytestring
    containers directory edit-distance filemanip filepath indents mtl
    optparse-applicative parsec pretty process regex-applicative split
    text
  ];
  testHaskellDepends = [
    aeson ansi-terminal ansi-wl-pprint base binary bytestring
    containers directory edit-distance filemanip filepath HUnit indents
    mtl optparse-applicative parsec pretty process QuickCheck
    quickcheck-io regex-applicative split tasty tasty-golden
    tasty-hunit tasty-quickcheck text union-find wl-pprint
  ];
  jailbreak = true;
  postInstall = ''
    ln -s $out/bin/elm-format-0.18 $out/bin/elm-format
  '';
  homepage = http://elm-lang.org;
  description = "A source code formatter for Elm";
  license = stdenv.lib.licenses.bsd3;
}