commit
72ac8255dc
65
pkgs/applications/misc/keeweb/default.nix
Normal file
65
pkgs/applications/misc/keeweb/default.nix
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
{ stdenv, fetchurl, appimageTools, undmg, libsecret }:
|
||||||
|
let
|
||||||
|
inherit (stdenv.hostPlatform) system;
|
||||||
|
throwSystem = throw "Unsupported system: ${system}";
|
||||||
|
|
||||||
|
pname = "keeweb";
|
||||||
|
version = "1.15.7";
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
|
suffix = {
|
||||||
|
x86_64-linux = "linux.AppImage";
|
||||||
|
x86_64-darwin = "mac.dmg";
|
||||||
|
}.${system} or throwSystem;
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/keeweb/keeweb/releases/download/v${version}/KeeWeb-${version}.${suffix}";
|
||||||
|
sha256 = {
|
||||||
|
x86_64-linux = "0cy0avl0m07xs523xm0rzsmifl28sv4rjb2jj3x492qmr2v64ckk";
|
||||||
|
x86_64-darwin = "0r8c3zi0ibj0bb0gfc1axfn0y4qpjqfr0xpcxf810d65kaz6wic4";
|
||||||
|
}.${system} or throwSystem;
|
||||||
|
};
|
||||||
|
|
||||||
|
appimageContents = appimageTools.extract {
|
||||||
|
inherit name src;
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Free cross-platform password manager compatible with KeePass";
|
||||||
|
homepage = "https://keeweb.info/";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ sikmir ];
|
||||||
|
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
linux = appimageTools.wrapType2 rec {
|
||||||
|
inherit name src meta;
|
||||||
|
|
||||||
|
extraPkgs = pkgs: with pkgs; [ libsecret ];
|
||||||
|
|
||||||
|
extraInstallCommands = ''
|
||||||
|
mv $out/bin/{${name},${pname}}
|
||||||
|
install -Dm644 ${appimageContents}/keeweb.desktop -t $out/share/applications
|
||||||
|
install -Dm644 ${appimageContents}/keeweb.png -t $out/share/icons/hicolor/256x256/apps
|
||||||
|
install -Dm644 ${appimageContents}/usr/share/mime/keeweb.xml -t $out/share/mime
|
||||||
|
substituteInPlace $out/share/applications/keeweb.desktop \
|
||||||
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
darwin = stdenv.mkDerivation {
|
||||||
|
inherit pname version src meta;
|
||||||
|
|
||||||
|
nativeBuildInputs = [ undmg ];
|
||||||
|
|
||||||
|
sourceRoot = "KeeWeb.app";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/Applications/KeeWeb.app
|
||||||
|
cp -R . $out/Applications/KeeWeb.app
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in
|
||||||
|
if stdenv.isDarwin
|
||||||
|
then darwin
|
||||||
|
else linux
|
@ -20516,6 +20516,8 @@ in
|
|||||||
keepassx2 = callPackage ../applications/misc/keepassx/2.0.nix { };
|
keepassx2 = callPackage ../applications/misc/keepassx/2.0.nix { };
|
||||||
keepassxc = libsForQt5.callPackage ../applications/misc/keepassx/community.nix { };
|
keepassxc = libsForQt5.callPackage ../applications/misc/keepassx/community.nix { };
|
||||||
|
|
||||||
|
keeweb = callPackage ../applications/misc/keeweb { };
|
||||||
|
|
||||||
inherit (gnome3) evince;
|
inherit (gnome3) evince;
|
||||||
evolution-data-server = gnome3.evolution-data-server;
|
evolution-data-server = gnome3.evolution-data-server;
|
||||||
evolution-ews = callPackage ../applications/networking/mailreaders/evolution/evolution-ews { };
|
evolution-ews = callPackage ../applications/networking/mailreaders/evolution/evolution-ews { };
|
||||||
|
Loading…
Reference in New Issue
Block a user