NUR/pkgs/synapse-admin/default.nix

25 lines
454 B
Nix
Raw Normal View History

2020-07-25 03:52:31 +02:00
{ 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
'';
distPhase = "true";
}