git.iko.soy/typeable/nixpkgs
on master help sign in
elmPackages.*: add meta

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

commitccdf2b2be6766f0866c675c1d8288e89f11e5440 authorMarek Fajkus <marek.faj@gmail.com> dateSat 16 Jan 2021, 18:46 (6 years ago) parent703b378
2 files changed+84−16
pkgs/development/compilers/elm/default.nix+84−8 pkgs/development/compilers/elm/packages/elm-json.nix−8
pkgs/development/compilers/elm/default.nix+84−8
@@ -7,7 +7,7 @@ let
77 fetchElmDeps = import ./fetchElmDeps.nix { inherit stdenv lib fetchurl; };
88
99 hsPkgs = haskell.packages.ghc883.override {
10− overrides = self: super: with haskell.lib;
10+ overrides = self: super: with haskell.lib; with lib;
1111 let elmPkgs = rec {
1212 elm = overrideCabal (self.callPackage ./packages/elm.nix { }) (drv: {
1313 # sadly with parallelism most of the time breaks compilation
@@ -23,6 +23,11 @@ let
2323 wrapProgram $out/bin/elm \
2424 --prefix PATH ':' ${lib.makeBinPath [ nodejs ]}
2525 '';
26+
27+ description = "A delightful language for reliable webapps";
28+ homepage = "https://elm-lang.org/";
29+ license = licenses.bsd3;
30+ maintainers = with maintainers; [ domenkozar turbomack ];
2631 });
2732
2833 /*
@@ -31,6 +36,11 @@ let
3136 */
3237 elm-format = justStaticExecutables (overrideCabal (self.callPackage ./packages/elm-format.nix {}) (drv: {
3338 jailbreak = true;
39+
40+ description = "Formats Elm source code according to a standard set of rules based on the official Elm Style Guide";
41+ homepage = "https://github.com/avh4/elm-format";
42+ license = licenses.bsd3;
43+ maintainers = with maintainers; [ turbomack ];
3444 }));
3545
3646 elmi-to-json = justStaticExecutables (overrideCabal (self.callPackage ./packages/elmi-to-json.nix {}) (drv: {
@@ -39,6 +49,11 @@ let
3949 hpack
4050 '';
4151 jailbreak = true;
52+
53+ description = "Tool that reads .elmi files (Elm interface file) generated by the elm compiler";
54+ homepage = "https://github.com/stoeffel/elmi-to-json";
55+ license = licenses.bsd3;
56+ maintainers = [ maintainers.turbomack ];
4257 }));
4358
4459 elm-instrument = justStaticExecutables (overrideCabal (self.callPackage ./packages/elm-instrument.nix {}) (drv: {
@@ -48,6 +63,11 @@ let
4863 jailbreak = true;
4964 # Tests are failing because of missing instances for Eq and Show type classes
5065 doCheck = false;
66+
67+ description = "Instrument Elm code as a preprocessing step for elm-coverage";
68+ homepage = "https://github.com/zwilias/elm-instrument";
69+ license = licenses.bsd3;
70+ maintainers = [ maintainers.turbomack ];
5171 }));
5272
5373 inherit fetchElmDeps;
@@ -74,9 +94,17 @@ let
7494 inherit (hsPkgs.elmPkgs) elm;
7595 };
7696
77− elmRustPackages = {
97+ elmRustPackages = {
7898 elm-json = import ./packages/elm-json.nix {
7999 inherit rustPlatform fetchurl openssl stdenv pkg-config;
100+ } // {
101+ meta = with lib; {
102+ description = "Install, upgrade and uninstall Elm dependencies";
103+ homepage = "https://github.com/zwilias/elm-json";
104+ license = licenses.mit;
105+ maintainers = [ maintainers.turbomack ];
106+ platforms = platforms.linux;
107+ };
80108 };
81109 };
82110
@@ -89,10 +117,24 @@ let
89117 in with hsPkgs.elmPkgs; {
90118
91119 elm-test = patchBinwrap [elmi-to-json]
92− nodePkgs.elm-test;
120+ nodePkgs.elm-test // {
121+ meta = with stdenv.lib; {
122+ description = "Runs elm-test suites from Node.js";
123+ homepage = "https://github.com/rtfeldman/node-test-runner";
124+ license = licenses.bsd3;
125+ maintainers = [ maintainers.turbomack ];
126+ };
127+ };
93128
94129 elm-verify-examples = patchBinwrap [elmi-to-json]
95− nodePkgs.elm-verify-examples;
130+ nodePkgs.elm-verify-examples // {
131+ meta = with stdenv.lib; {
132+ description = "Verify examples in your docs";
133+ homepage = "https://github.com/stoeffel/elm-verify-examples";
134+ license = licenses.bsd3;
135+ maintainers = [ maintainers.turbomack ];
136+ };
137+ };
96138
97139 elm-coverage =
98140 let patched = patchNpmElm (patchBinwrap [elmi-to-json] nodePkgs.elm-coverage);
@@ -111,17 +153,51 @@ let
111153 mkdir -p unpacked_bin
112154 ln -sf ${elm-instrument}/bin/elm-instrument unpacked_bin/elm-instrument
113155 '';
156+ meta = with stdenv.lib; {
157+ description = "Work in progress - Code coverage tooling for Elm";
158+ homepage = "https://github.com/zwilias/elm-coverage";
159+ license = licenses.bsd3;
160+ maintainers = [ maintainers.turbomack ];
161+ };
114162 });
115163
116164 create-elm-app = patchNpmElm (patchBinwrap [elmi-to-json]
117− nodePkgs.create-elm-app);
165+ nodePkgs.create-elm-app) // {
166+ meta = with stdenv.lib; {
167+ description = "Create Elm apps with no build configuration";
168+ homepage = "https://github.com/halfzebra/create-elm-app";
169+ license = licenses.mit;
170+ maintainers = [ maintainers.turbomack ];
171+ };
172+ };
118173
119174 elm-review = patchBinwrap [elmRustPackages.elm-json]
120− nodePkgs.elm-review;
175+ nodePkgs.elm-review // {
176+ meta = with stdenv.lib; {
177+ description = "Analyzes Elm projects, to help find mistakes before your users find them";
178+ homepage = "https://package.elm-lang.org/packages/jfmengels/elm-review/${nodePkgs.elm-review.version}";
179+ license = licenses.bsd3;
180+ maintainers = [ maintainers.turbomack ];
181+ };
182+ };
121183
122− elm-language-server = nodePkgs."@elm-tooling/elm-language-server";
184+ elm-language-server = nodePkgs."@elm-tooling/elm-language-server" // {
185+ meta = with stdenv.lib; {
186+ description = "Language server implementation for Elm";
187+ homepage = "https://github.com/elm-tooling/elm-language-server";
188+ license = licenses.mit;
189+ maintainers = [ maintainers.turbomack ];
190+ };
191+ };
123192
124− elm-optimize-level-2 = nodePkgs."elm-optimize-level-2";
193+ elm-optimize-level-2 = nodePkgs."elm-optimize-level-2" // {
194+ meta = with stdenv.lib; {
195+ description = "A second level of optimization for the Javascript that the Elm Compiler produces";
196+ homepage = "https://github.com/mdgriffith/elm-optimize-level-2";
197+ license = licenses.bsd3;
198+ maintainers = [ maintainers.turbomack ];
199+ };
200+ };
125201
126202 inherit (nodePkgs) elm-doc-preview elm-live elm-upgrade elm-xref elm-analyse;
127203 };
pkgs/development/compilers/elm/packages/elm-json.nix−8
@@ -18,12 +18,4 @@ rustPlatform.buildRustPackage rec {
1818
1919 # Tests perform networking and therefore can't work in sandbox
2020 doCheck = false;
21−
22− meta = with stdenv.lib; {
23− description = "Install, upgrade and uninstall Elm dependencies";
24− homepage = "https://github.com/zwilias/elm-json";
25− license = licenses.mit;
26− maintainers = [ maintainers.turbomack ];
27− platforms = platforms.linux;
28− };
2921}