Skip to content

Commit

Permalink
appflowy: update macos archive structure
Browse files Browse the repository at this point in the history
- unzip the nested archive
- format with nixfmt
  • Loading branch information
DarkOnion0 committed Nov 20, 2024
1 parent 86e649d commit 91fa960
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions pkgs/by-name/ap/appflowy/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
xdg-user-dirs,
keybinder3,
libnotify,
unzip,
}:

let
Expand Down Expand Up @@ -38,10 +39,13 @@ stdenvNoCC.mkDerivation (finalAttrs: {
stripRoot = false;
};

nativeBuildInputs = [
makeWrapper
copyDesktopItems
] ++ lib.optionals stdenvNoCC.hostPlatform.isLinux [ autoPatchelfHook ];
nativeBuildInputs =
[
makeWrapper
copyDesktopItems
]
++ lib.optionals stdenvNoCC.hostPlatform.isLinux [ autoPatchelfHook ]
++ lib.optionals stdenvNoCC.hostPlatform.isDarwin [ unzip ];

buildInputs = [
gtk3
Expand Down Expand Up @@ -71,6 +75,8 @@ stdenvNoCC.mkDerivation (finalAttrs: {
+ lib.optionalString stdenvNoCC.hostPlatform.isDarwin ''
runHook preInstall
unzip AppFlowy-${finalAttrs.version}-${dist.urlSuffix}
mkdir -p $out/{Applications,bin}
cp -r ./AppFlowy.app $out/Applications/
Expand Down

0 comments on commit 91fa960

Please sign in to comment.