mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-16 01:45:11 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
54 lines
1.3 KiB
Nix
54 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
openssl,
|
|
gtk3,
|
|
stdenv,
|
|
}:
|
|
|
|
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/${stdenv.hostPlatform.rust.rustcTarget}/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 ];
|
|
mainProgram = "effitask";
|
|
};
|
|
}
|