{ inputs = { flake-parts.url = "github:hercules-ci/flake-parts"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; }; outputs = inputs@{ flake-parts, ... }: flake-parts.lib.mkFlake { inherit inputs; } { systems = [ "x86_64-linux" ]; perSystem = { pkgs, lib, ... }: let pnpmDeps = pkgs.pnpm.fetchDeps { pname = "workspace"; version = ""; src = lib.fileset.toSource { root = ./.; fileset = lib.fileset.unions [./pnpm-lock.yaml ./pnpm-workspace.yaml ./extension ./webapp]; }; hash = "sha256-4Z7CqMG4Ixh7auYjrt4zlO3xNGUZ7IXl0pKclX581K8="; }; in { packages.default = pkgs.callPackage ./server/package.nix {}; packages.webapp = pkgs.callPackage ./webapp/package.nix {inherit pnpmDeps;}; packages.extension = pkgs.callPackage ./extension/package.nix {inherit pnpmDeps;}; }; }; }