2021-12-06 16:07:01 +00:00
|
|
|
{ lib, fetchurl, appimageTools }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "buttercup-desktop";
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "2.14.2";
|
2021-12-06 16:07:01 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/buttercup/buttercup-desktop/releases/download/v${version}/Buttercup-linux-x86_64.AppImage";
|
2022-03-05 16:20:37 +00:00
|
|
|
sha256 = "sha256-ZZaolebDGqRk4BHP5PxFxBsMgOQAxUoIMTlhxM58k0Y=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
appimageContents = appimageTools.extractType2 { inherit name src; };
|
|
|
|
|
|
|
|
in appimageTools.wrapType2 {
|
|
|
|
inherit name src;
|
|
|
|
|
|
|
|
extraPkgs = pkgs: (appimageTools.defaultFhsEnvArgs.multiPkgs pkgs) ++ [ pkgs.libsecret ];
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
mv $out/bin/${name} $out/bin/buttercup-desktop
|
|
|
|
install -m 444 -D ${appimageContents}/buttercup.desktop -t $out/share/applications
|
|
|
|
substituteInPlace $out/share/applications/buttercup.desktop \
|
|
|
|
--replace 'Exec=AppRun' 'Exec=buttercup-desktop'
|
|
|
|
cp -r ${appimageContents}/usr/share/icons $out/share
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Cross-Platform Passwords & Secrets Vault";
|
|
|
|
homepage = "https://buttercup.pw";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ wolfangaukang ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|