2019-10-05 07:46:51 +00:00
|
|
|
{ yarn2nix-moretea
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
yarn2nix-moretea.mkYarnPackage rec {
|
2021-07-25 21:53:02 +00:00
|
|
|
pname = "gotify-ui";
|
2019-10-05 07:46:51 +00:00
|
|
|
|
|
|
|
packageJSON = ./package.json;
|
|
|
|
yarnNix = ./yarndeps.nix;
|
|
|
|
|
2020-04-27 13:23:33 +00:00
|
|
|
version = import ./version.nix;
|
2019-10-05 07:46:51 +00:00
|
|
|
|
|
|
|
src_all = fetchFromGitHub {
|
|
|
|
owner = "gotify";
|
|
|
|
repo = "server";
|
|
|
|
rev = "v${version}";
|
2020-04-27 13:23:33 +00:00
|
|
|
sha256 = import ./source-sha.nix;
|
2019-10-05 07:46:51 +00:00
|
|
|
};
|
|
|
|
src = "${src_all}/ui";
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
yarn build
|
|
|
|
'';
|
|
|
|
|
|
|
|
}
|