diff options
author | Andrey Donets <donets.andre@gmail.com> | 2024-02-07 21:02:33 +0400 |
---|---|---|
committer | Andrey Donets <donets.andre@gmail.com> | 2024-02-07 21:02:33 +0400 |
commit | b7931ec92c935b62c822236b0bd632719893ddc5 (patch) | |
tree | 1690245ec27c42dbecb96d61cf264ad8b379e4e2 /pkgs/by-name/pg | |
parent | 18bc4c5312938096f4e31a244bcca6e959868530 (diff) |
pget: init at 0.2.1
Diffstat (limited to 'pkgs/by-name/pg')
-rw-r--r-- | pkgs/by-name/pg/pget/package.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/by-name/pg/pget/package.nix b/pkgs/by-name/pg/pget/package.nix new file mode 100644 index 0000000000000..3c6c2dd2380fc --- /dev/null +++ b/pkgs/by-name/pg/pget/package.nix @@ -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"; + }; +} |