From a19fb6e96892180334779ec145a110eb6fdb8fe0 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Thu, 3 Oct 2024 10:48:42 -0500 Subject: [PATCH] p3x-onenote: format --- .../office/p3x-onenote/default.nix | 38 +++++++++++++------ 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/pkgs/applications/office/p3x-onenote/default.nix b/pkgs/applications/office/p3x-onenote/default.nix index 08e86d501328..1992021964e9 100644 --- a/pkgs/applications/office/p3x-onenote/default.nix +++ b/pkgs/applications/office/p3x-onenote/default.nix @@ -1,20 +1,30 @@ -{ lib, stdenv, appimageTools, desktop-file-utils, fetchurl }: +{ + lib, + stdenv, + appimageTools, + desktop-file-utils, + fetchurl, +}: let pname = "p3x-onenote"; version = "2023.4.117"; - plat = { - aarch64-linux = "-arm64"; - armv7l-linux = "-armv7l"; - x86_64-linux = ""; - }.${stdenv.hostPlatform.system}; + plat = + { + aarch64-linux = "-arm64"; + armv7l-linux = "-armv7l"; + x86_64-linux = ""; + } + .${stdenv.hostPlatform.system}; - sha256 = { - aarch64-linux = "sha256-HFuxmMo0m4UOxEQVd32LGvbFsOS8jwCCCS6K/YJIIBE="; - armv7l-linux = "sha256-JMgYvqkaRw5sfjbKybAkk28KT12+c19dMir2DUN7Ub0="; - x86_64-linux = "sha256-hr/mPOrliP8Dej3DVE2+wYkb1J789WCkkY3xe9EcM44="; - }.${stdenv.hostPlatform.system}; + sha256 = + { + aarch64-linux = "sha256-HFuxmMo0m4UOxEQVd32LGvbFsOS8jwCCCS6K/YJIIBE="; + armv7l-linux = "sha256-JMgYvqkaRw5sfjbKybAkk28KT12+c19dMir2DUN7Ub0="; + x86_64-linux = "sha256-hr/mPOrliP8Dej3DVE2+wYkb1J789WCkkY3xe9EcM44="; + } + .${stdenv.hostPlatform.system}; src = fetchurl { url = "https://github.com/patrikx3/onenote/releases/download/v${version}/P3X-OneNote-${version}${plat}.AppImage"; @@ -45,7 +55,11 @@ appimageTools.wrapType2 rec { description = "Linux Electron Onenote - A Linux compatible version of OneNote"; license = licenses.mit; maintainers = with maintainers; [ tiagolobocastro ]; - platforms = [ "x86_64-linux" "aarch64-linux" "armv7l-linux" ]; + platforms = [ + "x86_64-linux" + "aarch64-linux" + "armv7l-linux" + ]; mainProgram = "p3x-onenote"; }; }