summaryrefslogtreecommitdiff
path: root/pkgs/webapps/nextcloud/apps/keeweb.nix
blob: 99713eeefc66c382983a1bbd4ba325234ae448de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ buildApp }:
buildApp rec {
  appName = "keeweb";
  version = "0.5.0";
  url = "https://github.com/jhass/nextcloud-keeweb/releases/download/v${version}/${appName}-${version}.tar.gz";
  sha256 = "0wdr6ywlirmac7w1ld5ma7fwb4bykclbxfq2sxwg6pvzfid5vc8x";
  installPhase = ''
    mkdir -p $out
    cp -R . $out/
    sed -i -e 's/max-version="15"/max-version="16"/' $out/appinfo/info.xml
    '';
  otherConfig = {
    mimetypealiases = {
      "x-application/kdbx" = "kdbx";
    };
    mimetypemapping = {
      "kdbx" = ["x-application/kdbx"];
    };
  };
}