Unverified Commit bd98315f authored by Felix Bargfeldt's avatar Felix Bargfeldt Committed by GitHub
Browse files

tui-journal: refactor, adopt (#458230)

parents e7d76dca 3a5a23e6
Loading
Loading
Loading
Loading
+12 −7
Original line number Diff line number Diff line
@@ -5,16 +5,17 @@
  pkg-config,
  libgit2,
  zlib,
  versionCheckHook,
}:

rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "tui-journal";
  version = "0.16.1";

  src = fetchFromGitHub {
    owner = "AmmarAbouZor";
    repo = "tui-journal";
    rev = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-crrh7lV5ZMKaxsrFmhXsUgBMbN5nmbf8wQ6croTqUKI=";
  };

@@ -29,12 +30,16 @@ rustPlatform.buildRustPackage rec {
    zlib
  ];

  meta = with lib; {
  doInstallCheck = true;
  versionCheckProgramArg = "--version";
  nativeInstallCheckInputs = [ versionCheckHook ];

  meta = {
    description = "Your journal app if you live in a terminal";
    homepage = "https://github.com/AmmarAbouZor/tui-journal";
    changelog = "https://github.com/AmmarAbouZor/tui-journal/blob/${src.rev}/CHANGELOG.ron";
    license = licenses.mit;
    maintainers = [ ];
    changelog = "https://github.com/AmmarAbouZor/tui-journal/blob/${finalAttrs.src.rev}/CHANGELOG.ron";
    license = lib.licenses.mit;
    mainProgram = "tjournal";
    maintainers = with lib.maintainers; [ phanirithvij ];
  };
}
})