From 74bf7c34443f750f64cfeeb482be3779bde48894 Mon Sep 17 00:00:00 2001 From: TheColorman Date: Mon, 2 Sep 2024 14:13:59 +1000 Subject: [PATCH 1/2] maintainers: add TheColorman --- maintainers/maintainer-list.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 823f040c7131..177023b1e9d1 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -20623,6 +20623,13 @@ githubId = 3512122; keys = [ { fingerprint = "5F29 132D EFA8 5DA0 B598 5BF2 5941 754C 1CDE 33BB"; } ]; }; + TheColorman = { + name = "colorman"; + email = "nixpkgs@colorman.me"; + github = "TheColorman"; + githubId = 18369995; + keys = [ { fingerprint = "3D8C A43C FBA2 5D28 0196 19F0 AB11 0475 B417 291D"; } ]; + }; thedavidmeister = { email = "thedavidmeister@gmail.com"; github = "thedavidmeister"; From 353b8c3ad3897048d824ecfea65ddfa665cfb969 Mon Sep 17 00:00:00 2001 From: TheColorman Date: Tue, 3 Sep 2024 20:34:34 +1000 Subject: [PATCH 2/2] heliocron: init at 0.8.1 Command line application for delaying execution of other commands relative to sunrise and sunset https://github.com/mfreeborn/heliocron --- pkgs/by-name/he/heliocron/package.nix | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkgs/by-name/he/heliocron/package.nix diff --git a/pkgs/by-name/he/heliocron/package.nix b/pkgs/by-name/he/heliocron/package.nix new file mode 100644 index 000000000000..00ca02f3c5b3 --- /dev/null +++ b/pkgs/by-name/he/heliocron/package.nix @@ -0,0 +1,33 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, +}: + +rustPlatform.buildRustPackage rec { + pname = "heliocron"; + version = "0.8.1"; + + src = fetchFromGitHub { + owner = "mfreeborn"; + repo = "heliocron"; + rev = "v${version}"; + hash = "sha256-5rzFz29Bpy2GR6bEt2DdCq9RtpdcY3SK/KnZrBrHUvk="; + }; + + cargoHash = "sha256-RjYE2TBvHnBgiwJi/Ys+wAmJoMHJuimcD07FOqwkcis="; + + meta = { + description = "Execute tasks relative to sunset, sunrise and other solar events"; + longDescription = "A simple command line application that integrates with `cron` to execute tasks relative to sunset, sunrise and other such solar events."; + homepage = "https://github.com/mfreeborn/heliocron"; + changelog = "https://github.com/mfreeborn/heliocron/releases/tag/v${version}"; + license = with lib.licenses; [ + mit + asl20 + ]; + maintainers = with lib.maintainers; [ TheColorman ]; + mainProgram = "heliocron"; + platforms = lib.platforms.linux; + }; +}