depot/third_party/nixpkgs/pkgs/applications/misc/effitask/default.nix
Default email dae973cb59 Project import generated by Copybara.
GitOrigin-RevId: c90c4025bb6e0c4eaf438128a3b2640314b1c58d
2023-03-08 18:32:21 +02:00

49 lines
1.2 KiB
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, gtk3
, stdenv
, rust
}:
rustPlatform.buildRustPackage rec {
pname = "effitask";
version = "1.4.2";
src = fetchFromGitHub {
owner = "sanpii";
repo = pname;
rev = version;
sha256 = "sha256-6BA/TCCqVh5rtgGkUgk8nIqUzozipC5rrkbXMDWYpdQ=";
};
cargoHash = "sha256-ScqDNfWMFT8a1HOPjpw4J8EBrVSusIkOYReYeArZvZ8=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl gtk3 ];
# default installPhase don't install assets
installPhase = ''
runHook preInstall
make install PREFIX="$out" TARGET="target/${rust.toRustTarget stdenv.hostPlatform}/release/effitask"
runHook postInstall
'';
meta = with lib; {
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 ];
};
}