nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 45 lines 932 B view raw
1{ 2 lib, 3 stdenv, 4 buildGoModule, 5 fetchFromGitHub, 6}: 7 8buildGoModule rec { 9 pname = "exportarr"; 10 version = "2.3.0"; 11 12 src = fetchFromGitHub { 13 owner = "onedr0p"; 14 repo = "exportarr"; 15 rev = "v${version}"; 16 hash = "sha256-q1G0auXwmuJI0jecXcNg7PMF/+vZPGT00gLt/Qa86dE="; 17 }; 18 19 vendorHash = "sha256-XKIfOKgzJ41gQl/Jd8ZO3oNimZcoIY2d38ZojZAf53c="; 20 21 subPackages = [ "cmd/exportarr" ]; 22 23 CGO_ENABLE = 0; 24 25 ldflags = [ 26 "-s" 27 "-w" 28 ]; 29 30 tags = lib.optionals stdenv.hostPlatform.isLinux [ "netgo" ]; 31 32 preCheck = '' 33 # Run all tests. 34 unset subPackages 35 ''; 36 37 meta = { 38 description = "AIO Prometheus Exporter for Sonarr, Radarr or Lidarr"; 39 mainProgram = "exportarr"; 40 homepage = "https://github.com/onedr0p/exportarr"; 41 changelog = "https://github.com/onedr0p/exportarr/releases/tag/${src.rev}"; 42 license = lib.licenses.mit; 43 maintainers = with lib.maintainers; [ azahi ]; 44 }; 45}