base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / tu / tuisky / package.nix
blob76a045ebd20414eddd78753260a4ffd27fbb509a
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   pkg-config,
6   openssl,
7   versionCheckHook,
8   nix-update-script,
9 }:
11 rustPlatform.buildRustPackage rec {
12   pname = "tuisky";
13   version = "0.1.3";
15   src = fetchFromGitHub {
16     owner = "sugyan";
17     repo = "tuisky";
18     rev = "refs/tags/v${version}";
19     hash = "sha256-TsxERi+xxWk6SJwIxMgqiYCAUrDLzZXPL1xQCIXtUr0=";
20   };
22   cargoHash = "sha256-p6Yqg4HdkviuOuYMGEPXyySduiS47aPOshr5iXE+f+A=";
24   nativeBuildInputs = [
25     pkg-config
26   ];
28   buildInputs = [
29     openssl
30   ];
32   nativeInstallCheckInputs = [
33     versionCheckHook
34   ];
35   versionCheckProgramArg = [ "--version" ];
36   doInstallCheck = true;
38   passthru = {
39     updateScript = nix-update-script { };
40   };
42   meta = {
43     description = "TUI client for bluesky";
44     homepage = "https://github.com/sugyan/tuisky";
45     changelog = "https://github.com/sugyan/tuisky/blob/${lib.removePrefix "refs/tags/" src.rev}/CHANGELOG.md";
46     license = lib.licenses.mit;
47     maintainers = with lib.maintainers; [ GaetanLepage ];
48     mainProgram = "tuisky";
49   };