25 lines
454 B
Nix
25 lines
454 B
Nix
|
{ 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";
|
||
|
}
|