From 24f662e22bfdfe983df77d8b3bec443306343d2e Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Tue, 21 Jul 2020 17:57:29 +0200 Subject: [PATCH] matrix-wug --- pkgs/matrix-wug/default.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pkgs/matrix-wug/default.nix diff --git a/pkgs/matrix-wug/default.nix b/pkgs/matrix-wug/default.nix new file mode 100644 index 0000000..8cb16da --- /dev/null +++ b/pkgs/matrix-wug/default.nix @@ -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 + ''; +}