{ description = "High-performance web player for OpenSubsonic-compatible servers"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; flake-utils.url = "github:numtide/flake-utils"; }; outputs = { nixpkgs, flake-utils, self, }: flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs {inherit system;}; in { packages.default = pkgs.buildNpmPackage { pname = "tinysub"; version = "2.59.3"; src = ./.; npmDepsHash = "sha256-IjB+kS2dsh1AaIfxeIyEtZccJxomNHWhIUGEhYAqGfo="; npmBuildScript = "build"; installPhase = '' runHook preInstall mkdir -p $out cp -r dist/* $out/ runHook postInstall ''; }; devShells.default = pkgs.mkShellNoCC { packages = [ pkgs.nodejs ]; }; formatter = pkgs.alejandra; }); }