Files
nixpkgs/pkgs/by-name/go/gotify-server/ui.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
586 B
Nix
Raw Normal View History

2025-10-09 14:15:47 +02:00
{
src,
version,
stdenv,
yarnConfigHook,
yarnBuildHook,
nodejs-slim,
fetchYarnDeps,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "gotify-ui";
inherit version;
src = src + "/ui";
yarnOfflineCache = fetchYarnDeps {
yarnLock = "${finalAttrs.src}/yarn.lock";
hash = "sha256-0OIxoT7iS7i3E1fD6E/6+WVYZcu2r+Qa7KBX56+CzIk=";
};
nativeBuildInputs = [
yarnConfigHook
yarnBuildHook
nodejs-slim
];
env.NODE_OPTIONS = "--openssl-legacy-provider";
installPhase = ''
runHook preInstall
mv build $out
runHook postInstall
'';
})