keyoxide-web/flake.nix

31 lines
715 B
Nix
Raw Normal View History

2024-06-02 08:23:57 -06:00
{
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
2024-06-02 08:23:57 -06:00
];
shellHook = ''
echo "node: `${nodejs_20}/bin/node --version`"
echo "npm: `${nodejs_20}/bin/npm --version`"
'';
BIOME_BINARY = "${pkgs.biome}/bin/biome";
2024-06-02 08:23:57 -06:00
};
});
}