summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/networking/qrcp/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/networking/qrcp/default.nix')
-rw-r--r--pkgs/tools/networking/qrcp/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/networking/qrcp/default.nix b/pkgs/tools/networking/qrcp/default.nix
new file mode 100644
index 000000000000..0cfc78d69df2
--- /dev/null
+++ b/pkgs/tools/networking/qrcp/default.nix
@@ -0,0 +1,33 @@
+{ lib
+, buildGoModule
+, fetchFromGitHub
+}:
+
+buildGoModule rec {
+ pname = "qrcp";
+ version = "0.6.4";
+
+ src = fetchFromGitHub {
+ owner = "claudiodangelis";
+ repo = "qrcp";
+ rev = version;
+ sha256 = "08fjy9mskf6n1zldc63fjm5x617qqx987a58cjav03apzfwzvvhg";
+ };
+
+ vendorSha256 = "0iffy43x3njcahrxl99a71v8p7im102nzv8iqbvd5c6m14rsckqa";
+
+ subPackages = [ "." ];
+
+ meta = with lib; {
+ homepage = "https://claudiodangelis.com/qrcp/";
+ 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 ];
+ };
+}