Hi, I have been trying to get a working build for gnome-subtitles for a week now, however I don’t know what I need to do to fix an issue “ninja” encounters.
From what I read from the error at the bottom it looks like an argument is passed as “-L/path/to/library” instead of “-L /path/to/library” (with a space). But I do not know where that should be corrected.
{ stdenv
, desktop-file-utils
, appstream-glib
, lib
, fetchFromGitLab
, meson
, ninja
, cmake
, gettext
, pkg-config
, itstool
, libtool
, mono
, yelp-tools
, wrapGAppsHook
, enchant2
, gnome
, glib
, gtk3
, gtk-doc
, gtk-sharp-3_0
, gtkspell3
, gst_all_1
, libxml2
}:
stdenv.mkDerivation rec {
pname = "gnome-subtitles";
version = "1.8";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = pname;
rev = "${pname}-${version}";
hash = "sha256-6j9P2Yo5mkbihItZDr72IoShHkTZZQohHi8jRq6v8hg=";
};
nativeBuildInputs = [
desktop-file-utils
appstream-glib
wrapGAppsHook
gtk-doc
meson
ninja
gettext
cmake
mono
libtool
itstool
pkg-config
yelp-tools
];
buildInputs = [
enchant2
gtk3
glib
libxml2
gtk-sharp-3_0
gtkspell3
gnome.gnome-common
] ++ (with gst_all_1; [
gstreamer
gst-plugins-base
(gst-plugins-good.override {
gtkSupport = true;
})
gst-plugins-bad
gst-plugins-ugly
]);
prePatch= ''
substituteInPlace meson.build --replace "gst_sharp = subproject('gstreamer-sharp')" ""
substituteInPlace meson.build --replace "gst_sharp_dep = gst_sharp.get_variable('gst_sharp_dep')" "gst_sharp_dep = dependency('gstreamer-1.0')"
substituteInPlace meson.build --replace "gtk_sharp_dep = gst_sharp.get_variable('gtk_sharp_dep')" "gtk_sharp_dep = dependency('gtk-sharp-3.0')"
'';
meta = with lib; {
description = "Subtitle editor for the GNOME desktop";
homepage = "http://gnomesubtitles.org/";
license = licenses.gpl2Only;
maintainers = with maintainers; [ dasj19 ];
platforms = platforms.unix;
};
}
The build ends with these lines:
error CS2007: Unrecognized command-line option: `-L/nix/store/2k366jrbsra97gjfxwvrhvixjfxdach5-glib-2.74.1/lib'
[42/43] Generating data/org.gnome.GnomeSubtitles.desktop with a custom command
[43/43] Generating data/org.gnome.GnomeSubtitles.appdata.xml with a custom command
ninja: build stopped: subcommand failed.
Any advice is greatly appreciated