eb04659fc2
This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
164 lines
3 KiB
Nix
164 lines
3 KiB
Nix
{
|
|
lib,
|
|
alsa-lib,
|
|
boost,
|
|
cmake,
|
|
config,
|
|
darwin,
|
|
expat,
|
|
fetchFromGitHub,
|
|
ffmpeg,
|
|
ffms,
|
|
fftw,
|
|
fontconfig,
|
|
freetype,
|
|
fribidi,
|
|
glib,
|
|
harfbuzz,
|
|
hunspell,
|
|
icu,
|
|
intltool,
|
|
libGL,
|
|
libGLU,
|
|
libX11,
|
|
libass,
|
|
libiconv,
|
|
libpulseaudio,
|
|
libuchardet,
|
|
luajit,
|
|
ninja,
|
|
openal,
|
|
pcre,
|
|
pkg-config,
|
|
portaudio,
|
|
stdenv,
|
|
which,
|
|
wrapGAppsHook3,
|
|
wxGTK,
|
|
zlib,
|
|
# Boolean guard flags
|
|
alsaSupport ? stdenv.isLinux,
|
|
openalSupport ? true,
|
|
portaudioSupport ? true,
|
|
pulseaudioSupport ? config.pulseaudio or stdenv.isLinux,
|
|
spellcheckSupport ? true,
|
|
useBundledLuaJIT ? false,
|
|
}:
|
|
|
|
let
|
|
inherit (darwin.apple_sdk.frameworks)
|
|
AppKit
|
|
Carbon
|
|
Cocoa
|
|
CoreFoundation
|
|
CoreText
|
|
IOKit
|
|
OpenAL;
|
|
in
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "aegisub";
|
|
version = "3.3.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wangqr";
|
|
repo = "aegisub";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-oKhLv81EFudrJaaJ2ga3pVh4W5Hd2YchpjsoYoqRm78=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
intltool
|
|
luajit
|
|
ninja
|
|
pkg-config
|
|
which
|
|
wrapGAppsHook3
|
|
wxGTK
|
|
];
|
|
|
|
buildInputs = [
|
|
boost
|
|
expat
|
|
ffmpeg
|
|
ffms
|
|
fftw
|
|
fontconfig
|
|
freetype
|
|
fribidi
|
|
glib
|
|
harfbuzz
|
|
icu
|
|
libGL
|
|
libGLU
|
|
libX11
|
|
libass
|
|
libiconv
|
|
libuchardet
|
|
pcre
|
|
wxGTK
|
|
zlib
|
|
]
|
|
++ lib.optionals alsaSupport [ alsa-lib ]
|
|
++ lib.optionals openalSupport [
|
|
(if stdenv.isDarwin then OpenAL else openal)
|
|
]
|
|
++ lib.optionals portaudioSupport [ portaudio ]
|
|
++ lib.optionals pulseaudioSupport [ libpulseaudio ]
|
|
++ lib.optionals spellcheckSupport [ hunspell ]
|
|
++ lib.optionals stdenv.isDarwin [
|
|
AppKit
|
|
Carbon
|
|
Cocoa
|
|
CoreFoundation
|
|
CoreText
|
|
IOKit
|
|
];
|
|
|
|
hardeningDisable = [
|
|
"bindnow"
|
|
"relro"
|
|
];
|
|
|
|
patches = lib.optionals (!useBundledLuaJIT) [
|
|
./000-remove-bundled-luajit.patch
|
|
];
|
|
|
|
# error: unknown type name 'NSUInteger'
|
|
postPatch = ''
|
|
substituteInPlace src/dialog_colorpicker.cpp \
|
|
--replace "NSUInteger" "size_t"
|
|
'';
|
|
|
|
env = {
|
|
NIX_CFLAGS_COMPILE = "-I${lib.getDev luajit}/include";
|
|
NIX_CFLAGS_LINK = "-L${lib.getLib luajit}/lib";
|
|
};
|
|
|
|
preConfigure = ''
|
|
export FORCE_GIT_VERSION=${finalAttrs.version}
|
|
'';
|
|
|
|
cmakeBuildDir = "build-directory";
|
|
|
|
strictDeps = true;
|
|
|
|
meta = {
|
|
homepage = "https://github.com/wangqr/Aegisub";
|
|
description = "An advanced subtitle editor; wangqr's fork";
|
|
longDescription = ''
|
|
Aegisub is a free, cross-platform open source tool for creating and
|
|
modifying subtitles. Aegisub makes it quick and easy to time subtitles to
|
|
audio, and features many powerful tools for styling them, including a
|
|
built-in real-time video preview.
|
|
'';
|
|
# The Aegisub sources are itself BSD/ISC, but they are linked against GPL'd
|
|
# softwares - so the resulting program will be GPL
|
|
license = with lib.licenses; [
|
|
bsd3
|
|
];
|
|
mainProgram = "aegisub";
|
|
maintainers = with lib.maintainers; [ AndersonTorres wegank ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|