diff --git a/default.nix b/default.nix index d5f29a8..da65a1d 100644 --- a/default.nix +++ b/default.nix @@ -20,6 +20,7 @@ in colors = pkgs.callPackage ./pkgs/colors { }; eplot = pkgs.callPackage ./pkgs/eplot { }; + synapse-admin = pkgs.callPackage ./pkgs/synapse-admin { }; matrix-wug = pkgs.callPackage ./pkgs/matrix-wug { }; rank_photos = pkgs.callPackage ./pkgs/rank_photos { }; diff --git a/pkgs/synapse-admin/default.nix b/pkgs/synapse-admin/default.nix new file mode 100644 index 0000000..45dfee1 --- /dev/null +++ b/pkgs/synapse-admin/default.nix @@ -0,0 +1,25 @@ +{ lib, mkYarnPackage, fetchFromGitHub, nodejs-10_x }: + +mkYarnPackage { + pname = "synapse-admin"; + version = "0.4.1"; + + src = fetchFromGitHub { + owner = "Awesome-Technologies"; + repo = "synapse-admin"; + rev = "0.4.1"; + sha256 = "1ig9pb2cqpg4hgn3mm765sc57fn9c00xz1hpxvrvdyhwlvscs95i"; + }; + + buildPhase = '' + yarn build + ''; + + installPhase = '' + mkdir $out + cp -r deps/synapse-admin/build/* $out + ''; + + fixupPhase = "true"; + distPhase = "true"; +}