tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
elm-format: 0.8.4 -> 0.8.5
Aaron VonderHaar
5 years ago
4fe41185
1e6c110b
+151
-26
8 changed files
expand all
collapse all
unified
split
pkgs
development
compilers
elm
default.nix
packages
avh4-lib.nix
bimap.nix
elm-format-lib.nix
elm-format-markdown.nix
elm-format-test-lib.nix
elm-format.nix
indents.nix
+6
-1
pkgs/development/compilers/elm/default.nix
reviewed
···
7
7
let
8
8
fetchElmDeps = import ./fetchElmDeps.nix { inherit stdenv lib fetchurl; };
9
9
10
10
-
hsPkgs = haskell.packages.ghc883.override {
10
10
+
hsPkgs = haskell.packages.ghc8103.override {
11
11
overrides = self: super: with haskell.lib; with lib;
12
12
let elmPkgs = rec {
13
13
elm = overrideCabal (self.callPackage ./packages/elm.nix { }) (drv: {
···
79
79
80
80
# Needed for elm-format
81
81
indents = self.callPackage ./packages/indents.nix {};
82
82
+
bimap = self.callPackage ./packages/bimap.nix {};
83
83
+
avh4-lib = self.callPackage ./packages/avh4-lib.nix {};
84
84
+
elm-format-lib = self.callPackage ./packages/elm-format-lib.nix {};
85
85
+
elm-format-test-lib = self.callPackage ./packages/elm-format-test-lib.nix {};
86
86
+
elm-format-markdown = self.callPackage ./packages/elm-format-markdown.nix {};
82
87
};
83
88
};
84
89
+29
pkgs/development/compilers/elm/packages/avh4-lib.nix
reviewed
···
1
1
+
{ mkDerivation, ansi-terminal, ansi-wl-pprint, array, base, bimap
2
2
+
, binary, bytestring, containers, directory, fetchgit, filepath
3
3
+
, lib, mtl, process, relude, tasty, tasty-discover, tasty-hspec
4
4
+
, tasty-hunit, text
5
5
+
}:
6
6
+
mkDerivation {
7
7
+
pname = "avh4-lib";
8
8
+
version = "0.0.0.1";
9
9
+
src = fetchgit {
10
10
+
url = "https://github.com/avh4/elm-format";
11
11
+
sha256 = "0bcjkcs1dy1csz0mpk7d4b5wf93fsj9p86x8fp42mb0pipdd0bh6";
12
12
+
rev = "80f15d85ee71e1663c9b53903f2b5b2aa444a3be";
13
13
+
fetchSubmodules = true;
14
14
+
};
15
15
+
postUnpack = "sourceRoot+=/avh4-lib; echo source root reset to $sourceRoot";
16
16
+
libraryHaskellDepends = [
17
17
+
ansi-terminal ansi-wl-pprint array base bimap binary bytestring
18
18
+
containers directory filepath mtl process relude text
19
19
+
];
20
20
+
testHaskellDepends = [
21
21
+
ansi-terminal ansi-wl-pprint array base bimap binary bytestring
22
22
+
containers directory filepath mtl process relude tasty tasty-hspec
23
23
+
tasty-hunit text
24
24
+
];
25
25
+
testToolDepends = [ tasty-discover ];
26
26
+
doHaddock = false;
27
27
+
description = "Common code for haskell projects";
28
28
+
license = lib.licenses.bsd3;
29
29
+
}
+15
pkgs/development/compilers/elm/packages/bimap.nix
reviewed
···
1
1
+
{ mkDerivation, base, containers, exceptions, lib, QuickCheck
2
2
+
, template-haskell
3
3
+
}:
4
4
+
mkDerivation {
5
5
+
pname = "bimap";
6
6
+
version = "0.3.3";
7
7
+
sha256 = "73829355c7bcbd3eedba22a382a04a3ab641702b00828790ec082ec2db3a8ad1";
8
8
+
libraryHaskellDepends = [ base containers exceptions ];
9
9
+
testHaskellDepends = [
10
10
+
base containers exceptions QuickCheck template-haskell
11
11
+
];
12
12
+
homepage = "https://github.com/joelwilliamson/bimap";
13
13
+
description = "Bidirectional mapping between two key types";
14
14
+
license = lib.licenses.bsd3;
15
15
+
}
+33
pkgs/development/compilers/elm/packages/elm-format-lib.nix
reviewed
···
1
1
+
{ mkDerivation, ansi-terminal, ansi-wl-pprint, array, avh4-lib
2
2
+
, base, bimap, binary, bytestring, containers, directory
3
3
+
, elm-format-markdown, elm-format-test-lib, fetchgit, filepath
4
4
+
, indents, json, lib, mtl, optparse-applicative, parsec, process
5
5
+
, relude, split, tasty, tasty-discover, tasty-hspec, tasty-hunit
6
6
+
, text
7
7
+
}:
8
8
+
mkDerivation {
9
9
+
pname = "elm-format-lib";
10
10
+
version = "0.0.0.1";
11
11
+
src = fetchgit {
12
12
+
url = "https://github.com/avh4/elm-format";
13
13
+
sha256 = "0bcjkcs1dy1csz0mpk7d4b5wf93fsj9p86x8fp42mb0pipdd0bh6";
14
14
+
rev = "80f15d85ee71e1663c9b53903f2b5b2aa444a3be";
15
15
+
fetchSubmodules = true;
16
16
+
};
17
17
+
postUnpack = "sourceRoot+=/elm-format-lib; echo source root reset to $sourceRoot";
18
18
+
libraryHaskellDepends = [
19
19
+
ansi-terminal ansi-wl-pprint array avh4-lib base bimap binary
20
20
+
bytestring containers directory elm-format-markdown filepath
21
21
+
indents json mtl optparse-applicative parsec process relude text
22
22
+
];
23
23
+
testHaskellDepends = [
24
24
+
ansi-terminal ansi-wl-pprint array avh4-lib base bimap binary
25
25
+
bytestring containers directory elm-format-markdown
26
26
+
elm-format-test-lib filepath indents json mtl optparse-applicative
27
27
+
parsec process relude split tasty tasty-hspec tasty-hunit text
28
28
+
];
29
29
+
testToolDepends = [ tasty-discover ];
30
30
+
doHaddock = false;
31
31
+
description = "Common code used by elm-format and elm-refactor";
32
32
+
license = lib.licenses.bsd3;
33
33
+
}
+16
pkgs/development/compilers/elm/packages/elm-format-markdown.nix
reviewed
···
1
1
+
{ mkDerivation, base, containers, fetchgit, lib, mtl, text }:
2
2
+
mkDerivation {
3
3
+
pname = "elm-format-markdown";
4
4
+
version = "0.0.0.1";
5
5
+
src = fetchgit {
6
6
+
url = "https://github.com/avh4/elm-format";
7
7
+
sha256 = "0bcjkcs1dy1csz0mpk7d4b5wf93fsj9p86x8fp42mb0pipdd0bh6";
8
8
+
rev = "80f15d85ee71e1663c9b53903f2b5b2aa444a3be";
9
9
+
fetchSubmodules = true;
10
10
+
};
11
11
+
postUnpack = "sourceRoot+=/elm-format-markdown; echo source root reset to $sourceRoot";
12
12
+
libraryHaskellDepends = [ base containers mtl text ];
13
13
+
doHaddock = false;
14
14
+
description = "Markdown parsing for Elm documentation comments";
15
15
+
license = lib.licenses.bsd3;
16
16
+
}
+27
pkgs/development/compilers/elm/packages/elm-format-test-lib.nix
reviewed
···
1
1
+
{ mkDerivation, avh4-lib, base, containers, fetchgit, filepath
2
2
+
, hspec-core, hspec-golden, lib, mtl, split, tasty, tasty-discover
3
3
+
, tasty-hspec, tasty-hunit, text
4
4
+
}:
5
5
+
mkDerivation {
6
6
+
pname = "elm-format-test-lib";
7
7
+
version = "0.0.0.1";
8
8
+
src = fetchgit {
9
9
+
url = "https://github.com/avh4/elm-format";
10
10
+
sha256 = "0bcjkcs1dy1csz0mpk7d4b5wf93fsj9p86x8fp42mb0pipdd0bh6";
11
11
+
rev = "80f15d85ee71e1663c9b53903f2b5b2aa444a3be";
12
12
+
fetchSubmodules = true;
13
13
+
};
14
14
+
postUnpack = "sourceRoot+=/elm-format-test-lib; echo source root reset to $sourceRoot";
15
15
+
libraryHaskellDepends = [
16
16
+
avh4-lib base containers filepath hspec-core hspec-golden mtl split
17
17
+
tasty tasty-hspec tasty-hunit text
18
18
+
];
19
19
+
testHaskellDepends = [
20
20
+
avh4-lib base containers filepath hspec-core hspec-golden mtl split
21
21
+
tasty tasty-hspec tasty-hunit text
22
22
+
];
23
23
+
testToolDepends = [ tasty-discover ];
24
24
+
doHaddock = false;
25
25
+
description = "Test helpers used by elm-format-tests and elm-refactor-tests";
26
26
+
license = lib.licenses.bsd3;
27
27
+
}
+24
-24
pkgs/development/compilers/elm/packages/elm-format.nix
reviewed
···
1
1
-
{ mkDerivation, fetchgit, ansi-terminal, ansi-wl-pprint, array, base, binary
2
2
-
, bytestring, cmark, containers, directory, filepath, free, HUnit
3
3
-
, indents, json, mtl, optparse-applicative, parsec, process
4
4
-
, QuickCheck, quickcheck-io, split, lib, tasty, tasty-golden
5
5
-
, tasty-hunit, tasty-quickcheck, text
1
1
+
{ mkDerivation, ansi-wl-pprint, avh4-lib, base, bimap, cmark
2
2
+
, containers, elm-format-lib, elm-format-test-lib, fetchgit, json
3
3
+
, lib, mtl, optparse-applicative, parsec, QuickCheck, quickcheck-io
4
4
+
, relude, tasty, tasty-hspec, tasty-hunit, tasty-quickcheck, text
6
5
}:
7
6
mkDerivation {
8
7
pname = "elm-format";
9
9
-
version = "0.8.4";
8
8
+
version = "0.8.5";
10
9
src = fetchgit {
11
10
url = "https://github.com/avh4/elm-format";
12
12
-
sha256 = "0cxlhhdjx4h9g03z83pxv91qrysbi0ab92rl52jb0yvkaix989ai";
13
13
-
rev = "5bd4fbe591fe8b456160c180cb875ef60bc57890";
11
11
+
sha256 = "0bcjkcs1dy1csz0mpk7d4b5wf93fsj9p86x8fp42mb0pipdd0bh6";
12
12
+
rev = "80f15d85ee71e1663c9b53903f2b5b2aa444a3be";
13
13
+
fetchSubmodules = true;
14
14
};
15
15
-
postPatch = ''
16
16
-
mkdir -p ./generated
17
17
-
cat <<EOHS > ./generated/Build_elm_format.hs
18
18
-
module Build_elm_format where
19
19
-
20
20
-
gitDescribe :: String
21
21
-
gitDescribe = "0.8.4"
22
22
-
EOHS
23
23
-
'';
24
15
isLibrary = false;
25
16
isExecutable = true;
26
26
-
libraryHaskellDepends = [
27
27
-
ansi-terminal ansi-wl-pprint array base binary bytestring
28
28
-
containers directory filepath free indents json mtl
29
29
-
optparse-applicative parsec process split text
17
17
+
executableHaskellDepends = [
18
18
+
ansi-wl-pprint avh4-lib base containers elm-format-lib json
19
19
+
optparse-applicative relude text
30
20
];
31
31
-
executableHaskellDepends = [ base ];
32
21
testHaskellDepends = [
33
33
-
base cmark containers HUnit mtl parsec QuickCheck quickcheck-io
34
34
-
split tasty tasty-golden tasty-hunit tasty-quickcheck text
22
22
+
ansi-wl-pprint avh4-lib base bimap cmark containers elm-format-lib
23
23
+
elm-format-test-lib json mtl optparse-applicative parsec QuickCheck
24
24
+
quickcheck-io relude tasty tasty-hspec tasty-hunit tasty-quickcheck
25
25
+
text
35
26
];
36
27
doHaddock = false;
37
28
homepage = "https://elm-lang.org";
38
29
description = "A source code formatter for Elm";
39
30
license = lib.licenses.bsd3;
31
31
+
postPatch = ''
32
32
+
mkdir -p ./generated
33
33
+
cat <<EOHS > ./generated/Build_elm_format.hs
34
34
+
module Build_elm_format where
35
35
+
36
36
+
gitDescribe :: String
37
37
+
gitDescribe = "0.8.5"
38
38
+
EOHS
39
39
+
'';
40
40
}
+1
-1
pkgs/development/compilers/elm/packages/indents.nix
reviewed
···
1
1
-
{ mkDerivation, base, concatenative, mtl, parsec, lib }:
1
1
+
{ mkDerivation, base, concatenative, lib, mtl, parsec }:
2
2
mkDerivation {
3
3
pname = "indents";
4
4
version = "0.3.3";