tui-journal: refactor, adopt (#458230)
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user