git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #31336 from manveru/update-elm-format

elm-format: 0.5.2 -> 0.7.0

commit879827e15fd9999d6e52ec2a2a88b1cb5f149d22 authorTim Steinbach <NeQuissimus@users.noreply.github.com> dateTue 7 Nov 2017, 13:29 (9 years ago) parent1cb19a32c50340
1 file changed+23−20
pkgs/development/compilers/elm/packages/elm-format.nix+23−20
pkgs/development/compilers/elm/packages/elm-format.nix+23−20
@@ -1,37 +1,40 @@
1−{ mkDerivation, aeson, ansi-terminal, ansi-wl-pprint, base, binary
2−, bytestring, containers, directory, edit-distance, fetchgit
3−, filemanip, filepath, HUnit, indents, mtl, optparse-applicative
4−, parsec, pretty, process, QuickCheck, quickcheck-io
5−, regex-applicative, split, stdenv, tasty, tasty-golden
6−, tasty-hunit, tasty-quickcheck, text, union-find, wl-pprint
1+{ mkDerivation, ansi-terminal, ansi-wl-pprint, base, binary
2+, bytestring, Cabal, cmark, containers, directory, fetchgit
3+, filepath, free, HUnit, indents, json, mtl, optparse-applicative
4+, parsec, process, QuickCheck, quickcheck-io, split, stdenv, tasty
5+, tasty-golden, tasty-hunit, tasty-quickcheck, text
76}:
87mkDerivation {
98 pname = "elm-format";
10− version = "0.5.2";
9+ version = "0.7.0";
1110 src = fetchgit {
1211 url = "http://github.com/avh4/elm-format";
13− sha256 = "0lman7h6wr75y90javcc4y1scvwgv125gqqaqvfrd5xrfmm43gg8";
14− rev = "e452ed9342620e7bb0bc822983b96411d57143ef";
12+ sha256 = "1snl2lrrzdwgzi68agi3sdw84aslj04pzzxpm1mam9ic6dzhn3jf";
13+ rev = "da4b415c6a2b7e77b7d9f00beca3e45230e603fb";
1514 };
16− isLibrary = false;
15+
16+ doHaddock = false;
17+ isLibrary = true;
1718 isExecutable = true;
18− executableHaskellDepends = [
19− aeson ansi-terminal ansi-wl-pprint base binary bytestring
20− containers directory edit-distance filemanip filepath indents mtl
21− optparse-applicative parsec pretty process regex-applicative split
22− text
19+ setupHaskellDepends = [ base Cabal directory filepath process ];
20+ libraryHaskellDepends = [
21+ ansi-terminal ansi-wl-pprint base binary bytestring containers
22+ directory filepath free indents json mtl optparse-applicative
23+ parsec process split text
2324 ];
25+ executableHaskellDepends = [ base ];
2426 testHaskellDepends = [
25− aeson ansi-terminal ansi-wl-pprint base binary bytestring
26− containers directory edit-distance filemanip filepath HUnit indents
27− mtl optparse-applicative parsec pretty process QuickCheck
28− quickcheck-io regex-applicative split tasty tasty-golden
29− tasty-hunit tasty-quickcheck text union-find wl-pprint
27+ base cmark containers HUnit mtl parsec QuickCheck quickcheck-io
28+ split tasty tasty-golden tasty-hunit tasty-quickcheck text
3029 ];
3130 jailbreak = true;
3231 postInstall = ''
3332 ln -s $out/bin/elm-format-0.18 $out/bin/elm-format
3433 '';
34+ postPatch = ''
35+ sed -i "s|desc <-.*||" ./Setup.hs
36+ sed -i "s|gitDescribe = .*|gitDescribe = \\\\\"da4b415c\\\\\"\"|" ./Setup.hs
37+ '';
3538 homepage = http://elm-lang.org;
3639 description = "A source code formatter for Elm";
3740 license = stdenv.lib.licenses.bsd3;