fix roundcube swipe

This commit is contained in:
Vivian 2023-06-16 09:31:17 +02:00
parent c5120dec62
commit f48331c66b

View file

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