Unverified Commit 15785da8 authored by Francesco Gazzetta's avatar Francesco Gazzetta Committed by GitHub
Browse files

qrcp: 0.11.2 → 0.11.3 (#339319)

parents 80759438 dcb32231
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
{ lib
, stdenv
, buildGoModule
, fetchFromGitHub
, installShellFiles
@@ -6,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
@@ -39,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";
  };
}
+0 −2
Original line number Diff line number Diff line
@@ -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 { };