Skip to content

Commit

Permalink
jimlib: init at 0.16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
theneosloth committed Nov 28, 2024
1 parent c7a14c1 commit 091d8a3
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions pkgs/development/tcl-modules/by-name/ji/jimlib/package.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}

0 comments on commit 091d8a3

Please sign in to comment.