mirror of
https://github.com/anotherhadi/iknowyou.git
synced 2026-04-11 16:37:25 +02:00
39 lines
630 B
Nix
39 lines
630 B
Nix
{
|
|
pkgs,
|
|
bun2nix,
|
|
system,
|
|
...
|
|
}: let
|
|
bun2nixPkg = bun2nix.packages.${system}.default;
|
|
|
|
bunDeps = bun2nixPkg.fetchBunDeps {
|
|
bunNix = ../front/bun.nix;
|
|
};
|
|
in
|
|
pkgs.stdenv.mkDerivation {
|
|
pname = "iky-frontend";
|
|
version = "0.1.0";
|
|
|
|
src = ../front;
|
|
|
|
nativeBuildInputs = [
|
|
bun2nixPkg.hook
|
|
];
|
|
|
|
inherit bunDeps;
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
bun run build
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
cp -r dist $out
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta.description = "Iknowyou OSINT platform: static Astro frontend";
|
|
}
|