2021-10-07 15:18:02 +02:00
|
|
|
{ lib
|
2020-04-05 01:14:08 +02:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
|
|
|
, gtk3
|
2021-10-07 15:18:02 +02:00
|
|
|
, stdenv
|
2020-09-30 12:30:51 +02:00
|
|
|
, rust
|
2020-04-05 01:14:08 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "effitask";
|
2021-10-07 15:18:02 +02:00
|
|
|
version = "1.4.1";
|
2020-04-05 01:14:08 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sanpii";
|
2020-11-01 23:39:49 +01:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-10-07 15:18:02 +02:00
|
|
|
sha256 = "sha256-nZn+mINIqAnaCKZCiywG8/BOPx6TlSe0rKV/8gcW/B4=";
|
2020-04-05 01:14:08 +02:00
|
|
|
};
|
|
|
|
|
2021-10-07 15:18:02 +02:00
|
|
|
cargoSha256 = "sha256-aCjZRJNsxx75ghK0N95Q9w0h5H5mW9/77j/fumDrvyM=";
|
2020-04-05 01:14:08 +02:00
|
|
|
|
2021-10-07 15:18:02 +02:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-05 01:14:08 +02:00
|
|
|
|
|
|
|
buildInputs = [ openssl gtk3 ];
|
|
|
|
|
|
|
|
# default installPhase don't install assets
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2020-09-30 12:30:51 +02:00
|
|
|
make install PREFIX="$out" TARGET="target/${rust.toRustTarget stdenv.hostPlatform}/release/effitask"
|
2020-04-05 01:14:08 +02:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-05 01:14:08 +02:00
|
|
|
description = "Graphical task manager, based on the todo.txt format";
|
|
|
|
longDescription = ''
|
|
|
|
To use it as todo.sh add-on, create a symlink like this:
|
|
|
|
mkdir ~/.todo.actions.d/
|
|
|
|
ln -s $(which effitask) ~/.todo.actions.d/et
|
|
|
|
|
|
|
|
Or use it as standalone program by defining some environment variables
|
|
|
|
like described in the projects readme.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/sanpii/effitask";
|
|
|
|
maintainers = with maintainers; [ davidak ];
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
};
|
|
|
|
}
|