Unverified Commit 98d5ac25 authored by oddlama's avatar oddlama
Browse files

ente-web: add nixosTests.ente as passthru.tests

parent f244290c
Loading
Loading
Loading
Loading
+41 −37
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@
  # can set this parameter to override these occurrences with your own url. Must include the schema.
  # Example: https://my-ente.example.com
  enteMainUrl ? null,
  nixosTests,
}:

stdenv.mkDerivation (finalAttrs: {
@@ -104,7 +105,9 @@ stdenv.mkDerivation (finalAttrs: {
      runHook postInstall
    '';

  passthru.updateScript = writeScript "update-ente-web" ''
  passthru = {
    tests = { inherit (nixosTests) ente; };
    updateScript = writeScript "update-ente-web" ''
      #!/usr/bin/env nix-shell
      #!nix-shell -i bash -p coreutils nix-update gnugrep gnused curl

@@ -155,6 +158,7 @@ stdenv.mkDerivation (finalAttrs: {

      echo "Successfully updated wasm-bindgen-cli to $wasm_bindgen_attr"
    '';
  };

  meta = {
    description = "Ente application web frontends";