mirror of
https://github.com/anotherhadi/iknowyou.git
synced 2026-04-12 00:47:26 +02:00
init
This commit is contained in:
38
nix/frontend.nix
Normal file
38
nix/frontend.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
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";
|
||||
}
|
||||
Reference in New Issue
Block a user