2020-04-24 23:36:52 +00:00
|
|
|
{ yarn2nix-moretea
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
yarn2nix-moretea.mkYarnPackage rec {
|
2021-08-05 21:33:18 +00:00
|
|
|
pname = "gotify-ui";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
packageJSON = ./package.json;
|
|
|
|
yarnNix = ./yarndeps.nix;
|
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
version = import ./version.nix;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src_all = fetchFromGitHub {
|
|
|
|
owner = "gotify";
|
|
|
|
repo = "server";
|
|
|
|
rev = "v${version}";
|
2020-05-03 17:38:23 +00:00
|
|
|
sha256 = import ./source-sha.nix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
src = "${src_all}/ui";
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
yarn build
|
|
|
|
'';
|
|
|
|
|
|
|
|
}
|