mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 06:49:29 -07:00
31 lines
No EOL
715 B
Nix
31 lines
No EOL
715 B
Nix
{
|
|
description = "keyoxide-web";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
|
utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, utils }:
|
|
utils.lib.eachDefaultSystem (system:
|
|
let
|
|
name = "keyoxide-web";
|
|
pkgs = import nixpkgs { inherit system; };
|
|
in
|
|
{
|
|
# nix develop
|
|
devShell = with pkgs; mkShell {
|
|
buildInputs = [
|
|
nodejs_20
|
|
biome
|
|
];
|
|
|
|
shellHook = ''
|
|
echo "node: `${nodejs_20}/bin/node --version`"
|
|
echo "npm: `${nodejs_20}/bin/npm --version`"
|
|
'';
|
|
|
|
BIOME_BINARY = "${pkgs.biome}/bin/biome";
|
|
};
|
|
});
|
|
} |