86c25cc226
This replaces reqwest with the more simplistic ureq library for performing required HTTP requests. Reqwest comes with a lot of (tokio-based) machinery for high-performance requesting that is a bit out of scope for journaldriver's needs. This clocks in at 62 (!) fewer dependencies after the change, with equivalent functionality. Wew.
19 lines
503 B
Nix
19 lines
503 B
Nix
# Nix derivation to build a release version of journaldriver.
|
|
#
|
|
# Note: This does not currently use Carnix due to an issue with
|
|
# linking against the `systemd.dev` derivation for libsystemd.
|
|
|
|
{ pkgs ? import <nixpkgs> {}
|
|
, doCheck ? true }:
|
|
|
|
with pkgs; rustPlatform.buildRustPackage {
|
|
inherit doCheck;
|
|
|
|
name = "journaldriver";
|
|
version = "1.0.0";
|
|
cargoSha256 = "03rq96hzv97wh2gbzi8sz796bqgh6pbpvdn0zy6zgq2f2sgkavsl";
|
|
|
|
src = ./.;
|
|
|
|
buildInputs = [ pkgconfig openssl systemd.dev ];
|
|
}
|