Commit 58265b00 authored by OPNA2608's avatar OPNA2608
Browse files

lomiri.lomiri-indicator-network: Update to new passthru.ayatana-indicators format

parent 363e6d2d
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  stdenv,
  lib,
  fetchFromGitLab,
  fetchpatch,
  gitUpdater,
  nixosTests,
  testers,
@@ -47,6 +48,16 @@ stdenv.mkDerivation (finalAttrs: {
    "doc"
  ];

  patches = [
    # Move to new lomiri-indicators target
    # Remove when version > 1.0.2
    (fetchpatch {
      name = "0001-lomiri-indicator-network-lomiri-indicators-target.patch";
      url = "https://gitlab.com/ubports/development/core/lomiri-indicator-network/-/commit/b1e1f7da4b298964eba3caea37b1dace7a6182e9.patch";
      hash = "sha256-pZKpEn2OJtB1pG/U+6IjtPGiOchRDhdbBHEZbTW7Lx0=";
    })
  ];

  postPatch = ''
    # Override original prefixes
    substituteInPlace data/CMakeLists.txt \
@@ -106,7 +117,9 @@ stdenv.mkDerivation (finalAttrs: {
  '';

  passthru = {
    ayatana-indicators = [ "lomiri-indicator-network" ];
    ayatana-indicators = {
      lomiri-indicator-network = [ "lomiri" ];
    };
    tests = {
      pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
      vm = nixosTests.ayatana-indicators;