mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
85f96822a0
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in which cargo vendor erroneously changed permissions of vendored crates. This was fixed in Rust 1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are potentially broken. This change updates cargoSha256/cargoHash tree-wide. Fixes #121994.
52 lines
1.3 KiB
Nix
52 lines
1.3 KiB
Nix
{ lib, stdenv
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, openssl
|
|
, gtk3
|
|
, rust
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "effitask";
|
|
version = "1.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sanpii";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "09bffxdp43s8b1rpmsgqr2kyz3i4jbd2yrwbxw21fj3sf3mwb9ig";
|
|
};
|
|
|
|
# workaround for missing Cargo.lock file https://github.com/sanpii/effitask/issues/48
|
|
cargoPatches = [ ./cargo-lock.patch ];
|
|
|
|
cargoSha256 = "1a80kf95kr94l6jzxdj4i09x1342x358fqjy6119qjg3q3bj0y3p";
|
|
|
|
buildInputs = [ openssl gtk3 ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|