nixpkgs/pkgs/tools/networking/httpstat/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

26 lines
665 B
Nix

{ lib, fetchFromGitHub, curl, python3Packages, glibcLocales }:
python3Packages.buildPythonApplication rec {
pname = "httpstat";
version = "1.3.1";
src = fetchFromGitHub {
owner = "reorx";
repo = pname;
rev = version;
sha256 = "sha256-zUdis41sQpJ1E3LdNwaCVj6gexi/Rk21IBUgoFISiDM=";
};
doCheck = false; # No tests
buildInputs = [ glibcLocales ];
runtimeDeps = [ curl ];
LC_ALL = "en_US.UTF-8";
meta = {
description = "curl statistics made simple";
mainProgram = "httpstat";
homepage = "https://github.com/reorx/httpstat";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ nequissimus ];
};
}