initial commit

This commit is contained in:
2026-02-09 19:04:19 -08:00
commit f92b57c7b6
531 changed files with 196294 additions and 0 deletions

44
vendor/texthooker-ui/flake.nix vendored Normal file
View File

@@ -0,0 +1,44 @@
{
description = "texthooker-ui";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system: let
name = "texthooker-ui";
src = ./.;
pkgs = import nixpkgs {inherit system;};
nativeBuildInputs = with pkgs; [nodejs pnpm.configHook];
in {
# index.html will be located in the nix store
# build with "nix build . --print-out-paths" to get the path
packages.default = pkgs.stdenv.mkDerivation (finalAttrs: {
inherit name nativeBuildInputs src;
pname = name;
pnpmDeps = pkgs.pnpm.fetchDeps {
pname = name;
inherit src;
hash = "sha256-Wqs3aO4uq/5eqVmp9FFZNVEWo/TpwDib9PJFABmFrbk=";
};
installPhase = ''
pnpm run build
cp -r ./docs $out
'';
});
devShell = pkgs.mkShell {
inherit nativeBuildInputs;
};
}
);
}