elm2nix 0.2 → 0.2.1
raw patch · 4 files changed
+11/−6 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +5/−0
- README.md +3/−3
- data/default.nix +2/−2
- elm2nix.cabal +1/−1
CHANGELOG.md view
@@ -1,5 +1,10 @@ # Changelog for elm2nix +## 0.2.1 (2020-11-22)++- #40 Fix compatibility with newer versions of uglify.js (@turboMaCk)+- #39 Switch to unversioned collection `nodePackages` for npm dependencies in default.nix (@ShrykeWindgrace)+ ## 0.2 (2019-12-28) - #35 Elm 0.19.1 support (@gpampara)
README.md view
@@ -1,6 +1,6 @@ # elm2nix -[](https://travis-ci.org/hercules-ci/elm2nix)+ [](https://hackage.haskell.org/package/elm2nix) Convert an [Elm](http://elm-lang.org/) project into@@ -14,7 +14,7 @@ ## Assumptions -Supports Elm 0.19.x+Supports Elm 0.19.1 ## Installation @@ -22,7 +22,7 @@ Make sure you have up to date stable or unstable nixpkgs channel. - $ nix-env -iA elm2nix+ $ nix-env -i elm2nix ### From source
data/default.nix view
@@ -18,7 +18,7 @@ inherit name src; buildInputs = [ elmPackages.elm ]- ++ lib.optional outputJavaScript nodePackages_10_x.uglify-js;+ ++ lib.optional outputJavaScript nodePackages.uglify-js; buildPhase = pkgs.elmPackages.fetchElmDeps { elmPackages = import srcs;@@ -37,7 +37,7 @@ \${lib.optionalString outputJavaScript '' echo "minifying \${elmfile module}" uglifyjs $out/\${module}.\${extension} --compress 'pure_funcs="F2,F3,F4,F5,F6,F7,F8,F9,A2,A3,A4,A5,A6,A7,A8,A9",pure_getters,keep_fargs=false,unsafe_comps,unsafe' \\- | uglifyjs --mangle --output=$out/\${module}.min.\${extension}+ | uglifyjs --mangle --output $out/\${module}.min.\${extension} ''} '') targets)} '';
elm2nix.cabal view
@@ -3,7 +3,7 @@ -- see: https://github.com/sol/hpack name: elm2nix-version: 0.2+version: 0.2.1 synopsis: Turn your Elm project into buildable Nix project description: Please see the README on Github at <https://github.com/domenkozar/elm2nix#readme> homepage: https://github.com/domenkozar/elm2nix#readme