about summary refs log tree commit diff
path: root/pkgs/misc/autoadb/default.nix
blob: 6b3ef212772a6d4661eef3efa0c82c29f3d82e55 (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
{ lib, rustPlatform, fetchFromGitHub }:

rustPlatform.buildRustPackage rec {
  pname = "autoadb";
  version = "unstable-2020-06-01";

  src = fetchFromGitHub {
    owner = "rom1v";
    repo = pname;
    rev = "7f8402983603a9854bf618a384f679a17cd85e2d";
    sha256 = "sha256-9Sv38dCtvbqvxSnRpq+HsIwF/rfLUVZbi0J+mltLres=";
  };

  cargoHash = "sha256-xxmBgJqtWq1FLWTaC8SjaBoSXkPcIZYrSOc+hCEN778=";

  meta = with lib; {
    description = "Execute a command whenever a device is adb-connected";
    homepage = "https://github.com/rom1v/autoadb";
    license = licenses.asl20;
    maintainers = with maintainers; [ shawn8901 ];
    mainProgram = "autoadb";
  };
}