nixpkgs/pkgs/tools/networking/s3cmd/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
662 B
Nix

{ lib, buildPythonApplication, fetchFromGitHub, python-magic, python-dateutil }:
buildPythonApplication rec {
pname = "s3cmd";
version = "2.4.0";
src = fetchFromGitHub {
owner = "s3tools";
repo = "s3cmd";
rev = "refs/tags/v${version}";
sha256 = "sha256-cxwf6+9WFt3U7+JdKRgZxFElD+Dgf2P2VyejHVoiDJk=";
};
propagatedBuildInputs = [ python-magic python-dateutil ];
dontUseSetuptoolsCheck = true;
meta = with lib; {
homepage = "https://s3tools.org/s3cmd";
description = "Command line tool for managing Amazon S3 and CloudFront services";
mainProgram = "s3cmd";
license = licenses.gpl2;
maintainers = [ ];
};
}