From b29dc5253dcc405554dbeb861ad72f2ef2fc25a5 Mon Sep 17 00:00:00 2001 From: Potato Hatsue <1793913507@qq.com> Date: Fri, 28 May 2021 10:56:52 +0800 Subject: [PATCH] haskellPackages.nvfetcher: add to top-level --- .../haskell-modules/configuration-hackage2nix/main.yaml | 2 ++ pkgs/top-level/all-packages.nix | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml index 4769ac5fb123..39304ce1e56a 100644 --- a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml +++ b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml @@ -123,6 +123,8 @@ extra-packages: package-maintainers: abbradar: - Agda + berberman: + - nvfetcher bdesham: - pinboard-notes-backup cdepillabout: diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 459617a3aa5e..d2c56a142657 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7138,6 +7138,14 @@ in nvchecker = with python3Packages; toPythonApplication nvchecker; + nvfetcher = with haskell.lib; overrideCabal (justStaticExecutables haskellPackages.nvfetcher) (drv: { + executableToolDepends = [ makeWrapper ]; + postInstall = '' + wrapProgram $out/bin/nvfetcher \ + --prefix PATH ":" "${nvchecker}/bin:${nix-prefetch-git}/bin" + ''; + }); + miller = callPackage ../tools/text/miller { }; milu = callPackage ../applications/misc/milu { };