-
-
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
fac65d8
commit b1afb46
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
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,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 ]; | ||
}; | ||
} |