From ee4f1a853f128fc96035152a0a006a40848de182 Mon Sep 17 00:00:00 2001 From: nagymathev Date: Sat, 15 Feb 2025 20:52:23 +0100 Subject: [PATCH 1/2] ftb-app: init at 1.27.2 ftb-app: remove darwin support ftb-app: formatting --- pkgs/by-name/ft/ftb-app/package.nix | 64 +++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 pkgs/by-name/ft/ftb-app/package.nix diff --git a/pkgs/by-name/ft/ftb-app/package.nix b/pkgs/by-name/ft/ftb-app/package.nix new file mode 100644 index 000000000000..f64787188cb4 --- /dev/null +++ b/pkgs/by-name/ft/ftb-app/package.nix @@ -0,0 +1,64 @@ +{ + lib, + stdenv, + fetchurl, + appimageTools, + nix-update-script, +}: +let + pname = "ftb-app"; + version = "1.27.2"; + + src = + let + src' = + { + aarch64-linux = { + url = "https://piston.feed-the-beast.com/app/ftb-app-linux-${version}-arm64.AppImage"; + hash = "sha256-il7DIY1c5TDmRSzc86BTOCn4P20P3Wd4STkLGyFm2+c="; + }; + x86_64-linux = { + url = "https://piston.feed-the-beast.com/app/ftb-app-linux-${version}-x86_64.AppImage"; + hash = "sha256-35GEI1OBvVkUvHvQAzzGz8ux9h+5W3acH0Wr5VkqyBw="; + }; + } + .${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); + in + fetchurl src'; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Feed the Beast desktop app"; + homepage = "https://www.feed-the-beast.com/ftb-app"; + changelog = "https://www.feed-the-beast.com/ftb-app/changes#${version}"; + license = lib.licenses.lgpl21Only; + maintainers = with lib.maintainers; [ nagymathev ]; + mainProgram = "ftb-app"; # This might need a change for darwin + platforms = with lib.platforms; linux; + }; +in +let + appimageContents = appimageTools.extractType2 { inherit pname src version; }; +in +appimageTools.wrapType2 { + inherit + pname + src + version + passthru + meta + ; + + extraInstallCommands = '' + for size in 16x16 32x32 48x48 64x64 128x128 256x256 512x512; do + install -Dm644 ${appimageContents}/usr/share/icons/hicolor/$size/apps/ftb-app.png \ + $out/share/icons/hicolor/$size/apps/ftb-app.png + done + + install -Dm644 ${appimageContents}/ftb-app.desktop \ + $out/share/applications/ftb-app.desktop + substituteInPlace $out/share/applications/ftb-app.desktop \ + --replace-fail 'Exec=AppRun' 'Exec=ftb-app' + ''; +} From 582c55b7c414d199687160bf61d49a31e57eb67a Mon Sep 17 00:00:00 2001 From: nagymathev Date: Sat, 15 Feb 2025 23:28:56 +0100 Subject: [PATCH 2/2] maintainers: add nagymathev --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 12acd1644d27..e0fb1ab74f7d 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -16013,6 +16013,12 @@ name = "Daniel Nagy"; keys = [ { fingerprint = "F6AE 2C60 9196 A1BC ECD8 7108 1B8E 8DCB 576F B671"; } ]; }; + nagymathev = { + name = "Viktor Nagymathe"; + email = "nagymathev@gmail.com"; + github = "nagymathev"; + githubId = 49335802; + }; naho = { github = "trueNAHO"; githubId = 90870942;