qrcp: 0.11.2 → 0.11.3, fix cross compilation

This commit is contained in:
Nikolay Korotkiy 2024-09-03 22:50:46 +04:00
parent 0bf3a8e988
commit 418baf4978
No known key found for this signature in database
GPG Key ID: D1DE6D7F693663A5

View File

@ -1,4 +1,5 @@
{ 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";
};
}