forked from mirrors/nixpkgs
incrtcl: Simplify package with tcl.mkTclDerivation
This commit is contained in:
parent
9571f53665
commit
c247eb0bce
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue