Skip to content

Commit

Permalink
keeweb: 1.17.0 → 1.18.6
Browse files Browse the repository at this point in the history
  • Loading branch information
sikmir committed May 20, 2021
1 parent 7a1fbc3 commit 04ea730
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions pkgs/applications/misc/keeweb/default.nix
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
{ lib, stdenv, fetchurl, appimageTools, undmg, libsecret, libxshmfence }:
let
inherit (stdenv.hostPlatform) system;
throwSystem = throw "Unsupported system: ${system}";

pname = "keeweb";
version = "1.17.0";
version = "1.18.6";
name = "${pname}-${version}";

suffix = {
x86_64-linux = "linux.AppImage";
x86_64-darwin = "mac.x64.dmg";
aarch64-darwin = "mac.arm64.dmg";
}.${system} or throwSystem;

src = fetchurl {
url = "https://github.com/keeweb/keeweb/releases/download/v${version}/KeeWeb-${version}.${suffix}";
sha256 = {
x86_64-linux = "1c7zvwnd46d3lrlcdigv341flz44jl6mnvr6zqny5mfz221ynbj7";
x86_64-darwin = "1n4haxychm5jjhjnpncavjh0wr4dagqi78qfsx5gwlv86hzryzwy";
aarch64-darwin = "1j7z63cbfms02f2lhl949wy3lc376jw8kqmjfn9j949s0l5fanpb";
}.${system} or throwSystem;
srcs = {
x86_64-linux = fetchurl {
url = "https://github.com/keeweb/keeweb/releases/download/v${version}/KeeWeb-${version}.linux.AppImage";
sha256 = "sha256-hxXs8Dfh5YQy1zaFb20KDWNl8eqFjuN5QY7tsO6+E/U=";
};
x86_64-darwin = fetchurl {
url = "https://github.com/keeweb/keeweb/releases/download/v${version}/KeeWeb-${version}.mac.x64.dmg";
sha256 = "sha256-8+7NzaHVcLinKb57SAcJmF2Foy9RfxFhcTxzvL0JSJQ=";
};
aarch64-darwin = fetchurl {
url = "https://github.com/keeweb/keeweb/releases/download/v${version}/KeeWeb-${version}.mac.arm64.dmg";
sha256 = "sha256-1BNY6kRS0F+AUI+80ZGFi/ek28NMP1uexo1UORz5D6g=";
};
};
src = srcs.${stdenv.hostPlatform.system};

appimageContents = appimageTools.extract {
inherit name src;
Expand All @@ -32,7 +30,7 @@ let
changelog = "https://github.com/keeweb/keeweb/blob/v${version}/release-notes.md";
license = licenses.mit;
maintainers = with maintainers; [ sikmir ];
platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ];
platforms = builtins.attrNames srcs;
};

linux = appimageTools.wrapType2 rec {
Expand Down

0 comments on commit 04ea730

Please sign in to comment.