3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #31336 from manveru/update-elm-format

elm-format: 0.5.2 -> 0.7.0
This commit is contained in:
Tim Steinbach 2017-11-07 13:29:57 +00:00 committed by GitHub
commit 879827e15f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,37 +1,40 @@
{ mkDerivation, aeson, ansi-terminal, ansi-wl-pprint, base, binary { mkDerivation, ansi-terminal, ansi-wl-pprint, base, binary
, bytestring, containers, directory, edit-distance, fetchgit , bytestring, Cabal, cmark, containers, directory, fetchgit
, filemanip, filepath, HUnit, indents, mtl, optparse-applicative , filepath, free, HUnit, indents, json, mtl, optparse-applicative
, parsec, pretty, process, QuickCheck, quickcheck-io , parsec, process, QuickCheck, quickcheck-io, split, stdenv, tasty
, regex-applicative, split, stdenv, tasty, tasty-golden , tasty-golden, tasty-hunit, tasty-quickcheck, text
, tasty-hunit, tasty-quickcheck, text, union-find, wl-pprint
}: }:
mkDerivation { mkDerivation {
pname = "elm-format"; pname = "elm-format";
version = "0.5.2"; version = "0.7.0";
src = fetchgit { src = fetchgit {
url = "http://github.com/avh4/elm-format"; url = "http://github.com/avh4/elm-format";
sha256 = "0lman7h6wr75y90javcc4y1scvwgv125gqqaqvfrd5xrfmm43gg8"; sha256 = "1snl2lrrzdwgzi68agi3sdw84aslj04pzzxpm1mam9ic6dzhn3jf";
rev = "e452ed9342620e7bb0bc822983b96411d57143ef"; rev = "da4b415c6a2b7e77b7d9f00beca3e45230e603fb";
}; };
isLibrary = false;
doHaddock = false;
isLibrary = true;
isExecutable = true; isExecutable = true;
executableHaskellDepends = [ setupHaskellDepends = [ base Cabal directory filepath process ];
aeson ansi-terminal ansi-wl-pprint base binary bytestring libraryHaskellDepends = [
containers directory edit-distance filemanip filepath indents mtl ansi-terminal ansi-wl-pprint base binary bytestring containers
optparse-applicative parsec pretty process regex-applicative split directory filepath free indents json mtl optparse-applicative
text parsec process split text
]; ];
executableHaskellDepends = [ base ];
testHaskellDepends = [ testHaskellDepends = [
aeson ansi-terminal ansi-wl-pprint base binary bytestring base cmark containers HUnit mtl parsec QuickCheck quickcheck-io
containers directory edit-distance filemanip filepath HUnit indents split tasty tasty-golden tasty-hunit tasty-quickcheck text
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; jailbreak = true;
postInstall = '' postInstall = ''
ln -s $out/bin/elm-format-0.18 $out/bin/elm-format ln -s $out/bin/elm-format-0.18 $out/bin/elm-format
''; '';
postPatch = ''
sed -i "s|desc <-.*||" ./Setup.hs
sed -i "s|gitDescribe = .*|gitDescribe = \\\\\"da4b415c\\\\\"\"|" ./Setup.hs
'';
homepage = http://elm-lang.org; homepage = http://elm-lang.org;
description = "A source code formatter for Elm"; description = "A source code formatter for Elm";
license = stdenv.lib.licenses.bsd3; license = stdenv.lib.licenses.bsd3;