From 091d8a3c9f1cb917ac41df92ff181888d8bc3d11 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.16.0 --- .../tcl-modules/by-name/ji/jimlib/package.nix | 35 +++++++++++++++++++ 1 file changed, 35 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..2072ed4bb245d --- /dev/null +++ b/pkgs/development/tcl-modules/by-name/ji/jimlib/package.nix @@ -0,0 +1,35 @@ +{ lib, fetchFromGitLab, mkTclDerivation, xclip, curl }: + +mkTclDerivation rec { + pname = "jimlib"; + version = "0.16.0"; + + src = fetchFromGitLab { + owner = "dbohdan"; + repo = "jimlib"; + rev = "refs/tags/v${version}"; + hash = "sha256-a7Su/JByGLgnYBCRbP9z9CunTIYTwAisWuQafZWYgYo="; + }; + + dontBuild = true; + + postPatch = '' + substituteInPlace jimlib.tcl \ + --replace-fail "exec curl" "exec ${lib.getExe curl}" + --replace-fail "exec xclip" "exec ${lib.getExe xclip}" \ + ''; + + installPhase = '' + runHook preInstall + install -Dm644 jimlib.tcl pkgIndex.tcl -t $out/lib/jimlib + runHook postInstall + ''; + + meta = { + homepage = "https://gitlab.com/dbohdan/jimlib/"; + description = "Personal standard library for Jim Tcl"; + license = with lib.licenses; [ mit tcltk bsd3 ]; + platforms = lib.platforms.all; + maintainers = with lib.maintainers; [ neosloth ]; + }; +}