chicken-box/package.nix

44 lines
649 B
Nix
Raw Normal View History

2024-11-17 05:33:50 +00:00
{
lib,
nodejs,
pnpm,
stdenv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "chicken-box";
version = "dev";
src = lib.cleanSource ./.;
nativeBuildInputs = [
nodejs
pnpm.configHook
];
pnpmDeps = pnpm.fetchDeps {
inherit (finalAttrs) pname version src;
2024-11-22 09:56:25 +00:00
hash = "sha256-NbN2G3HowjRH/aOllwEkV9vFXgTUOVEVS+cKrX+EAfA=";
2024-11-17 05:33:50 +00:00
};
buildPhase = ''
runHook preBuild
pnpm build
runHook postBuild
'';
installPhase = ''
runHook preInstall
cp -r ./dist $out
runHook postInstall
'';
meta = {
homepage = "https://git.ny4.dev/nyancat/chicken-box";
license = lib.licenses.mit;
};
})