diff --git a/overlays/haskell-docs-cli/default.nix b/overlays/haskell-docs-cli/default.nix new file mode 100644 index 00000000..98e809bf --- /dev/null +++ b/overlays/haskell-docs-cli/default.nix @@ -0,0 +1,3 @@ +self: super: { + haskell-docs-cli = self.haskellPackages.callPackage ./package.nix { }; +} diff --git a/overlays/haskell-docs-cli/package.nix b/overlays/haskell-docs-cli/package.nix new file mode 100644 index 00000000..afd35b48 --- /dev/null +++ b/overlays/haskell-docs-cli/package.nix @@ -0,0 +1,134 @@ +{ mkDerivation +, aeson +, ansi-wl-pprint +, async +, base +, bytestring +, containers +, directory +, exceptions +, extra +, fetchzip +, filepath +, hashable +, haskeline +, hoogle +, hpack +, html-conduit +, http-client +, http-client-tls +, http-types +, lib +, mtl +, network-uri +, optparse-applicative +, process +, temporary +, terminal-size +, text +, time +, transformers +, xml-conduit +}: +mkDerivation { + pname = "haskell-docs-cli"; + version = "1.0.0.0"; + src = fetchzip { + url = "https://github.com/lazamar/haskell-docs-cli/archive/refs/heads/main.tar.gz"; + sha256 = "0zfvh7bfvrvqw6y2galf410cfrk782psr5mfkl0pl8lpgzksa5kw"; + }; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + aeson + ansi-wl-pprint + async + base + bytestring + containers + directory + exceptions + extra + filepath + hashable + haskeline + hoogle + html-conduit + http-client + http-client-tls + http-types + mtl + network-uri + optparse-applicative + process + temporary + terminal-size + text + time + transformers + xml-conduit + ]; + libraryToolDepends = [ hpack ]; + executableHaskellDepends = [ + aeson + ansi-wl-pprint + async + base + bytestring + containers + directory + exceptions + extra + filepath + hashable + haskeline + hoogle + html-conduit + http-client + http-client-tls + http-types + mtl + network-uri + optparse-applicative + process + temporary + terminal-size + text + time + transformers + xml-conduit + ]; + testHaskellDepends = [ + aeson + ansi-wl-pprint + async + base + bytestring + containers + directory + exceptions + extra + filepath + hashable + haskeline + hoogle + html-conduit + http-client + http-client-tls + http-types + mtl + network-uri + optparse-applicative + process + temporary + terminal-size + text + time + transformers + xml-conduit + ]; + prePatch = "hpack"; + homepage = "https://github.com/githubuser/haskell-docs-cli#readme"; + description = "Search Hoogle and navigate Hackage from the command line"; + license = lib.licenses.bsd3; +} diff --git a/overlays/pkgSets.nix b/overlays/pkgSets.nix index e42434ff..1b67f479 100644 --- a/overlays/pkgSets.nix +++ b/overlays/pkgSets.nix @@ -38,7 +38,7 @@ self: super: { }; desktop-pkgs = { inherit (self) lm_sensors xwayland xdg_utils libnotify kassandra kassandra2 shotcut mlt audacity paprefs wl-clipboard - nheko dconf2nix + nheko dconf2nix haskell-docs-cli ; inherit (self.gnomeExtensions) appindicator system-monitor clipboard-indicator emoji-selector