1
0
Fork 0

Install haskell-docs-cli

This commit is contained in:
Malte Brandy 2021-09-28 22:05:53 +02:00
parent a31a7a8982
commit 1e5919eef2
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
3 changed files with 138 additions and 1 deletions

View file

@ -0,0 +1,3 @@
self: super: {
haskell-docs-cli = self.haskellPackages.callPackage ./package.nix { };
}

View file

@ -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;
}

View file

@ -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