···162162 isolinuxCfg = concatStringsSep "\n"
163163 ([ baseIsolinuxCfg ] ++ optional config.boot.loader.grub.memtest86.enable isolinuxMemtest86Entry);
164164165165+ refindBinary = if targetArch == "x64" || targetArch == "aa64" then "refind_${targetArch}.efi" else null;
166166+165167 # Setup instructions for rEFInd.
166168 refind =
167167- if targetArch == "x64" then
169169+ if refindBinary != null then
168170 ''
169171 # Adds rEFInd to the ISO.
170170- cp -v ${pkgs.refind}/share/refind/refind_x64.efi $out/EFI/boot/
172172+ cp -v ${pkgs.refind}/share/refind/${refindBinary} $out/EFI/boot/
171173 ''
172174 else
173175 "# No refind for ${targetArch}"
···186188187189 # Fonts can be loaded?
188190 # (This font is assumed to always be provided as a fallback by NixOS)
189189- if loadfont (hd0)/EFI/boot/unicode.pf2; then
191191+ if loadfont /EFI/boot/unicode.pf2; then
192192+ set with_fonts=true
193193+ fi
194194+ if [ "\$textmode" != "true" -a "\$with_fonts" == "true" ]; then
190195 # Use graphical term, it can be either with background image or a theme.
191196 # input is "console", while output is "gfxterm".
192197 # This enables "serial" input and output only when possible.
···207212 ${ # When there is a theme configured, use it, otherwise use the background image.
208213 if config.isoImage.grubTheme != null then ''
209214 # Sets theme.
210210- set theme=(hd0)/EFI/boot/grub-theme/theme.txt
215215+ set theme=/EFI/boot/grub-theme/theme.txt
211216 # Load theme fonts
212212- $(find ${config.isoImage.grubTheme} -iname '*.pf2' -printf "loadfont (hd0)/EFI/boot/grub-theme/%P\n")
217217+ $(find ${config.isoImage.grubTheme} -iname '*.pf2' -printf "loadfont /EFI/boot/grub-theme/%P\n")
213218 '' else ''
214214- if background_image (hd0)/EFI/boot/efi-background.png; then
219219+ if background_image /EFI/boot/efi-background.png; then
215220 # Black background means transparent background when there
216221 # is a background image set... This seems undocumented :(
217222 set color_normal=black/black
···264269265270 cat <<EOF > $out/EFI/boot/grub.cfg
266271272272+ set with_fonts=false
273273+ set textmode=false
267274 # If you want to use serial for "terminal_*" commands, you need to set one up:
268275 # Example manual configuration:
269276 # → serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
···273280 export with_serial
274281 clear
275282 set timeout=10
283283+284284+ # This message will only be viewable when "gfxterm" is not used.
285285+ echo ""
286286+ echo "Loading graphical boot menu..."
287287+ echo ""
288288+ echo "Press 't' to use the text boot menu on this console..."
289289+ echo ""
290290+276291 ${grubMenuCfg}
277292293293+ hiddenentry 'Text mode' --hotkey 't' {
294294+ loadfont /EFI/boot/unicode.pf2
295295+ set textmode=true
296296+ terminal_output gfxterm console
297297+ }
298298+ hiddenentry 'GUI mode' --hotkey 'g' {
299299+ $(find ${config.isoImage.grubTheme} -iname '*.pf2' -printf "loadfont /EFI/boot/grub-theme/%P\n")
300300+ set textmode=false
301301+ terminal_output gfxterm
302302+ }
303303+304304+278305 # If the parameter iso_path is set, append the findiso parameter to the kernel
279306 # line. We need this to allow the nixos iso to be booted from grub directly.
280307 if [ \''${iso_path} ] ; then
···337364 }
338365 }
339366340340- menuentry 'rEFInd' --class refind {
341341- # UUID is hard-coded in the derivation.
342342- search --set=root --no-floppy --fs-uuid 1234-5678
343343- chainloader (\$root)/EFI/boot/refind_x64.efi
344344- }
367367+ ${lib.optionalString (refindBinary != null) ''
368368+ # GRUB apparently cannot do "chainloader" operations on "CD".
369369+ if [ "\$root" != "cd0" ]; then
370370+ menuentry 'rEFInd' --class refind {
371371+ # \$root defaults to the drive the EFI is found on.
372372+ chainloader (\$root)/EFI/boot/${refindBinary}
373373+ }
374374+ fi
375375+ ''}
345376 menuentry 'Firmware Setup' --class settings {
346377 fwsetup
347378 clear
+31-8
pkgs/applications/audio/audacity/default.nix
···2828, ffmpeg
2929, soundtouch
3030, pcre /*, portaudio - given up fighting their portaudio.patch */
3131+, linuxHeaders
3132, at-spi2-core ? null
3233, dbus ? null
3334, epoxy ? null
···4142}:
42434344# TODO
4444-# - as of 2.4.2, GTK2 is still the recommended version ref https://www.audacityteam.org/download/source/ check if that changes in future versions
4545+# - as of 3.0.2, GTK2 is still the recommended version ref https://www.audacityteam.org/download/source/ check if that changes in future versions
4546# - detach sbsms
46474848+let
4949+ wxGTK-audacity = wxGTK.overrideAttrs (oldAttrs: rec {
5050+ src = fetchFromGitHub {
5151+ owner = "audacity";
5252+ repo = "wxWidgets";
5353+ rev = "07e7d832c7a337aedba3537b90b2c98c4d8e2985";
5454+ sha256 = "1mawnkcrmqj98jp0jxlnh9xkc950ca033ccb51c7035pzmi9if9a";
5555+ fetchSubmodules = true;
5656+ };
5757+ });
5858+in
4759stdenv.mkDerivation rec {
4860 pname = "audacity";
4949- version = "2.4.2";
6161+ version = "3.0.2";
50625163 src = fetchFromGitHub {
5264 owner = "audacity";
5365 repo = "audacity";
5466 rev = "Audacity-${version}";
5555- sha256 = "sha256-hpRTo5B0EMyzORopsNPOgv6mohBkwJfWfCLnPvFmdFI=";
6767+ sha256 = "035qq2ff16cdl2cb9iply2bfjmhfl1dpscg79x6c9l0i9m8k41zj";
5668 };
57695870 patches = [
5971 (fetchpatch {
6060- url = "https://github.com/audacity/audacity/commit/a070b5d8a8ba10fb86edba6aeb8fdab0f66ba408.patch";
6161- sha256 = "sha256-8UZupGcN+/tytAhyy5T1P0nufvsQPeyLgOUMGt7l8Oc=";
7272+ url = "https://github.com/audacity/audacity/commit/007852e51fcbb5f1f359d112f28b8984a604dac6.patch";
7373+ sha256 = "0zp2iydd46analda9cfnbmzdkjphz5m7dynrdj5qdnmq6j3px9fw";
6274 name = "audacity_xdg_paths.patch";
6375 })
6476 ];
···6678 # this file *should* be generated by cmake but as of 2.4.2 isn't yet
6779 postPatch = ''
6880 touch src/RevisionIdent.h
8181+ '';
8282+8383+ preConfigure = ''
8484+ substituteInPlace src/FileNames.cpp --replace /usr/include/linux/magic.h ${linuxHeaders}/include/linux/magic.h
6985 '';
70867187 # workaround for a broken cmake. Drop it with a later version to see if it works.
···86102 "-lswscale"
87103 ];
881048989- nativeBuildInputs = [ cmake gettext pkg-config python3 ];
105105+ nativeBuildInputs = [
106106+ cmake
107107+ gettext
108108+ pkg-config
109109+ python3
110110+ ] ++ lib.optionals stdenv.isLinux [
111111+ linuxHeaders
112112+ ];
9011391114 buildInputs = [
92115 alsaLib
···110133 sratom
111134 suil
112135 twolame
113113- wxGTK
114114- wxGTK.gtk
136136+ wxGTK-audacity
137137+ wxGTK-audacity.gtk
115138 ] ++ lib.optionals stdenv.isLinux [
116139 at-spi2-core
117140 dbus