diff options
| author | Nikolay Korotkiy <sikmir@disroot.org> | 2024-09-03 22:50:46 +0400 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2024-09-04 14:51:04 +0000 |
| commit | f2336a4f1b3666f6ad6b4d90471ec6409d49a89b (patch) | |
| tree | e56602cafc8a55169b6418f687fd374879248866 | |
| parent | [Backport release-24.05] chromedriver,{ungoogled-,}chromium: 128.0.6613.113-1... (diff) | |
| download | nixpkgs-f2336a4f1b3666f6ad6b4d90471ec6409d49a89b.tar.gz | |
qrcp: 0.11.2 → 0.11.3, fix cross compilation
(cherry picked from commit 418baf49783ea414650de33fac31a96b1e1354c1)
| -rw-r--r-- | pkgs/tools/networking/qrcp/default.nix | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/pkgs/tools/networking/qrcp/default.nix b/pkgs/tools/networking/qrcp/default.nix index f45c053c9662..748412e17cba 100644 --- a/pkgs/tools/networking/qrcp/default.nix +++ b/pkgs/tools/networking/qrcp/default.nix @@ -7,32 +7,34 @@ buildGoModule rec { pname = "qrcp"; - version = "0.11.2"; + version = "0.11.3"; src = fetchFromGitHub { owner = "claudiodangelis"; repo = "qrcp"; rev = version; - hash = "sha256-BuZn+7gTjsHTUDu33JXTrntb5LUzcq3ZsmgFg+6ivZg="; + hash = "sha256-MmWBcDtZUDX5IV7XXifBp7KfeRh+0qU4vdfCoMv/UNk="; }; vendorHash = "sha256-lqGPPyoSO12MyeYIuYcqDVHukj7oR3zmHgsS6SxY3yo="; subPackages = [ "." ]; + ldflags = [ "-s" "-w" "-X github.com/claudiodangelis/qrcp/version.version=${version}" ]; + nativeBuildInputs = [ installShellFiles ]; - postInstall = '' + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd qrcp \ --bash <($out/bin/qrcp completion bash) \ --fish <($out/bin/qrcp completion fish) \ --zsh <($out/bin/qrcp completion zsh) ''; - meta = with lib; { - homepage = "https://claudiodangelis.com/qrcp/"; + meta = { + homepage = "https://qrcp.sh/"; description = "Transfer files over wifi by scanning a QR code from your terminal"; longDescription = '' qrcp binds a web server to the address of your Wi-Fi network @@ -40,8 +42,8 @@ buildGoModule rec { handler serves the content and exits the program when the transfer is complete. ''; - license = licenses.mit; - maintainers = with maintainers; [ fgaz ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fgaz ]; mainProgram = "qrcp"; }; } |
