1
1
mirror of https://github.com/nmattia/niv.git synced 2024-09-16 01:47:08 +03:00

Fix package for release

This commit is contained in:
Nicolas Mattia 2019-06-18 10:26:03 +02:00
parent ed8c23faef
commit 7e5edff4c2
2 changed files with 5 additions and 4 deletions

View File

@ -9,10 +9,11 @@ with rec
haskellPackages = pkgs.haskellPackages.override haskellPackages = pkgs.haskellPackages.override
{ overrides = _: haskellPackages: { overrides = _: haskellPackages:
{ niv = { niv =
pkgs.haskell.lib.failOnAllWarnings (
pkgs.haskell.lib.disableExecutableProfiling ( pkgs.haskell.lib.disableExecutableProfiling (
pkgs.haskell.lib.disableLibraryProfiling ( pkgs.haskell.lib.disableLibraryProfiling (
pkgs.haskell.lib.generateOptparseApplicativeCompletion "niv" ( pkgs.haskell.lib.generateOptparseApplicativeCompletion "niv" (
haskellPackages.callCabal2nix "niv" niv-source {}))); haskellPackages.callCabal2nix "niv" niv-source {}))));
}; };
}; };
@ -26,6 +27,7 @@ with rec
}; };
pkgs.writeScript "cabal-upload" pkgs.writeScript "cabal-upload"
'' ''
#!${pkgs.stdenv.shell}
cabal upload "$@" "${niv-sdist}/niv-${niv-version}.tar.gz" cabal upload "$@" "${niv-sdist}/niv-${niv-version}.tar.gz"
''; '';
@ -40,7 +42,7 @@ with rec
repl_niv() { repl_niv() {
shopt -s globstar shopt -s globstar
ghci -Wall app/Niv.hs src/**/*.hs ghci -clear-package-db -global-package-db -Wall app/Niv.hs src/**/*.hs
} }
echo "To start a REPL session for the test suite, run:" echo "To start a REPL session for the test suite, run:"

View File

@ -11,7 +11,6 @@ description: Easy dependency management for Nix projects.
ghc-options: ghc-options:
- -Wall - -Wall
- -Werror
# For macOS: https://github.com/gibiansky/IHaskell/issues/942 # For macOS: https://github.com/gibiansky/IHaskell/issues/942
- -optP-Wno-nonportable-include-path - -optP-Wno-nonportable-include-path
@ -22,7 +21,7 @@ extra-source-files:
dependencies: dependencies:
- aeson - aeson
- aeson-pretty - aeson-pretty
- base - base < 5
- bytestring - bytestring
- directory - directory
- file-embed - file-embed