1
1
mirror of https://github.com/nmattia/niv.git synced 2024-09-05 20:15:26 +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
{ overrides = _: haskellPackages:
{ niv =
pkgs.haskell.lib.failOnAllWarnings (
pkgs.haskell.lib.disableExecutableProfiling (
pkgs.haskell.lib.disableLibraryProfiling (
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.stdenv.shell}
cabal upload "$@" "${niv-sdist}/niv-${niv-version}.tar.gz"
'';
@ -40,7 +42,7 @@ with rec
repl_niv() {
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:"

View File

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