Skip to content

Commit 9bfd85b

Browse files
committed
prepare v0.6.2
1 parent e7f345c commit 9bfd85b

2 files changed

Lines changed: 25 additions & 7 deletions

File tree

maintainers/maintainer-list.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13124,6 +13124,16 @@
1312413124
githubId = 6277322;
1312513125
name = "Wei Tang";
1312613126
};
13127+
soywod = {
13128+
name = "Clément DOUIN";
13129+
email = "clement.douin@posteo.net";
13130+
matrix = "@soywod:matrix.org";
13131+
github = "soywod";
13132+
githubId = 10437171;
13133+
keys = [{
13134+
fingerprint = "75F0 AB7C FE01 D077 AEE6 CAFD 353E 4A18 EE0F AB72";
13135+
}];
13136+
};
1312713137
spacefrogg = {
1312813138
email = "spacefrogg-nixos@meterriblecrew.net";
1312913139
github = "spacefrogg";

pkgs/applications/networking/mailreaders/himalaya/default.nix

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
, rustPlatform
33
, fetchFromGitHub
44
, stdenv
5-
, enableCompletions ? stdenv.hostPlatform == stdenv.buildPlatform
65
, installShellFiles
6+
, installShellCompletions ? stdenv.hostPlatform == stdenv.buildPlatform
7+
, installManPages ? stdenv.hostPlatform == stdenv.buildPlatform
78
, pkg-config
89
, Security
910
, libiconv
@@ -12,7 +13,7 @@
1213

1314
rustPlatform.buildRustPackage rec {
1415
pname = "himalaya";
15-
version = "0.6.0";
16+
version = "0.6.2";
1617

1718
src = fetchFromGitHub {
1819
owner = "soywod";
@@ -23,7 +24,8 @@ rustPlatform.buildRustPackage rec {
2324

2425
cargoSha256 = "sha256-ICaahkIP1uSm4iXvSPMo8uVTtSa1nCyJdDihGdVEQvg=";
2526

26-
nativeBuildInputs = lib.optionals enableCompletions [ installShellFiles ]
27+
nativeBuildInputs = [ ]
28+
++ lib.optionals (installManPages || installShellCompletions) [ installShellFiles ]
2729
++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ pkg-config ];
2830

2931
buildInputs =
@@ -38,8 +40,14 @@ rustPlatform.buildRustPackage rec {
3840
# additional tooling and servers to test
3941
cargoTestFlags = [ "--lib" ];
4042

41-
postInstall = lib.optionalString enableCompletions ''
42-
# Install shell function
43+
44+
postInstall = lib.optionalString installManPages ''
45+
# Install man pages
46+
mkdir -p $out/man
47+
$out/bin/himalaya man $out/man
48+
installManPage $out/man/*
49+
'' ++ lib.optionalString installShellCompletions ''
50+
# Install shell completions
4351
installShellCompletion --cmd himalaya \
4452
--bash <($out/bin/himalaya completion bash) \
4553
--fish <($out/bin/himalaya completion fish) \
@@ -50,7 +58,7 @@ rustPlatform.buildRustPackage rec {
5058
description = "Command-line interface for email management";
5159
homepage = "https://github.com/soywod/himalaya";
5260
changelog = "https://github.com/soywod/himalaya/blob/v${version}/CHANGELOG.md";
53-
license = licenses.bsdOriginal;
54-
maintainers = with maintainers; [ toastal yanganto ];
61+
license = licenses.mit;
62+
maintainers = with maintainers; [ soywod toastal yanganto ];
5563
};
5664
}

0 commit comments

Comments
 (0)