2021-01-10 23:54:33 -08:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, curl, pkg-config }:
|
2018-06-13 16:22:54 -07:00
|
|
|
|
2019-08-13 14:52:01 -07:00
|
|
|
stdenv.mkDerivation {
|
2018-11-04 15:38:42 -08:00
|
|
|
pname = "http-getter";
|
2020-12-08 21:00:36 -08:00
|
|
|
version = "unstable-2020-12-08";
|
2018-06-13 16:22:54 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tohojo";
|
|
|
|
repo = "http-getter";
|
2020-12-08 21:00:36 -08:00
|
|
|
rev = "0b20f08133206aaf225946814ceb6b85ab37e136";
|
|
|
|
sha256 = "0plyqqwfm9bysichda0w3akbdxf6279wd4mx8mda0c4mxd4xy9nl";
|
2018-06-13 16:22:54 -07:00
|
|
|
};
|
|
|
|
|
2020-12-30 23:48:55 -08:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ curl ];
|
2018-06-13 16:22:54 -07:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/tohojo/http-getter";
|
2018-06-13 16:22:54 -07:00
|
|
|
description = "Simple getter for HTTP URLs using cURL";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
}
|