Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

guile: default to guile_3_0 #247013

Merged
merged 12 commits into from
Aug 4, 2023
12 changes: 7 additions & 5 deletions pkgs/development/guile-modules/guile-commonmark/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,24 @@
, autoreconfHook
, guile
, pkg-config
, texinfo
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation {
pname = "guile-commonmark";
version = "0.1.2";
version = "unstable-2020-04-30";

src = fetchFromGitHub {
owner = "OrangeShark";
repo = pname;
rev = "v${version}";
hash = "sha256-qYDcIiObKOU8lmcfk327LMPx/2Px9ecI3QLrSWWLxMo=";
repo = "guile-commonmark";
rev = "538ffea25ca69d9f3ee17033534ba03cc27ba468";
hash = "sha256-9cA7iQ/GGEx+HwsdAxKC3IssqkT/Yg8ZxaiIprS5VuI=";
};

nativeBuildInputs = [
autoreconfHook
pkg-config
texinfo # for makeinfo
];
buildInputs = [
guile
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/guile-modules/guile-git/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [
libgit2 scheme-bytestructures
];
doCheck = true;
doCheck = !stdenv.isDarwin;
makeFlags = [ "GUILE_AUTO_COMPILE=0" ];

enableParallelBuilding = true;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/guile-modules/guile-lib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ stdenv.mkDerivation rec {

makeFlags = [ "GUILE_AUTO_COMPILE=0" ];

doCheck = true;
doCheck = !stdenv.isDarwin;

preCheck = ''
# Make `libgcc_s.so' visible for `pthread_cancel'.
Expand Down
29 changes: 15 additions & 14 deletions pkgs/development/guile-modules/guile-ncurses/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

stdenv.mkDerivation rec {
pname = "guile-ncurses";
version = "1.7";
version = "3.1";

src = fetchurl {
url = "mirror://gnu/${pname}/${pname}-${version}.tar.gz";
hash = "sha256-JZPNoQuIl5XayUpm0RdWNg8TT2LZGDOuFoae9crZe5Q=";
hash = "sha256-7onozq/Kud0O8/wazJsQ9NIbpLJW0ynYQtYYPmP41zM=";
};

nativeBuildInputs = [
Expand All @@ -25,19 +25,20 @@ stdenv.mkDerivation rec {
ncurses
];

preConfigure = ''
configureFlags="$configureFlags --with-guilesitedir=$out/share/guile/site"
'';

postFixup = ''
for f in $out/share/guile/site/ncurses/**.scm; do \
substituteInPlace $f \
--replace "libguile-ncurses" "$out/lib/libguile-ncurses"; \
done
'';
configureFlags = [
"--with-gnu-filesystem-hierarchy"
];

# Undefined symbols for architecture arm64: "_u32_conv_from_encoding"
env.NIX_LDFLAGS = "-lunistring";
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
'';

# XXX: 1 of 65 tests failed.
doCheck = false;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/tools/misc/autogen/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, buildPackages, fetchurl, fetchpatch, autoreconfHook, which, pkg-config, perl, guile, libxml2 }:
{ lib, stdenv, buildPackages, fetchurl, fetchpatch, autoreconfHook, which, pkg-config, perl, guile_2_2, libxml2 }:

stdenv.mkDerivation rec {
pname = "autogen";
Expand Down Expand Up @@ -46,7 +46,7 @@ stdenv.mkDerivation rec {
buildPackages.buildPackages.autogen buildPackages.texinfo
];
buildInputs = [
guile libxml2
guile_2_2 libxml2
];

preConfigure = ''
Expand Down
4 changes: 2 additions & 2 deletions pkgs/misc/lilypond/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, lib, fetchurl, ghostscript, gyre-fonts, texinfo, imagemagick, texi2html, guile
{ stdenv, lib, fetchurl, ghostscript, gyre-fonts, texinfo, imagemagick, texi2html, guile_2_2
, python3, gettext, flex, perl, bison, pkg-config, autoreconfHook, dblatex
, fontconfig, freetype, pango, fontforge, help2man, zip, netpbm, groff
, freefont_ttf, makeFontsConf
Expand Down Expand Up @@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook bison flex makeWrapper pkg-config ];

buildInputs =
[ ghostscript texinfo imagemagick texi2html guile dblatex tex zip netpbm
[ ghostscript texinfo imagemagick texi2html guile_2_2 dblatex tex zip netpbm
python3 gettext perl fontconfig freetype pango
fontforge help2man groff t1utils boehmgc rsync
];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/tools/X11/xbindkeys/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, pkg-config, libX11, guile }:
{ lib, stdenv, fetchurl, pkg-config, libX11, guile_2_2 }:

stdenv.mkDerivation rec {
pname = "xbindkeys";
Expand All @@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
};

nativeBuildInputs = [ pkg-config ];
buildInputs = [ libX11 guile ];
buildInputs = [ libX11 guile_2_2 ];

meta = {
homepage = "https://www.nongnu.org/xbindkeys/xbindkeys.html";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/tools/networking/junkie/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config, libpcap, guile, openssl }:
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config, libpcap, guile_2_2, openssl }:

stdenv.mkDerivation rec {
pname = "junkie";
Expand All @@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
sed -i '10i#undef IP_DONTFRAG' include/junkie/proto/ip.h
'';

buildInputs = [ libpcap guile openssl ];
buildInputs = [ libpcap guile_2_2 openssl ];
nativeBuildInputs = [ autoreconfHook pkg-config ];
configureFlags = [
"GUILELIBDIR=\${out}/share/guile/site"
Expand Down
4 changes: 2 additions & 2 deletions pkgs/tools/networking/mailutils/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
, gdbm
, gnutls
, gss
, guile
, guile_2_2
, libmysqlclient
, mailcap
, nettools
Expand Down Expand Up @@ -69,7 +69,7 @@ stdenv.mkDerivation rec {
libxcrypt
] ++ lib.optionals stdenv.isLinux [ nettools ]
++ lib.optionals pythonSupport [ python3 ]
++ lib.optionals guileSupport [ guile ];
++ lib.optionals guileSupport [ guile_2_2 ];

patches = [
./fix-build-mb-len-max.patch
Expand Down
6 changes: 3 additions & 3 deletions pkgs/tools/typesetting/skribilo/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
, imagemagick
, makeWrapper
, pkg-config
, ploticus
, enableEmacs ? false, emacs
, enableLout ? true, lout
, enableLout ? stdenv.isLinux, lout
, enablePloticus ? stdenv.isLinux, ploticus
, enableTex ? true, tex
}:

Expand Down Expand Up @@ -40,10 +40,10 @@ in stdenv.mkDerivation (finalAttrs: {
guile-lib
guile-reader
imagemagick
ploticus
]
++ optional enableEmacs emacs
++ optional enableLout lout
++ optional enablePloticus ploticus
++ optional enableTex tex;

postInstall =
Expand Down
6 changes: 4 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18032,7 +18032,7 @@ with pkgs;

guile_3_0 = callPackage ../development/interpreters/guile/3.0.nix { };

guile = guile_2_2;
guile = guile_3_0;

guile-cairo = callPackage ../development/guile-modules/guile-cairo { };

Expand All @@ -18058,7 +18058,9 @@ with pkgs;

guile-reader = callPackage ../development/guile-modules/guile-reader { };

guile-sdl = callPackage ../development/guile-modules/guile-sdl { };
guile-sdl = callPackage ../development/guile-modules/guile-sdl {
guile = guile_2_2;
};

guile-sdl2 = callPackage ../development/guile-modules/guile-sdl2 { };

Expand Down