nixpkgs/pkgs/by-name/ef/effitask/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
1.3 KiB
Nix
Raw Normal View History

{
lib,
2020-04-04 23:14:08 +00:00
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
gtk3,
stdenv,
2020-04-04 23:14:08 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "effitask";
2023-03-04 21:48:03 +00:00
version = "1.4.2";
2020-04-04 23:14:08 +00:00
src = fetchFromGitHub {
owner = "sanpii";
repo = pname;
rev = version;
2023-03-04 21:48:03 +00:00
sha256 = "sha256-6BA/TCCqVh5rtgGkUgk8nIqUzozipC5rrkbXMDWYpdQ=";
2020-04-04 23:14:08 +00:00
};
2023-03-04 21:48:03 +00:00
cargoHash = "sha256-ScqDNfWMFT8a1HOPjpw4J8EBrVSusIkOYReYeArZvZ8=";
2020-04-04 23:14:08 +00:00
nativeBuildInputs = [ pkg-config ];
2020-04-04 23:14:08 +00:00
buildInputs = [
openssl
gtk3
];
# default installPhase don't install assets
installPhase = ''
runHook preInstall
make install PREFIX="$out" TARGET="target/${stdenv.hostPlatform.rust.rustcTarget}/release/effitask"
2020-04-04 23:14:08 +00:00
runHook postInstall
'';
meta = with lib; {
2020-04-04 23:14:08 +00: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 ];
2024-02-11 02:19:15 +00:00
mainProgram = "effitask";
2020-04-04 23:14:08 +00:00
};
}