mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-01 06:22:44 -08:00
initial commit
This commit is contained in:
44
vendor/texthooker-ui/flake.nix
vendored
Normal file
44
vendor/texthooker-ui/flake.nix
vendored
Normal 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;
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user