mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
f8c4a98e8e
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
32 lines
672 B
Nix
32 lines
672 B
Nix
{ 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 = "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";
|
|
};
|
|
}
|