add swipe action

This commit is contained in:
Vivian 2023-06-16 09:05:38 +02:00
parent 0804af2655
commit c5120dec62
4 changed files with 45 additions and 11 deletions

View file

@ -14,6 +14,8 @@ _final: prev: {
dnd-5e-latex-template = prev.callPackage ./dnd-5e-latex-template { };
roundcube-swipe = prev.callPackage ./roundcube-swipe { };
gitea-agatheme = prev.callPackage ./gitea-agatheme { };
# nix-shell -p "(vscode-with-extensions.override {vscodeExtensions = with vscode-extensions; [ jnoortheen.nix-ide ]; })" -I nixpkgs=.

View file

@ -0,0 +1,18 @@
{ runCommand, fetchzip }:
let
roundcubePlugin = { pname, version, src }:
runCommand "roundcube-plugin-${pname}-${version}" { } ''
mkdir -p $out/plugins/
cp -r ${src} $out/plugins/${pname}
'';
in roundcubePlugin rec {
pname = "roundcube-swipe";
version = "0.5";
src = fetchzip {
url =
"https://github.com/johndoh/roundcube-swipe/archive/refs/tags/${version}.tar.gz";
sha256 = "sha256-ExTnYE4uF8E+Fatz7fL+vVmxgLxawEI30Rw2uAWNCNw=";
};
}