-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
29 lines (28 loc) · 1.09 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ mkDerivation, aeson, base, bytestring, containers, directory
, http-client, http-client-tls, http-types, lens, lib, modern-uri
, network-uri, parsec, parser-combinators, text, time
, transformers, pkgs
}:
let
nix-thunk = pkgs.fetchFromGitHub {
owner = "obsidiansystems";
repo = "nix-thunk";
rev = "8fe6f2de2579ea3f17df2127f6b9f49db1be189f";
sha256 = "14l2k6wipam33696v3dr3chysxhqcy0j7hxfr10c0bxd1pxv7s8b";
};
n = import nix-thunk {};
sources = n.mapSubdirectories n.thunkSource ./thunks;
scrappy-core = pkgs.haskellPackages.callCabal2nix "scrappy-core" sources.scrappy-core {};
in mkDerivation {
pname = "scrappy-requests";
version = "0.1.0.4";
src = ./.;
libraryHaskellDepends = [
aeson base bytestring containers directory http-client
http-client-tls http-types lens modern-uri network-uri parsec
parser-combinators text time transformers scrappy-core
];
homepage = "https://github.com/Ace-Interview-Prep/scrappy";
description = "html pattern matching library and high-level interface concurrent requests lib for webscraping";
license = lib.licenses.bsd3;
}