fix notcoal package

This commit is contained in:
foosinn 2022-02-26 02:13:40 +01:00
parent b30e69334a
commit 0b615ebd34
3 changed files with 192 additions and 261 deletions

View file

@ -1,18 +1,21 @@
{ lib, stdenv, rustPlatform, notmuch, bash }:
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkgs }:
rustPlatform.buildRustPackage rec {
pname = "notcoal";
version = "0.3.0";
src = fetchTarball {
url = "https://ghom.niij.org/eaon/notcoal/archive/v0.3.0.tar.gz";
src = fetchFromGitHub {
owner = "eaon";
repo = pname;
rev = "v${version}";
sha256 = "19gaba6asid5vplcy9q0ama40dvwwxglc40ks5240lydrvgfrimq";
};
cargoPatches = [ ./Cargo.lock.patch ];
cargoSha256 = "0kgjxq2319l2gh1xc0f3ir1pa6z7p62z3fccswwxrz7gbn7nc07c";
cargoSha256 = "09bmlpl6rx2pk5w6vv2i1lsl6vr1733zy9jjvi5kkk1mqwinq8ai";
cargoBuildFlags = [ "--features=standalone" ];
buildInputs = [ bash notmuch ];
buildInputs = with pkgs; [ bash notmuch ];
meta = with lib; {
description = "An email tagger for notmuch";