2021-04-17 00:35:05 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, guile
|
|
|
|
, libffi
|
|
|
|
, ncurses
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-17 00:35:05 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "guile-ncurses";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "3.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-04-17 00:35:05 +00:00
|
|
|
url = "mirror://gnu/${pname}/${pname}-${version}.tar.gz";
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-7onozq/Kud0O8/wazJsQ9NIbpLJW0ynYQtYYPmP41zM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-17 00:35:05 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
guile
|
|
|
|
libffi
|
|
|
|
ncurses
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-gnu-filesystem-hierarchy"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
postFixup =
|
|
|
|
let
|
|
|
|
guileVersion = lib.versions.majorMinor guile.version;
|
|
|
|
in
|
|
|
|
''
|
|
|
|
for f in $out/share/guile/site/ncurses/**.scm; do \
|
|
|
|
substituteInPlace $f \
|
|
|
|
--replace "libguile-ncurses" "$out/lib/guile/${guileVersion}/libguile-ncurses"; \
|
|
|
|
done
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# XXX: 1 of 65 tests failed.
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-04-17 00:35:05 +00:00
|
|
|
homepage = "https://www.gnu.org/software/guile-ncurses/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Scheme interface to the NCurses libraries";
|
|
|
|
longDescription = ''
|
|
|
|
GNU Guile-Ncurses is a library for the Guile Scheme interpreter that
|
|
|
|
provides functions for creating text user interfaces. The text user
|
|
|
|
interface functionality is built on the ncurses libraries: curses, form,
|
|
|
|
panel, and menu.
|
|
|
|
'';
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = with maintainers; [ vyp ];
|
2023-08-04 22:07:22 +00:00
|
|
|
platforms = guile.meta.platforms;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|