1
1
mirror of https://github.com/nmattia/niv.git synced 2024-11-07 22:36:53 +03:00

Add completions and disable profiling

This commit is contained in:
Michael Peyton Jones 2019-06-15 15:55:08 +01:00 committed by Nicolas Mattia
parent 652b763b79
commit 26c7f9104b

View File

@ -8,7 +8,12 @@ with rec
niv-source = gitignoreSource ./.; niv-source = gitignoreSource ./.;
haskellPackages = pkgs.haskellPackages.override haskellPackages = pkgs.haskellPackages.override
{ overrides = _: haskellPackages: { overrides = _: haskellPackages:
{ niv = haskellPackages.callCabal2nix "niv" niv-source {}; }; { niv =
pkgs.haskell.lib.disableExecutableProfiling (
pkgs.haskell.lib.disableLibraryProfiling (
pkgs.haskell.lib.generateOptparseApplicativeCompletion "niv" (
haskellPackages.callCabal2nix "niv" niv-source {})));
};
}; };
niv = haskellPackages.niv; niv = haskellPackages.niv;