Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / itktcl / default.nix
blobb6a4788075f70bf90b487696fe6ea58040cb03fb
1 { lib, stdenv, fetchurl, tcl, tk, incrtcl }:
3 tcl.mkTclDerivation rec {
4   pname = "itk-tcl";
5   version = "4.1.0";
7   src = fetchurl {
8     url    = "mirror://sourceforge/incrtcl/%5BIncr%20Tcl_Tk%5D-source/3.4/itk${version}.tar.gz";
9     sha256 = "1iy964jfgsfnc1agk1w6bbm44x18ily8d4wmr7cc9z9f4acn2r6s";
10   };
12   buildInputs = [ tk incrtcl ];
13   enableParallelBuilding = true;
15   configureFlags = [
16     "--with-tk=${tk}/lib"
17     "--with-itcl=${incrtcl}/lib"
18     "--with-tkinclude=${tk.dev}/include"
19   ];
21   postInstall = ''
22     rmdir $out/bin
23     mv $out/lib/itk${version}/* $out/lib
24     ln -s libitk${version}${stdenv.hostPlatform.extensions.sharedLibrary} \
25       $out/lib/libitk${lib.versions.major version}${stdenv.hostPlatform.extensions.sharedLibrary}
26     rmdir $out/lib/itk${version}
27   '';
29   outputs = [ "out" "dev" "man" ];
31   meta = with lib; {
32     homepage    = "https://incrtcl.sourceforge.net/";
33     description = "Mega-widget toolkit for incr Tk";
34     license     = licenses.tcltk;
35     platforms   = platforms.unix;
36     maintainers = with maintainers; [ thoughtpolice ];
37   };