nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, fetchzip, tcl, tcllib, tk, }:
2
3tcl.mkTclDerivation {
4 pname = "nagelfar";
5 version = "1.3.3";
6
7 src = fetchzip {
8 url = "https://sourceforge.net/projects/nagelfar/files/Rel_133/nagelfar133.tar.gz";
9 sha256 = "sha256-bdH53LSOKMwq53obVQitl7bpaSpwvMce8oJgg/GKrg0=";
10 };
11
12 buildInputs = [
13 tcl
14 tcllib
15 tk
16 ];
17
18 installPhase = ''
19 install -Dm 755 $src/nagelfar.tcl $out/bin/nagelfar
20 '';
21
22 meta = with lib; {
23 homepage = "https://nagelfar.sourceforge.net/";
24 description = "A static syntax checker (linter) for Tcl";
25 longDescription = ''
26 Provides static syntax checking, code coverage instrumentation,
27 and is very extendable through its syntax database and plugins.
28 '';
29 mainProgram = "nagelfar";
30 license = licenses.gpl3Plus;
31 platforms = platforms.all;
32 maintainers = [ maintainers.nat-418 ];
33 };
34}