Commit be6a4c93 authored by Edgar Pireyn's avatar Edgar Pireyn
Browse files

plant-it: remove package

Plant-it has undergone a breaking change deleting the server-side, only
keeping the Android app. It therefore is useless in nixpkgs as it is
unmaintained upstream.

See commit: https://github.com/MDeLuise/plant-it/commit/3a2ac6f1035e7276fce245668a3523c54281e74b

This reverts commit e2b421c1.
parent 8deb3168
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
--- backend/src/test/resources/features/plants-and-species.feature
+++ backend/src/test/resources/features/plants-and-species.feature
@@ -199,11 +199,8 @@
     Then response is ok
     * species "foo" is
       | scientific_name | synonyms | family | genus | species | creator | externalId |
       | foo             | synonym1 | fam    | gen   | foo     | USER    |            |
-    * species "foo" has this image
-      | image_id | image_url                | image_content |
-      |          | https://dummyimage.com/1 |               |
     * species "foo" has this care
       | light | humidity | minTemp | maxTemp | phMax | phMin |
       | 6     | 5        |         |         | 2     | 1     |
     When user updates botanical info "foo"
 No newline at end of file
+0 −49
Original line number Diff line number Diff line
{
  maven,
  jdk21_headless,
  makeBinaryWrapper,
  lib,
  fetchFromGitHub,
}:
let
  version = "0.10.0";
in
maven.buildMavenPackage {
  pname = "plant-it";
  inherit version;

  src = fetchFromGitHub {
    owner = "MDeLuise";
    repo = "plant-it";
    tag = version;
    hash = "sha256-QnujZecUu7bzllSsrLH6hSZMaWeOUXBrSZ5rbT56pDM=";
  };
  sourceRoot = "source/backend";

  mvnHash = "sha256-3YQOZMXMI6BrHkqud2OKColJWbDXfwnAwRifYxbleqI=";
  nativeBuildInputs = [
    makeBinaryWrapper
  ];

  patches = [ ./Remove-test-needing-internet-connection.patch ];

  installPhase = ''
    runHook preInstall

    install -Dm644 target/plant-it-*.jar $out/share/plant-it/plant-it.jar

    makeBinaryWrapper ${jdk21_headless}/bin/java $out/bin/plant-it --add-flags "-jar $out/share/plant-it/plant-it.jar"

    runHook postInstall
  '';

  meta = {
    changelog = "https://github.com/MDeLuise/plant-it/releases/tag/${version}";
    description = "Self-hosted gardening companion application";
    homepage = "https://plant-it.org";
    maintainers = with lib.maintainers; [ epireyn ];
    license = lib.licenses.gpl3;
    platforms = lib.platforms.unix;
    mainProgram = "plant-it";
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -1427,6 +1427,7 @@ mapAliases {
  pinentry = throw "'pinentry' has been removed. Pick an appropriate variant like 'pinentry-curses' or 'pinentry-gnome3'"; # Converted to throw 2025-10-26
  pingvin-share = throw "'pingvin-share' has been removed as it was broken and archived upstream"; # Added 2025-11-08
  piper-train = throw "piper-train is now part of the piper package using the `withTrain` override"; # Added 2025-09-03
  plant-it = throw "plant-it backend was discontinued in september 2025"; # Added 2026-01-30
  plant-it-frontend = throw "plant-it-frontend has been presented as being Android-only since the server-side was discontinued in september 2025"; # Added 2026-01-30
  plasma-applet-volumewin7mixer = throw "'plasma-applet-volumewin7mixer' has been removed, as it is only compatible with Plasma 5, which is EOL"; # Added 2025-08-20
  plasma-pass = throw "'plasma-pass' has been removed, as it is only compatible with Plasma 5, which is EOL"; # Added 2025-08-20