nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 mkTclDerivation,
6 tk,
7 incrtcl,
8}:
9
10mkTclDerivation rec {
11 pname = "itk-tcl";
12 version = "4.1.0";
13
14 src = fetchurl {
15 url = "mirror://sourceforge/incrtcl/%5BIncr%20Tcl_Tk%5D-source/3.4/itk${version}.tar.gz";
16 hash = "sha256-2mRhmSIu/cTYyZWThjyNKHRC6lqGh/lUYNbp5yQxycc=";
17 };
18
19 buildInputs = [
20 tk
21 incrtcl
22 ];
23 enableParallelBuilding = true;
24
25 configureFlags = [
26 "--with-tk=${tk}/lib"
27 "--with-itcl=${incrtcl}/lib"
28 "--with-tkinclude=${tk.dev}/include"
29 ];
30
31 postInstall = ''
32 rmdir $out/bin
33 mv $out/lib/itk${version}/* $out/lib
34 ln -s libitk${version}${stdenv.hostPlatform.extensions.sharedLibrary} \
35 $out/lib/libitk${lib.versions.major version}${stdenv.hostPlatform.extensions.sharedLibrary}
36 rmdir $out/lib/itk${version}
37 '';
38
39 outputs = [
40 "out"
41 "dev"
42 "man"
43 ];
44
45 meta = {
46 homepage = "https://incrtcl.sourceforge.net/";
47 description = "Mega-widget toolkit for incr Tk";
48 license = lib.licenses.tcltk;
49 platforms = lib.platforms.unix;
50 maintainers = with lib.maintainers; [ thoughtpolice ];
51 };
52}