Skip to content

Commit

Permalink
qrcp: 0.11.2 → 0.11.3 (NixOS#339319)
Browse files Browse the repository at this point in the history
  • Loading branch information
fgaz authored Sep 4, 2024
2 parents 8075943 + dcb3223 commit 15785da
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
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";
};
}
2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11872,8 +11872,6 @@ with pkgs;

qprint = callPackage ../tools/text/qprint { };

qrcp = callPackage ../tools/networking/qrcp { };

qrscan = callPackage ../tools/misc/qrscan { };

qtikz = libsForQt5.callPackage ../applications/graphics/ktikz { };
Expand Down

0 comments on commit 15785da

Please sign in to comment.