mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 20:02:14 +03:00
Merge pull request #66830 from fgaz/tclreadline/init
tclreadline: init at 2.3.8
This commit is contained in:
commit
67b553ac63
68
pkgs/development/interpreters/tclreadline/default.nix
Normal file
68
pkgs/development/interpreters/tclreadline/default.nix
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
{ stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, automake
|
||||||
|
, autoconf
|
||||||
|
, libtool
|
||||||
|
, readline
|
||||||
|
, tcl
|
||||||
|
, tk
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "tclreadline";
|
||||||
|
version = "2.3.8";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "flightaware";
|
||||||
|
repo = "tclreadline";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "18jl56p0hwgynxpvr0v7b5mvvzc1m64fn61c0957bgb45mc250yq";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
automake
|
||||||
|
autoconf
|
||||||
|
libtool
|
||||||
|
];
|
||||||
|
buildInputs = [
|
||||||
|
readline
|
||||||
|
tcl
|
||||||
|
tk
|
||||||
|
];
|
||||||
|
|
||||||
|
preConfigure = "NOCONFIGURE=1 ./autogen.sh";
|
||||||
|
|
||||||
|
configureFlags = [
|
||||||
|
"--enable-tclshrl"
|
||||||
|
"--enable-wishrl"
|
||||||
|
"--with-tcl=${tcl}/lib"
|
||||||
|
"--with-tk=${tk}/lib"
|
||||||
|
"--with-readline-includes=${readline.dev}/include/readline"
|
||||||
|
"--with-libtool=${libtool}"
|
||||||
|
];
|
||||||
|
|
||||||
|
# The provided makefile leaves a wrong reference to /build/ in RPATH,
|
||||||
|
# so we fix it after checking that everything is also present in $out
|
||||||
|
preFixup = stdenv.lib.optionalString stdenv.isLinux ''
|
||||||
|
needed_libraries=$(ls .libs | grep '\.\(so\|la\)$')
|
||||||
|
for lib in $needed_libraries; do
|
||||||
|
if ! ls $out/lib | grep "$lib"; then
|
||||||
|
echo "$lib was not installed correctly"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
for executable in $out/bin/{wishrl,tclshrl}; do
|
||||||
|
patchelf --set-rpath \
|
||||||
|
"$(patchelf --print-rpath "$executable" | sed "s@$builddir/.libs@$out/lib@")" \
|
||||||
|
"$executable"
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "GNU readline for interactive tcl shells";
|
||||||
|
homepage = "https://github.com/flightaware/tclreadline";
|
||||||
|
license = licenses.bsd3;
|
||||||
|
maintainers = with maintainers; [ fgaz ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
}
|
@ -10781,6 +10781,8 @@ in
|
|||||||
tcl-8_5 = callPackage ../development/interpreters/tcl/8.5.nix { };
|
tcl-8_5 = callPackage ../development/interpreters/tcl/8.5.nix { };
|
||||||
tcl-8_6 = callPackage ../development/interpreters/tcl/8.6.nix { };
|
tcl-8_6 = callPackage ../development/interpreters/tcl/8.6.nix { };
|
||||||
|
|
||||||
|
tclreadline = callPackage ../development/interpreters/tclreadline { };
|
||||||
|
|
||||||
wasm = ocamlPackages.wasm;
|
wasm = ocamlPackages.wasm;
|
||||||
|
|
||||||
proglodyte-wasm = callPackage ../development/interpreters/proglodyte-wasm { };
|
proglodyte-wasm = callPackage ../development/interpreters/proglodyte-wasm { };
|
||||||
|
Loading…
Reference in New Issue
Block a user