about summary refs log tree commit diff
path: root/pkgs/development/libraries/incrtcl
diff options
context:
space:
mode:
authorAndrew Brooks <andrew.brooks@flightaware.com>2021-04-30 17:40:22 -0500
committerAndrew Brooks <andrew.brooks@flightaware.com>2021-05-21 15:18:04 -0500
commitc247eb0bce961bbd4495bed0fa6c4013465fb516 (patch)
treef26d92b0e9a305e4f5a43c5805c2a8f27f9f8c4d /pkgs/development/libraries/incrtcl
parent9571f53665d43f5f625affa43b484e20758e6df3 (diff)
incrtcl: Simplify package with tcl.mkTclDerivation
Diffstat (limited to 'pkgs/development/libraries/incrtcl')
-rw-r--r--pkgs/development/libraries/incrtcl/default.nix8
1 files changed, 1 insertions, 7 deletions
diff --git a/pkgs/development/libraries/incrtcl/default.nix b/pkgs/development/libraries/incrtcl/default.nix
index 67ae5623db120..dae01961a10cf 100644
--- a/pkgs/development/libraries/incrtcl/default.nix
+++ b/pkgs/development/libraries/incrtcl/default.nix
@@ -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