1 { lib, fetchurl, appimageTools }:
4 pname = "buttercup-desktop";
7 url = "https://github.com/buttercup/buttercup-desktop/releases/download/v${version}/Buttercup-linux-x86_64.AppImage";
8 sha256 = "sha256-o6KdbwD0VdCTYLEfar7Jt7MRZUayGHyasnmtU8Cqg3E=";
10 appimageContents = appimageTools.extractType2 { inherit pname src version; };
12 in appimageTools.wrapType2 {
13 inherit pname src version;
15 extraPkgs = pkgs: (appimageTools.defaultFhsEnvArgs.multiPkgs pkgs) ++ [ pkgs.libsecret ];
17 extraInstallCommands = ''
18 mv $out/bin/${pname}-${version} $out/bin/${pname}
19 install -m 444 -D ${appimageContents}/buttercup.desktop -t $out/share/applications
20 substituteInPlace $out/share/applications/buttercup.desktop \
21 --replace 'Exec=AppRun' 'Exec=${pname}'
22 cp -r ${appimageContents}/usr/share/icons $out/share
26 description = "Cross-Platform Passwords & Secrets Vault";
27 homepage = "https://buttercup.pw";
28 license = licenses.gpl3Only;
29 maintainers = with maintainers; [ wolfangaukang ];
30 platforms = [ "x86_64-linux" ];