diff options
author | Austin Seipp <aseipp@pobox.com> | 2020-02-28 19:56:11 -0600 |
---|---|---|
committer | Austin Seipp <aseipp@pobox.com> | 2020-02-28 19:56:11 -0600 |
commit | 87f098f0948acd60663effdb19353710b43c4f27 (patch) | |
tree | abe775b83281ecf8920811d37fd74d39ecfcce76 /pkgs/development/libraries | |
parent | c6c200f1185630be562a3d8bb9449a2d8f08589c (diff) | |
download | nixlib-87f098f0948acd60663effdb19353710b43c4f27.tar nixlib-87f098f0948acd60663effdb19353710b43c4f27.tar.gz nixlib-87f098f0948acd60663effdb19353710b43c4f27.tar.bz2 nixlib-87f098f0948acd60663effdb19353710b43c4f27.tar.lz nixlib-87f098f0948acd60663effdb19353710b43c4f27.tar.xz nixlib-87f098f0948acd60663effdb19353710b43c4f27.tar.zst nixlib-87f098f0948acd60663effdb19353710b43c4f27.zip |
incrtcl: chores, maintain it, touch up results
Soon, this will be needed for the Bluespec compiler. Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r-- | pkgs/development/libraries/incrtcl/default.nix | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/pkgs/development/libraries/incrtcl/default.nix b/pkgs/development/libraries/incrtcl/default.nix index e7f575b04be7..a8a714067f4b 100644 --- a/pkgs/development/libraries/incrtcl/default.nix +++ b/pkgs/development/libraries/incrtcl/default.nix @@ -1,31 +1,39 @@ -{stdenv, fetchurl, tcl}: +{ stdenv, fetchurl, tcl }: -stdenv.mkDerivation { +stdenv.mkDerivation rec { pname = "incrtcl"; version = "4.2.0"; src = fetchurl { - url = mirror://sourceforge/incrtcl/%5BIncr%20Tcl_Tk%5D-source/3.4/itcl4.2.0.tar.gz; + url = "mirror://sourceforge/incrtcl/%5BIncr%20Tcl_Tk%5D-source/3.4/itcl${version}.tar.gz"; sha256 = "0w28v0zaraxcq1s9pa6cihqqwqvvwfgz275lks7w4gl7hxjxmasw"; }; buildInputs = [ tcl ]; configureFlags = [ "--with-tcl=${tcl}/lib" ]; + enableParallelBuilding = true; + patchPhase = '' - substituteInPlace configure --replace "\''${TCL_SRC_DIR}/generic" "${tcl}/include" + substituteInPlace configure --replace "\''${TCL_SRC_DIR}/generic" "${tcl}/include" ''; + preConfigure = '' - configureFlags="--exec_prefix=$prefix $configureFlags" + configureFlags="--exec_prefix=$prefix $configureFlags" ''; - passthru = { - libPrefix = "itcl3.4"; - }; + postInstall = '' + rmdir $out/bin + mv $out/lib/itcl${version}/* $out/lib + rmdir $out/lib/itcl${version} + ''; + + outputs = [ "out" "dev" "man" ]; meta = with stdenv.lib; { - homepage = http://incrtcl.sourceforge.net/; + homepage = "http://incrtcl.sourceforge.net/"; description = "Object Oriented Enhancements for Tcl/Tk"; - platforms = platforms.unix; - license = licenses.tcltk; + license = licenses.tcltk; + platforms = platforms.unix; + maintainers = with maintainers; [ thoughtpolice ]; }; } |