python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / applications / misc / effitask / default.nix
blobf237998f53a6c485eb23eaccbe808d0a28b4d107
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , pkg-config
5 , openssl
6 , gtk3
7 , stdenv
8 , rust
9 }:
11 rustPlatform.buildRustPackage rec {
12   pname = "effitask";
13   version = "1.4.1";
15   src = fetchFromGitHub {
16     owner = "sanpii";
17     repo = pname;
18     rev = version;
19     sha256 = "sha256-nZn+mINIqAnaCKZCiywG8/BOPx6TlSe0rKV/8gcW/B4=";
20   };
22   cargoSha256 = "sha256-aCjZRJNsxx75ghK0N95Q9w0h5H5mW9/77j/fumDrvyM=";
24   nativeBuildInputs = [ pkg-config ];
26   buildInputs = [ openssl gtk3 ];
28   # default installPhase don't install assets
29   installPhase = ''
30     runHook preInstall
31     make install PREFIX="$out" TARGET="target/${rust.toRustTarget stdenv.hostPlatform}/release/effitask"
32     runHook postInstall
33   '';
35   meta = with lib; {
36     description = "Graphical task manager, based on the todo.txt format";
37     longDescription = ''
38       To use it as todo.sh add-on, create a symlink like this:
39       mkdir ~/.todo.actions.d/
40       ln -s $(which effitask) ~/.todo.actions.d/et
42       Or use it as standalone program by defining some environment variables
43       like described in the projects readme.
44     '';
45     homepage = "https://github.com/sanpii/effitask";
46     maintainers = with maintainers; [ davidak ];
47     license = with licenses; [ mit ];
48   };