ftb-app: init at 1.27.2 (#382405)

authored by Arne Keller and committed by GitHub c6f28ea7 1963e93d

+70
+6
maintainers/maintainer-list.nix
··· 16849 name = "Daniel Nagy"; 16850 keys = [ { fingerprint = "F6AE 2C60 9196 A1BC ECD8 7108 1B8E 8DCB 576F B671"; } ]; 16851 }; 16852 naho = { 16853 github = "trueNAHO"; 16854 githubId = 90870942;
··· 16849 name = "Daniel Nagy"; 16850 keys = [ { fingerprint = "F6AE 2C60 9196 A1BC ECD8 7108 1B8E 8DCB 576F B671"; } ]; 16851 }; 16852 + nagymathev = { 16853 + name = "Viktor Nagymathe"; 16854 + email = "nagymathev@gmail.com"; 16855 + github = "nagymathev"; 16856 + githubId = 49335802; 16857 + }; 16858 naho = { 16859 github = "trueNAHO"; 16860 githubId = 90870942;
+64
pkgs/by-name/ft/ftb-app/package.nix
···
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchurl, 5 + appimageTools, 6 + nix-update-script, 7 + }: 8 + let 9 + pname = "ftb-app"; 10 + version = "1.27.2"; 11 + 12 + src = 13 + let 14 + src' = 15 + { 16 + aarch64-linux = { 17 + url = "https://piston.feed-the-beast.com/app/ftb-app-linux-${version}-arm64.AppImage"; 18 + hash = "sha256-il7DIY1c5TDmRSzc86BTOCn4P20P3Wd4STkLGyFm2+c="; 19 + }; 20 + x86_64-linux = { 21 + url = "https://piston.feed-the-beast.com/app/ftb-app-linux-${version}-x86_64.AppImage"; 22 + hash = "sha256-35GEI1OBvVkUvHvQAzzGz8ux9h+5W3acH0Wr5VkqyBw="; 23 + }; 24 + } 25 + .${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); 26 + in 27 + fetchurl src'; 28 + 29 + passthru.updateScript = nix-update-script { }; 30 + 31 + meta = { 32 + description = "Feed the Beast desktop app"; 33 + homepage = "https://www.feed-the-beast.com/ftb-app"; 34 + changelog = "https://www.feed-the-beast.com/ftb-app/changes#${version}"; 35 + license = lib.licenses.lgpl21Only; 36 + maintainers = with lib.maintainers; [ nagymathev ]; 37 + mainProgram = "ftb-app"; # This might need a change for darwin 38 + platforms = with lib.platforms; linux; 39 + }; 40 + in 41 + let 42 + appimageContents = appimageTools.extractType2 { inherit pname src version; }; 43 + in 44 + appimageTools.wrapType2 { 45 + inherit 46 + pname 47 + src 48 + version 49 + passthru 50 + meta 51 + ; 52 + 53 + extraInstallCommands = '' 54 + for size in 16x16 32x32 48x48 64x64 128x128 256x256 512x512; do 55 + install -Dm644 ${appimageContents}/usr/share/icons/hicolor/$size/apps/ftb-app.png \ 56 + $out/share/icons/hicolor/$size/apps/ftb-app.png 57 + done 58 + 59 + install -Dm644 ${appimageContents}/ftb-app.desktop \ 60 + $out/share/applications/ftb-app.desktop 61 + substituteInPlace $out/share/applications/ftb-app.desktop \ 62 + --replace-fail 'Exec=AppRun' 'Exec=ftb-app' 63 + ''; 64 + }