you-have-mail-cli: init at 0.3.0

This commit is contained in:
Golbinex 2024-08-13 14:16:57 +00:00
parent c40e83f4c5
commit 76abf6f43f
2 changed files with 2672 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,61 @@
{
lib,
fetchFromGitHub,
rustPlatform,
go,
buildGoModule,
}:
rustPlatform.buildRustPackage {
pname = "you-have-mail-cli";
version = "0.3.0";
src = fetchFromGitHub {
owner = "LeanderBB";
repo = "you-have-mail-cli";
rev = "b338153353495428e2dc0065843553b7821b9d3a";
hash = "sha256-YgIztCmL+uJUUXu+BWXLf9f4L7UpuPf0onsfMRtlWkw=";
};
nativeBuildInputs = [
rustPlatform.bindgenHook
go
];
goSrpVersion = "0.1.5";
configurePhase = ''
export GOCACHE=$TMPDIR/go-cache
export GOPATH="$TMPDIR/go"
export GOPROXY=off
cp -r --reflink=auto $goModules ../cargo-vendor-dir/go-srp-$goSrpVersion/go/vendor
'';
goModules =
(buildGoModule {
pname = "proton-api-rs";
version = "0.14.0";
src = fetchFromGitHub {
owner = "LeanderBB";
repo = "proton-api-rs";
rev = "4597810e8335118f3c780a04e6d099ae46a7a376";
hash = "sha256-PN5+D8PY7ouhvoyhu0X0PsgF8tgptl80cF0w2u8nUqs=";
};
modRoot = "./go-srp/go/";
vendorHash = "sha256-QPj2jq8hWL4kZellM/VwqrO/Oku/JW1Cig1Iv5YSI1U=";
}).goModules;
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"you-have-mail-common-0.8.1" = "sha256-jDOIMvHqWvPpnyZ5V+6VsyFUDXz84yFROkInXE5CIyE=";
};
};
meta = {
description = "Small application to notify you when you receive an email in your email account";
homepage = "https://github.com/LeanderBB/you-have-mail-cli";
license = lib.licenses.agpl3Only;
mainProgram = "you-have-mail-cli";
maintainers = with lib.maintainers; [ baksa ];
};
}