-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7a14c1
commit 091d8a3
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
pkgs/development/tcl-modules/by-name/ji/jimlib/package.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ]; | ||
}; | ||
} |