2023-06-28 02:36:52 +03:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, libgit2
|
|
|
|
, openssl
|
|
|
|
, zlib
|
|
|
|
, stdenv
|
|
|
|
, darwin
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "tui-journal";
|
2023-10-02 21:42:28 +03:00
|
|
|
version = "0.3.2";
|
2023-06-28 02:36:52 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AmmarAbouZor";
|
|
|
|
repo = "tui-journal";
|
|
|
|
rev = "v${version}";
|
2023-10-02 21:42:28 +03:00
|
|
|
hash = "sha256-ASozznbqtQc9bIzxbL94t2CHY2/PeXfR1DKfhTmsX74=";
|
2023-06-28 02:36:52 +03:00
|
|
|
};
|
|
|
|
|
2023-10-02 21:42:28 +03:00
|
|
|
cargoHash = "sha256-H+j/i0Gfk7O2TLdw5FYHOrLy/jfMSF4cpzMtQ2XJn2M=";
|
2023-06-28 02:36:52 +03:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libgit2
|
|
|
|
openssl
|
|
|
|
zlib
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.Security
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Your journal app if you live in a terminl";
|
|
|
|
homepage = "https://github.com/AmmarAbouZor/tui-journal";
|
|
|
|
changelog = "https://github.com/AmmarAbouZor/tui-journal/blob/${src.rev}/CHANGELOG.ron";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
2023-07-14 01:38:05 +03:00
|
|
|
mainProgram = "tjournal";
|
2023-06-28 02:36:52 +03:00
|
|
|
};
|
|
|
|
}
|