Skip to content

Commit

Permalink
appflowy: 0.7.2 -> 0.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkOnion0 committed Nov 21, 2024
1 parent 91fa960 commit ba6a149
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions pkgs/by-name/ap/appflowy/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,18 @@
xdg-user-dirs,
keybinder3,
libnotify,
unzip,
}:

let
dist =
rec {
x86_64-linux = {
urlSuffix = "linux-x86_64.tar.gz";
hash = "sha256-z22sBq4VVqzbRm1MerhkN0Eegm1oZnZRI/qGlHwXaJo=";
hash = "sha256-X+y8TcRXbNtKpCFiOX9iPzJnsCZbXYB3tNdiyQE00Ek=";
};
x86_64-darwin = {
urlSuffix = "macos-universal.zip";
hash = "sha256-ojbkNCwWmQOL96jBaUJsJyH2T6ZrOsml/xRuOR1216M=";
hash = "sha256-B3CCYWWJoOVFFvjpeYjRqx9i+36+ZR7swyCjitkU3bg=";
};
aarch64-darwin = x86_64-darwin;
}
Expand All @@ -31,21 +30,18 @@ let
in
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "appflowy";
version = "0.7.2";
version = "0.7.3";

src = fetchzip {
url = "https://github.com/AppFlowy-IO/appflowy/releases/download/${finalAttrs.version}/AppFlowy-${finalAttrs.version}-${dist.urlSuffix}";
inherit (dist) hash;
stripRoot = false;
};

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

buildInputs = [
gtk3
Expand Down Expand Up @@ -75,8 +71,6 @@ 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 ba6a149

Please sign in to comment.