From 783f947157b8f2855b973989cb1d584a89e59978 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 27 Apr 2025 22:56:36 +0900 Subject: add term-clock --- pkgs/hgrep/default.nix | 2 +- pkgs/reparojson/default.nix | 2 +- pkgs/term-clock/default.nix | 25 +++++++++++++++++++++++++ 3 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 pkgs/term-clock/default.nix (limited to 'pkgs') diff --git a/pkgs/hgrep/default.nix b/pkgs/hgrep/default.nix index 2027e1d..97db780 100644 --- a/pkgs/hgrep/default.nix +++ b/pkgs/hgrep/default.nix @@ -50,7 +50,7 @@ rustPlatform.buildRustPackage rec { description = "hgrep is a grep tool with human-friendly search output. This is similar to `-C` option of `grep` command, but its output is enhanced with syntax highlighting focusing on human readable outputs."; homepage = "https://github.com/rhysd/hgrep"; changelog = "https://github.com/rhysd/hgrep/raw/v${version}/CHANGELOG.md"; - license = [ lib.licenses.mit ]; + license = lib.licenses.mit; mainProgram = "hgrep"; }; } diff --git a/pkgs/reparojson/default.nix b/pkgs/reparojson/default.nix index fd79c79..3402593 100644 --- a/pkgs/reparojson/default.nix +++ b/pkgs/reparojson/default.nix @@ -19,7 +19,7 @@ rustPlatform.buildRustPackage rec { meta = { description = "A simple command-line tool to repair JSON. It only fixes the syntactic errors and never formats the given input."; homepage = "https://github.com/nsfisis/reparojson"; - license = [ lib.licenses.mit ]; + license = lib.licenses.mit; mainProgram = "reparojson"; }; } diff --git a/pkgs/term-clock/default.nix b/pkgs/term-clock/default.nix new file mode 100644 index 0000000..3f80adb --- /dev/null +++ b/pkgs/term-clock/default.nix @@ -0,0 +1,25 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, +}: + +buildGoModule rec { + pname = "term-clock"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "nsfisis"; + repo = "term-clock"; + rev = "v${version}"; + hash = "sha256-OUM4TyfqJJBpTFHnD1rwkk7W20SK1T7lxc5i2nL4TbY="; + }; + vendorHash = "sha256-NLxaPtxhb67uhs01DASlAIfCIWV1lnuiu+uFmJcxN0U="; + + meta = { + description = "A clock on your terminal"; + homepage = "https://github.com/nsfisis/term-clock"; + license = lib.licenses.mit; + mainProgram = "term-clock"; + }; +} -- cgit v1.2.3-70-g09d2