Loading pkgs/by-name/fo/follow/package.nix +21 −15 Original line number Diff line number Diff line Loading @@ -6,32 +6,32 @@ makeDesktopItem, makeWrapper, nodejs, pnpm_9, pnpm_10, stdenv, }: stdenv.mkDerivation rec { pname = "follow"; version = "0.3.7"; version = "0.6.3"; src = fetchFromGitHub { owner = "RSSNext"; repo = "Follow"; rev = "v${version}"; hash = "sha256-TPzrQo6214fXQmF45p5agQ1zqLYzpmMpYb89ASPsWio="; repo = "Folo"; tag = "v${version}"; hash = "sha256-huVk5KcsepDwtdWMm9pvn31GE1felbH1pR3mGqlSWRs="; }; nativeBuildInputs = [ nodejs pnpm_9.configHook pnpm_10.configHook makeWrapper imagemagick ]; pnpmDeps = pnpm_9.fetchDeps { pnpmDeps = pnpm_10.fetchDeps { inherit pname version src; fetcherVersion = 1; hash = "sha256-xNGLYzEz1G5sZSqmji+ItJ9D1vvZcwkkygnDeuypcIM="; hash = "sha256-6I10NSmTDd/wmL/HfAgLH+G2MDfuPmrTePNDDy08nRA="; }; env = { Loading @@ -39,8 +39,8 @@ stdenv.mkDerivation rec { # This environment variables inject the production Vite config at build time. # Copy from: # 1. https://github.com/RSSNext/Follow/blob/v0.3.7/.github/workflows/build.yml#L18 # 2. And logs in the corresponding GitHub Actions: https://github.com/RSSNext/Follow/actions/workflows/build.yml # 1. https://github.com/RSSNext/Folo/blob/v0.4.6/.github/workflows/build-desktop.yml#L27 # 2. And logs in the corresponding GitHub Actions: https://github.com/RSSNext/Folo/actions/workflows/build-desktop.yml VITE_WEB_URL = "https://app.follow.is"; VITE_API_URL = "https://api.follow.is"; VITE_SENTRY_DSN = "https://e5bccf7428aa4e881ed5cb713fdff181@o4507542488023040.ingest.us.sentry.io/4507570439979008"; Loading Loading @@ -69,12 +69,18 @@ stdenv.mkDerivation rec { mimeTypes = [ "x-scheme-handler/follow" ]; }; icon = src + "/resources/icon.png"; icon = src + "/apps/desktop/resources/icon.png"; buildPhase = '' runHook preBuild pnpm --offline electron-vite build pnpm run build:packages # Build desktop app. cd apps/desktop pnpm --offline --no-inline-css build:electron-vite cd ../.. # Remove dev dependencies. pnpm --ignore-scripts prune --prod # Clean up broken symlinks left behind by `pnpm prune` Loading @@ -92,8 +98,7 @@ stdenv.mkDerivation rec { makeWrapper "${electron}/bin/electron" "$out/bin/follow" \ --inherit-argv0 \ --add-flags --disable-gpu-compositing \ --add-flags $out/share/follow \ --add-flags $out/share/follow/apps/desktop \ --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}" install -m 444 -D "${desktopItem}/share/applications/"* \ Loading @@ -109,7 +114,8 @@ stdenv.mkDerivation rec { meta = { description = "Next generation information browser"; homepage = "https://github.com/RSSNext/Follow"; homepage = "https://github.com/RSSNext/Folo"; changelog = "https://github.com/RSSNext/Folo/releases/tag/${src.tag}"; license = lib.licenses.gpl3Only; maintainers = with lib.maintainers; [ iosmanthus ]; platforms = [ "x86_64-linux" ]; Loading Loading
pkgs/by-name/fo/follow/package.nix +21 −15 Original line number Diff line number Diff line Loading @@ -6,32 +6,32 @@ makeDesktopItem, makeWrapper, nodejs, pnpm_9, pnpm_10, stdenv, }: stdenv.mkDerivation rec { pname = "follow"; version = "0.3.7"; version = "0.6.3"; src = fetchFromGitHub { owner = "RSSNext"; repo = "Follow"; rev = "v${version}"; hash = "sha256-TPzrQo6214fXQmF45p5agQ1zqLYzpmMpYb89ASPsWio="; repo = "Folo"; tag = "v${version}"; hash = "sha256-huVk5KcsepDwtdWMm9pvn31GE1felbH1pR3mGqlSWRs="; }; nativeBuildInputs = [ nodejs pnpm_9.configHook pnpm_10.configHook makeWrapper imagemagick ]; pnpmDeps = pnpm_9.fetchDeps { pnpmDeps = pnpm_10.fetchDeps { inherit pname version src; fetcherVersion = 1; hash = "sha256-xNGLYzEz1G5sZSqmji+ItJ9D1vvZcwkkygnDeuypcIM="; hash = "sha256-6I10NSmTDd/wmL/HfAgLH+G2MDfuPmrTePNDDy08nRA="; }; env = { Loading @@ -39,8 +39,8 @@ stdenv.mkDerivation rec { # This environment variables inject the production Vite config at build time. # Copy from: # 1. https://github.com/RSSNext/Follow/blob/v0.3.7/.github/workflows/build.yml#L18 # 2. And logs in the corresponding GitHub Actions: https://github.com/RSSNext/Follow/actions/workflows/build.yml # 1. https://github.com/RSSNext/Folo/blob/v0.4.6/.github/workflows/build-desktop.yml#L27 # 2. And logs in the corresponding GitHub Actions: https://github.com/RSSNext/Folo/actions/workflows/build-desktop.yml VITE_WEB_URL = "https://app.follow.is"; VITE_API_URL = "https://api.follow.is"; VITE_SENTRY_DSN = "https://e5bccf7428aa4e881ed5cb713fdff181@o4507542488023040.ingest.us.sentry.io/4507570439979008"; Loading Loading @@ -69,12 +69,18 @@ stdenv.mkDerivation rec { mimeTypes = [ "x-scheme-handler/follow" ]; }; icon = src + "/resources/icon.png"; icon = src + "/apps/desktop/resources/icon.png"; buildPhase = '' runHook preBuild pnpm --offline electron-vite build pnpm run build:packages # Build desktop app. cd apps/desktop pnpm --offline --no-inline-css build:electron-vite cd ../.. # Remove dev dependencies. pnpm --ignore-scripts prune --prod # Clean up broken symlinks left behind by `pnpm prune` Loading @@ -92,8 +98,7 @@ stdenv.mkDerivation rec { makeWrapper "${electron}/bin/electron" "$out/bin/follow" \ --inherit-argv0 \ --add-flags --disable-gpu-compositing \ --add-flags $out/share/follow \ --add-flags $out/share/follow/apps/desktop \ --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}" install -m 444 -D "${desktopItem}/share/applications/"* \ Loading @@ -109,7 +114,8 @@ stdenv.mkDerivation rec { meta = { description = "Next generation information browser"; homepage = "https://github.com/RSSNext/Follow"; homepage = "https://github.com/RSSNext/Folo"; changelog = "https://github.com/RSSNext/Folo/releases/tag/${src.tag}"; license = lib.licenses.gpl3Only; maintainers = with lib.maintainers; [ iosmanthus ]; platforms = [ "x86_64-linux" ]; Loading