From 46a555910469b42ae3cfce90517359e84f4594a0 Mon Sep 17 00:00:00 2001 From: Stefan Kuznetsov Date: Thu, 31 Oct 2024 00:27:21 -0700 Subject: [PATCH] jimlib: init at 0.15.0 --- .../tcl-modules/by-name/ji/jimlib/package.nix | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 pkgs/development/tcl-modules/by-name/ji/jimlib/package.nix diff --git a/pkgs/development/tcl-modules/by-name/ji/jimlib/package.nix b/pkgs/development/tcl-modules/by-name/ji/jimlib/package.nix new file mode 100644 index 0000000000000..1c533ef609f5d --- /dev/null +++ b/pkgs/development/tcl-modules/by-name/ji/jimlib/package.nix @@ -0,0 +1,45 @@ +{ + lib, + fetchFromGitLab, + mkTclDerivation, +}: + +mkTclDerivation rec { + pname = "jimlib"; + version = "0.16.0"; + + src = fetchFromGitLab { + owner = "dbohdan"; + repo = "jimlib"; + rev = "v${version}"; + hash = "sha256-a7Su/JByGLgnYBCRbP9z9CunTIYTwAisWuQafZWYgYo="; + }; + + dontBuild = true; + doCheck = true; + + checkPhase = '' + runHook preCheck + tclsh ./jimlib.tcl + runHook postCheck + ''; + + installPhase = '' + runHook preInstall + install -Dm644 jimlib.tcl $out/lib/jimlib/jimlib.tcl + install -Dm644 pkgIndex.tcl $out/lib/jimlib/pkgIndex.tcl + runHook postInstall + ''; + + meta = { + homepage = "https://gitlab.com/dbohdan/jimlib/"; + description = "Personal standard library for Jim Tcl"; + license = [ + lib.licenses.mit + lib.licenses.tcltk + lib.licenses.bsd3 + ]; + platforms = lib.platforms.all; + maintainers = with lib.maintainers; [ neosloth ]; + }; +}