Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 38 lines 1.0 kB view raw
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "do-agent"; 5 version = "3.16.4"; 6 7 src = fetchFromGitHub { 8 owner = "digitalocean"; 9 repo = "do-agent"; 10 rev = version; 11 sha256 = "sha256-6pc8cbCRjZG1uPYTOBbQeRqVZ7YwFAapNzor2lqGuRE="; 12 }; 13 14 ldflags = [ 15 "-X main.version=${version}" 16 ]; 17 18 vendorHash = null; 19 20 doCheck = false; 21 22 postInstall = '' 23 install -Dm444 -t $out/lib/systemd/system $src/packaging/etc/systemd/system/do-agent.service 24 ''; 25 26 meta = with lib; { 27 description = "DigitalOcean droplet system metrics agent"; 28 longDescription = '' 29 do-agent is a program provided by DigitalOcean that collects system 30 metrics from a DigitalOcean Droplet (on which the program runs) and sends 31 them to DigitalOcean to provide resource usage graphs and alerting. 32 ''; 33 homepage = "https://github.com/digitalocean/do-agent"; 34 license = licenses.asl20; 35 maintainers = with maintainers; [ yvt ]; 36 platforms = platforms.linux; 37 }; 38}