1{
2 fetchCrate,
3 iconv,
4 lib,
5 openssl,
6 pkg-config,
7 rustPlatform,
8 stdenv,
9}:
10
11rustPlatform.buildRustPackage rec {
12 pname = "gitlab-timelogs";
13 version = "0.5.0";
14
15 src = fetchCrate {
16 inherit pname version;
17 hash = "sha256-KTOI1NDsozALXqXHuF6kj/ADW7TzH8CkVvCOgrEwdxc=";
18 };
19
20 nativeBuildInputs = [ pkg-config ];
21
22 buildInputs = [
23 openssl
24 ]
25 ++ lib.optionals stdenv.hostPlatform.isDarwin [
26 iconv
27 ];
28
29 cargoHash = "sha256-qSIRcf0HpRg1Eu12L6UcJajHBgjJgfhsHmF1oV1h8HM=";
30
31 meta = {
32 description = "CLI utility to support you with your time logs in GitLab";
33 mainProgram = "gitlab-timelogs";
34 longDescription = ''
35 CLI utility to support you with your time logs in GitLab.
36
37 gitlab-timelogs is not associated with the official GitLab project!
38 '';
39 homepage = "https://github.com/phip1611/gitlab-timelogs";
40 changelog = "https://github.com/phip1611/gitlab-timelogs/blob/v${version}/CHANGELOG.md";
41 license = with lib.licenses; [ mit ];
42 maintainers = with lib.maintainers; [
43 blitz
44 phip1611
45 ];
46 };
47}