forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qrcp: 0.11.2 → 0.11.3 (NixOS#339319)
- Loading branch information
Showing
2 changed files
with
10 additions
and
9 deletions.
There are no files selected for viewing
17 changes: 10 additions & 7 deletions
17
pkgs/tools/networking/qrcp/default.nix → pkgs/by-name/qr/qrcp/package.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,49 @@ | ||
{ lib | ||
, stdenv | ||
, buildGoModule | ||
, fetchFromGitHub | ||
, installShellFiles | ||
}: | ||
|
||
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 | ||
interface on a random port and creates a handler for it. The default | ||
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"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters