nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 mkTclDerivation,
4 fetchFromGitHub,
5 tcllib,
6 nix-update-script,
7}:
8
9mkTclDerivation rec {
10 pname = "zesty";
11 version = "0.2";
12
13 src = fetchFromGitHub {
14 owner = "nico-robert";
15 repo = "zesty";
16 tag = "v${version}";
17 hash = "sha256-1K3E9rQAXEXegLjp2mZTzwyDXq3lMpDr0DB4I+ACH08=";
18 };
19
20 propagatedBuildInputs = [
21 tcllib
22 ];
23
24 installPhase = ''
25 runHook preInstall
26
27 install -Dm644 -t $out/lib/zesty/ *.tcl
28
29 runHook postInstall
30 '';
31
32 passthru.updateScript = nix-update-script { };
33
34 meta = {
35 description = "Tcl library for rich terminal output";
36 homepage = "https://github.com/nico-robert/zesty";
37 license = lib.licenses.mit;
38 maintainers = with lib.maintainers; [ fgaz ];
39 platforms = lib.platforms.all;
40 };
41}