fcast-receiver: 1.0.14 -> 2.0.0

Diff: c7a1cb27c4...3
This commit is contained in:
emaryn 2025-04-22 07:11:40 +08:00
parent 2b70f37c3a
commit 938e5dc44e

View file

@ -6,31 +6,32 @@
copyDesktopItems, copyDesktopItems,
makeWrapper, makeWrapper,
electron, electron,
rsync,
}: }:
buildNpmPackage rec { buildNpmPackage rec {
pname = "fcast-receiver"; pname = "fcast-receiver";
version = "1.0.14"; version = "2.0.0";
src = fetchFromGitLab { src = fetchFromGitLab {
domain = "gitlab.futo.org"; domain = "gitlab.futo.org";
owner = "videostreaming"; owner = "videostreaming";
repo = "fcast"; repo = "fcast";
rev = "c7a1cb27c470870df50dbf0de00a133061298d46"; rev = "4af2a537ef431918a5cf53b3ba18abe6b2d18c1e";
hash = "sha256-9xF1DZ2wt6zMoUQywmvnNN3Z8m4GhOFJElENhozF9c8="; hash = "sha256-Y3IyxYLGRi/fLh5A3ap+5x3Wny9WRplaYtBM3R3I8+U=";
}; };
sourceRoot = "${src.name}/receivers/electron"; sourceRoot = "${src.name}/receivers/electron";
makeCacheWritable = true; makeCacheWritable = true;
npmDepsHash = "sha256-gpbFZ8rKYR/GUY1l4eH5io/lz6FpJLUTl5h8q3haxvw="; npmDepsHash = "sha256-GXlqOukGWtt3KP+xsAiDsUG2Naej0v2RL7Vq3hqcavE=";
env.ELECTRON_SKIP_BINARY_DOWNLOAD = "1"; env.ELECTRON_SKIP_BINARY_DOWNLOAD = "1";
desktopItems = [ desktopItems = [
(makeDesktopItem { (makeDesktopItem {
name = pname; name = "fcast-receiver";
desktopName = "FCast Receiver"; desktopName = "FCast Receiver";
genericName = "Media Streaming Receiver"; genericName = "Media Streaming Receiver";
exec = "fcast-receiver"; exec = "fcast-receiver";
@ -42,24 +43,26 @@ buildNpmPackage rec {
nativeBuildInputs = [ nativeBuildInputs = [
copyDesktopItems copyDesktopItems
makeWrapper makeWrapper
rsync
]; ];
postInstall = '' 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 \ makeWrapper ${electron}/bin/electron $out/bin/fcast-receiver \
--add-flags $out/lib/node_modules/fcast-receiver/dist/bundle.js --add-flags $out/lib/node_modules/fcast-receiver/dist/bundle.js
''; '';
meta = with lib; { meta = {
description = "FCast Receiver, an open-source media streaming receiver"; description = "FCast Receiver, an open-source media streaming receiver";
longDescription = '' longDescription = ''
FCast Receiver is a receiver for an open-source media streaming protocol, FCast, an alternative to Chromecast and AirPlay. FCast Receiver is a receiver for an open-source media streaming protocol, FCast, an alternative to Chromecast and AirPlay.
''; '';
homepage = "https://fcast.org/"; homepage = "https://fcast.org/";
license = licenses.gpl3; license = lib.licenses.gpl3;
maintainers = with maintainers; [ ymstnt ]; maintainers = with lib.maintainers; [ ymstnt ];
mainProgram = "fcast-receiver"; mainProgram = "fcast-receiver";
platforms = platforms.linux; platforms = lib.platforms.linux;
}; };
} }