about summary refs log tree commit diff
path: root/pkgs/tools/misc/fsrx/default.nix
blob: 151d1eefa560a66f2d1917e9184ad05655eb1469 (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
{ lib, fetchFromGitHub, rustPlatform, gitUpdater, testers, fsrx }:

rustPlatform.buildRustPackage rec {
  pname = "fsrx";
  version = "1.0.0";

  src = fetchFromGitHub {
    owner = "coloradocolby";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-pKdxYO8Rhck3UYxqiWHDlrlPS4cAPe5jLUu5Dajop/k=";
  };

  cargoSha256 = "sha256-5h+ou9FLCG/WWMEQPsCTa1q+PovxUJs+6lzQ0L2bKIs=";

  passthru = {
    updateScript = gitUpdater {
      inherit pname version;
      rev-prefix = "v";
    };
    tests.version = testers.testVersion {
      package = fsrx;
    };
  };

  meta = with lib; {
    description = "A flow state reader in the terminal";
    homepage = "https://github.com/coloradocolby/fsrx";
    license = licenses.mit;
    maintainers = with maintainers; [ MoritzBoehme ];
  };
}