Merge pull request #287031 from Ligthiago/pget

pget: init at 0.2.1
This commit is contained in:
Nick Cao 2024-02-08 19:23:33 -05:00 committed by GitHub
commit 874b5433d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,31 @@
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "pget";
version = "0.2.1";
src = fetchFromGitHub {
owner = "Code-Hex";
repo = "pget";
rev = "v${version}";
hash = "sha256-SDe9QH1iSRfMBSCfYiOJPXUbDvxH5cCCWvQq9uTWT9Y=";
};
vendorHash = "sha256-p9sgvk5kfim3rApgp++1n05S9XrOWintxJfCeeySuBo=";
ldflags = [
"-w"
"-s"
"-X=main.version=${version}"
];
meta = with lib; {
description = "The fast, resumable file download client";
homepage = "https://github.com/Code-Hex/pget?tab=readme-ov-file";
license = licenses.mit;
maintainers = with maintainers; [ Ligthiago ];
mainProgram = "pget";
};
}