diff --git a/pkgs/by-name/an/annotator/package.nix b/pkgs/by-name/an/annotator/package.nix index 2846180b1564..554d2dad4c29 100644 --- a/pkgs/by-name/an/annotator/package.nix +++ b/pkgs/by-name/an/annotator/package.nix @@ -6,47 +6,56 @@ meson, ninja, vala, - wrapGAppsHook3, + wrapGAppsHook4, desktop-file-utils, + gtk3, libgee, pantheon, libxml2, libhandy, + libportal-gtk4, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "annotator"; - version = "1.2.1"; + version = "2.0.0"; src = fetchFromGitHub { owner = "phase1geo"; repo = "annotator"; - rev = version; - hash = "sha256-VHvznkGvrE8o9qq+ijrIStSavq46dS8BqclWEWZ8mG8="; + tag = finalAttrs.version; + hash = "sha256-mv3fMlYB4XcAWI6O6wN8ujNRDLZlX3ef/gKdOMYEHq0="; }; + postPatch = '' + substituteInPlace src/Application.vala \ + --replace-fail 'Environment.set_variable( "GDK_BACKEND", "x11", true );' "" + ''; + nativeBuildInputs = [ pkg-config meson ninja vala - wrapGAppsHook3 + wrapGAppsHook4 desktop-file-utils ]; buildInputs = [ libgee - pantheon.granite + pantheon.granite7 + libportal-gtk4 libxml2 libhandy + gtk3 ]; - meta = with lib; { + meta = { description = "Image annotation for Elementary OS"; homepage = "https://github.com/phase1geo/Annotator"; - license = licenses.gpl3Plus; + license = lib.licenses.gpl3Plus; mainProgram = "com.github.phase1geo.annotator"; - maintainers = with maintainers; [ aleksana ]; - platforms = platforms.linux; + maintainers = with lib.maintainers; [ aleksana ]; + platforms = lib.platforms.linux; }; -} +})