3
0
Fork 0
forked from mirrors/nixpkgs

incrtcl: Simplify package with tcl.mkTclDerivation

This commit is contained in:
Andrew Brooks 2021-04-30 17:40:22 -05:00
parent 9571f53665
commit c247eb0bce

View file

@ -1,6 +1,6 @@
{ lib, stdenv, fetchurl, writeText, tcl }:
stdenv.mkDerivation rec {
tcl.mkTclDerivation rec {
pname = "incrtcl";
version = "4.2.0";
@ -9,18 +9,12 @@ stdenv.mkDerivation rec {
sha256 = "0w28v0zaraxcq1s9pa6cihqqwqvvwfgz275lks7w4gl7hxjxmasw";
};
buildInputs = [ tcl ];
configureFlags = [ "--with-tcl=${tcl}/lib" ];
enableParallelBuilding = true;
patchPhase = ''
substituteInPlace configure --replace "\''${TCL_SRC_DIR}/generic" "${tcl}/include"
'';
preConfigure = ''
configureFlags="--exec_prefix=$prefix $configureFlags"
'';
postInstall = ''
rmdir $out/bin
mv $out/lib/itcl${version}/* $out/lib