From 938e5dc44ef48edd0b82139a120b9df3be8bd9c3 Mon Sep 17 00:00:00 2001 From: emaryn Date: Tue, 22 Apr 2025 07:11:40 +0800 Subject: [PATCH] fcast-receiver: 1.0.14 -> 2.0.0 Diff: https://gitlab.futo.org/videostreaming/fcast/-/compare/c7a1cb27c470870df50dbf0de00a133061298d46...3 --- pkgs/by-name/fc/fcast-receiver/package.nix | 23 ++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/pkgs/by-name/fc/fcast-receiver/package.nix b/pkgs/by-name/fc/fcast-receiver/package.nix index ae1a093fe214..8225fc2cfce4 100644 --- a/pkgs/by-name/fc/fcast-receiver/package.nix +++ b/pkgs/by-name/fc/fcast-receiver/package.nix @@ -6,31 +6,32 @@ copyDesktopItems, makeWrapper, electron, + rsync, }: buildNpmPackage rec { pname = "fcast-receiver"; - version = "1.0.14"; + version = "2.0.0"; src = fetchFromGitLab { domain = "gitlab.futo.org"; owner = "videostreaming"; repo = "fcast"; - rev = "c7a1cb27c470870df50dbf0de00a133061298d46"; - hash = "sha256-9xF1DZ2wt6zMoUQywmvnNN3Z8m4GhOFJElENhozF9c8="; + rev = "4af2a537ef431918a5cf53b3ba18abe6b2d18c1e"; + hash = "sha256-Y3IyxYLGRi/fLh5A3ap+5x3Wny9WRplaYtBM3R3I8+U="; }; sourceRoot = "${src.name}/receivers/electron"; makeCacheWritable = true; - npmDepsHash = "sha256-gpbFZ8rKYR/GUY1l4eH5io/lz6FpJLUTl5h8q3haxvw="; + npmDepsHash = "sha256-GXlqOukGWtt3KP+xsAiDsUG2Naej0v2RL7Vq3hqcavE="; env.ELECTRON_SKIP_BINARY_DOWNLOAD = "1"; desktopItems = [ (makeDesktopItem { - name = pname; + name = "fcast-receiver"; desktopName = "FCast Receiver"; genericName = "Media Streaming Receiver"; exec = "fcast-receiver"; @@ -42,24 +43,26 @@ buildNpmPackage rec { nativeBuildInputs = [ copyDesktopItems makeWrapper + rsync ]; postInstall = '' - install -Dm644 $out/lib/node_modules/fcast-receiver/app.png $out/share/pixmaps/fcast-receiver.png + install -Dm644 assets/icons/app/icon.png $out/share/pixmaps/fcast-receiver.png + ln -s $out/lib/node_modules/fcast-receiver/package.json $out/lib/node_modules/fcast-receiver/dist/package.json makeWrapper ${electron}/bin/electron $out/bin/fcast-receiver \ --add-flags $out/lib/node_modules/fcast-receiver/dist/bundle.js ''; - meta = with lib; { + meta = { description = "FCast Receiver, an open-source media streaming receiver"; longDescription = '' FCast Receiver is a receiver for an open-source media streaming protocol, FCast, an alternative to Chromecast and AirPlay. ''; homepage = "https://fcast.org/"; - license = licenses.gpl3; - maintainers = with maintainers; [ ymstnt ]; + license = lib.licenses.gpl3; + maintainers = with lib.maintainers; [ ymstnt ]; mainProgram = "fcast-receiver"; - platforms = platforms.linux; + platforms = lib.platforms.linux; }; }