From b8f13f529b24226886c561b842f612ca1ca8a326 Mon Sep 17 00:00:00 2001 From: Aaron VonderHaar Date: Tue, 11 Apr 2023 17:01:16 -0700 Subject: [PATCH] package/nix: disable -Werror=unused-packages --- package/nix/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/nix/build.sh b/package/nix/build.sh index eda5efa62..04cbc6eea 100755 --- a/package/nix/build.sh +++ b/package/nix/build.sh @@ -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