mirror of
https://github.com/nmattia/niv.git
synced 2024-09-18 19:07:19 +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
|
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:"
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user