matrix-wug

This commit is contained in:
Daniel Olsen 2020-07-21 17:57:29 +02:00
parent c8d3271085
commit 24f662e22b
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
{ mkYarnPackage, fetchFromGitHub, nodejs-10_x }:
mkYarnPackage {
pname = "matrix-wug";
version = "2.4.4";
src = fetchFromGitHub {
owner = "dali99";
repo = "matrix-wug";
rev = "2.4.4";
sha256 = "0q0sv6dwqigd7gvdkrwxc4ygzmfl159c96iab5jk4bfjz4ard59f";
};
buildPhase = ''
yarn run build
'';
preInstall = ''
sed -i '1i#!/usr/bin/env node' deps/matrix-wug/build/index.js
chmod +x deps/matrix-wug/build/index.js
cp deps/matrix-wug/x2i/dictionaries/*.yaml deps/matrix-wug/build/x2i/dictionaries/
#ln -s $out/bin/matrix-wug deps/matrix-wug/build/index.js
'';
}