Unverified Commit 22d125a4 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

annotator: 1.2.1 -> 2.0.0 (#413133)

parents ce30006d f5f8ebf9
Loading
Loading
Loading
Loading
+21 −12
Original line number Diff line number Diff line
@@ -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;
  };
}
})