{ lib, buildGoModule, nodejs, pnpm, stdenv, }: { api = buildGoModule { pname = "ip-checker-api"; version = "dev"; src = ./api; vendorHash = "sha256-VvZcnTEgPXlAYEf2+2WZ2xlU4TWhTz+dBiA4j76GSvM="; meta = { homepage = "https://git.ny4.dev/nyancat/ip-checker"; license = lib.licenses.mit; mainProgram = "ip-checker"; }; }; ui = stdenv.mkDerivation (finalAttrs: { pname = "ip-checker-ui"; version = "dev"; src = ./ui; nativeBuildInputs = [ nodejs pnpm.configHook ]; pnpmDeps = pnpm.fetchDeps { inherit (finalAttrs) pname version src; hash = "sha256-ucTUmKTeyfTSgWOcLEtf0n9VhzUfHGm41YCYLDxskh0="; }; buildPhase = '' runHook preBuild pnpm build runHook postBuild ''; installPhase = '' runHook preInstall cp -r ./dist $out runHook postInstall ''; meta = { homepage = "https://git.ny4.dev/nyancat/ip-checker"; license = lib.licenses.mit; }; }); }