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:
parent
ed8c23faef
commit
7e5edff4c2
@ -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:"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user