incrtcl: Simplify package with tcl.mkTclDerivation
This commit is contained in:
parent
9571f53665
commit
c247eb0bce
@ -1,6 +1,6 @@
|
|||||||
{ lib, stdenv, fetchurl, writeText, tcl }:
|
{ lib, stdenv, fetchurl, writeText, tcl }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
tcl.mkTclDerivation rec {
|
||||||
pname = "incrtcl";
|
pname = "incrtcl";
|
||||||
version = "4.2.0";
|
version = "4.2.0";
|
||||||
|
|
||||||
@ -9,18 +9,12 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0w28v0zaraxcq1s9pa6cihqqwqvvwfgz275lks7w4gl7hxjxmasw";
|
sha256 = "0w28v0zaraxcq1s9pa6cihqqwqvvwfgz275lks7w4gl7hxjxmasw";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ tcl ];
|
|
||||||
configureFlags = [ "--with-tcl=${tcl}/lib" ];
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
patchPhase = ''
|
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"
|
|
||||||
'';
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
rmdir $out/bin
|
rmdir $out/bin
|
||||||
mv $out/lib/itcl${version}/* $out/lib
|
mv $out/lib/itcl${version}/* $out/lib
|
||||||
|
Loading…
Reference in New Issue
Block a user