{ description = "My personal portfolio website"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11"; flake-utils.url = "github:numtide/flake-utils"; }; outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem(system: let version = builtins.substring 0 8 self.lastModifiedDate; pkgs = import nixpkgs { inherit system; }; in { packages.default = pkgs.buildNpmPackage { pname = "portfolio-website"; version = version; src = pkgs.lib.sources.cleanSource ./.; npmDepsHash = "sha256-IQ96wS7EBN5D8VpDCdJJTzJky+fybIZjq4k/oASYwZk="; installPhase = '' mkdir -p $out/www cp -r build/* $out/www ''; }; }); }