about summary refs log tree commit diff
path: root/pkgs/by-name/iw/iwqr/package.nix
blob: 5609c70d4c3b84e70f31cc8185d2f34ff202aa9b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
  lib,
  rustPlatform,
  fetchFromGitea,
  nix-update-script,
  testers,
  iwqr,
}:

rustPlatform.buildRustPackage rec {
  pname = "iwqr";
  version = "0.1.1";

  src = fetchFromGitea {
    domain = "git.kroner.dev";
    owner = "kreny";
    repo = "iwqr";
    rev = "v${version}";
    hash = "sha256-z9CjCJvi6MlZGghZKx13gGSKwUnECAf0cr9P2ABskh0=";
  };

  cargoHash = "sha256-EFen2x/+a5xLsDmodNCkuGBR7+Oy2fdXcxzANLcWWZs=";

  passthru = {
    updateScript = nix-update-script { };
    tests.version = testers.testVersion {
      package = iwqr;
    };
  };

  meta = with lib; {
    description = "Tool for generating qr codes for iwd networks";
    homepage = "https://git.kroner.dev/kreny/iwqr";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ h7x4 ];
    mainProgram = "iwqr";
  };
}