Skip to content

Commit

Permalink
package/nix: disable -Werror=unused-packages
Browse files Browse the repository at this point in the history
  • Loading branch information
avh4 committed Apr 12, 2023
1 parent 89945ed commit b8f13f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package/nix/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ else
fi
popd

cabal2nix --no-haddock https://github.com/avh4/elm-format --revision "$REV" --subpath avh4-lib > nixpkgs/pkgs/development/compilers/elm/packages/avh4-lib.nix
cabal2nix --no-haddock --flag='--ghc-option=-Wno-error=unused-packages' https://github.com/avh4/elm-format --revision "$REV" --subpath avh4-lib \
| sed -e 's#-f--ghc-option=#--ghc-option=#;s#-wno-#-Wno-#' \
> nixpkgs/pkgs/development/compilers/elm/packages/avh4-lib.nix
cabal2nix --no-haddock https://github.com/avh4/elm-format --revision "$REV" --subpath elm-format-lib > nixpkgs/pkgs/development/compilers/elm/packages/elm-format-lib.nix
cabal2nix --no-haddock https://github.com/avh4/elm-format --revision "$REV" --subpath elm-format-test-lib > nixpkgs/pkgs/development/compilers/elm/packages/elm-format-test-lib.nix
cabal2nix --no-haddock https://github.com/avh4/elm-format --revision "$REV" --subpath elm-format-markdown > nixpkgs/pkgs/development/compilers/elm/packages/elm-format-markdown.nix
Expand Down

0 comments on commit b8f13f5

Please sign in to comment.