btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / ru / russ / package.nix
blob98d460b6d43f417ee6140d5b012c3c6ffd9b422f
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   rustPlatform,
6   darwin,
7 }:
9 rustPlatform.buildRustPackage {
10   pname = "russ";
11   version = "0.5.0";
13   src = fetchFromGitHub {
14     owner = "ckampfe";
15     repo = "russ";
16     rev = "b21aa80ebc9dc2668463386f9eb270b1782d5842";
17     hash = "sha256-/76CvSBYim831OZzLhsj2Hm+0hoY/FLtKQqt19E5YOI=";
18   };
20   cargoHash = "sha256-d3lJQafvBuj9Sb2Tuep3Ypt1sP+vlWHk4kuP99gMly8=";
22   # tests are network based :(
23   doCheck = false;
25   buildInputs = lib.optionals stdenv.hostPlatform.isDarwin (
26     with darwin.apple_sdk.frameworks;
27     [
28       CoreServices
29       AppKit
30     ]
31   );
33   meta = {
34     changelog = "https://github.com/ckampfe/russ/blob/master/CHANGELOG.md";
35     description = "TUI RSS reader with vim-like controls and a local-first, offline-first focus";
36     homepage = "https://github.com/ckampfe/russ";
37     license = with lib.licenses; [ agpl3Only ];
38     maintainers = with lib.maintainers; [ blusk ];
39     mainProgram = "russ";
40   };