aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-04-27 22:56:36 +0900
committernsfisis <nsfisis@gmail.com>2025-04-27 22:56:36 +0900
commit783f947157b8f2855b973989cb1d584a89e59978 (patch)
tree337973aabebae2124b1a3a0ff9ac59f7c21a89fc
parent939f02ceab3cecf66a399e50e72af46e4d277bd1 (diff)
downloadnur-packages-783f947157b8f2855b973989cb1d584a89e59978.tar.gz
nur-packages-783f947157b8f2855b973989cb1d584a89e59978.tar.zst
nur-packages-783f947157b8f2855b973989cb1d584a89e59978.zip
add term-clock
-rw-r--r--default.nix1
-rw-r--r--pkgs/hgrep/default.nix2
-rw-r--r--pkgs/reparojson/default.nix2
-rw-r--r--pkgs/term-clock/default.nix25
4 files changed, 28 insertions, 2 deletions
diff --git a/default.nix b/default.nix
index 427e936..32fbcc2 100644
--- a/default.nix
+++ b/default.nix
@@ -19,4 +19,5 @@
example-package = pkgs.callPackage ./pkgs/example-package { };
hgrep = pkgs.callPackage ./pkgs/hgrep { };
reparojson = pkgs.callPackage ./pkgs/reparojson { };
+ term-clock = pkgs.callPackage ./pkgs/term-clock { };
}
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";
+ };
+}