29 x86_64-linux = fetchurl {
30 url = "https://github.com/keeweb/keeweb/releases/download/v${version}/KeeWeb-${version}.linux.x64.deb";
31 hash = "sha256-/U+vn5TLIU9/J6cRFjuAdyGzlwC04mp4L2X2ETp+ZSE=";
33 x86_64-darwin = fetchurl {
34 url = "https://github.com/keeweb/keeweb/releases/download/v${version}/KeeWeb-${version}.mac.x64.dmg";
35 hash = "sha256-+ZFGrrw0tZ7F6lb/3iBIyGD+tp1puVhkPv10hfp6ATU=";
37 aarch64-darwin = fetchurl {
38 url = "https://github.com/keeweb/keeweb/releases/download/v${version}/KeeWeb-${version}.mac.arm64.dmg";
39 hash = "sha256-bkhwsWYLkec16vMOfXUce7jfrmI9W2xHiZvU1asebK4=";
42 src = srcs.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
67 description = "Free cross-platform password manager compatible with KeePass";
68 homepage = "https://keeweb.info/";
69 changelog = "https://github.com/keeweb/keeweb/blob/v${version}/release-notes.md";
70 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
71 license = licenses.mit;
72 maintainers = with maintainers; [ sikmir ];
73 platforms = builtins.attrNames srcs;
77 then stdenv.mkDerivation {
78 inherit pname version src meta;
80 nativeBuildInputs = [ undmg ];
85 mkdir -p $out/Applications
86 cp -r *.app $out/Applications
89 else stdenv.mkDerivation {
90 inherit pname version src meta;
98 buildInputs = libraries;
101 ${dpkg}/bin/dpkg-deb --fsys-tarfile $src | tar --extract
108 cp -r usr/share $out/share
110 makeWrapper $out/share/keeweb-desktop/keeweb $out/bin/keeweb \
112 --add-flags "$out/share/keeweb-desktop/resources/app.asar" \
113 --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath libraries}"