46 lines
966 B
Nix
46 lines
966 B
Nix
|
{ lib
|
||
|
, rustPlatform
|
||
|
, fetchFromGitHub
|
||
|
, pkg-config
|
||
|
, libgit2
|
||
|
, openssl
|
||
|
, zlib
|
||
|
, stdenv
|
||
|
, darwin
|
||
|
}:
|
||
|
|
||
|
rustPlatform.buildRustPackage rec {
|
||
|
pname = "tui-journal";
|
||
|
version = "0.3.0";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "AmmarAbouZor";
|
||
|
repo = "tui-journal";
|
||
|
rev = "v${version}";
|
||
|
hash = "sha256-4fa41kzDGefqxfCcxe1/9iEZHVC8MIzcOG8RUiLW5bw=";
|
||
|
};
|
||
|
|
||
|
cargoHash = "sha256-Uz9Od9hXM6EGZ+MsZ7uCYvA4aoF3E9uSNjjtxd1ssCs=";
|
||
|
|
||
|
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 ];
|
||
|
mainProgram = "tjournal";
|
||
|
};
|
||
|
}
|