init
This commit is contained in:
36
flake.nix
Normal file
36
flake.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
description = "A development environment";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{ nixpkgs, ... }:
|
||||
let
|
||||
# system should match the system you are running on
|
||||
system = "x86_64-linux";
|
||||
in
|
||||
{
|
||||
devShells."${system}".default =
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in
|
||||
pkgs.mkShell {
|
||||
# create an environment with nodejs_24, pnpm, and yarn
|
||||
packages = with pkgs; [
|
||||
android-tools
|
||||
nodejs
|
||||
python314
|
||||
frida-tools
|
||||
package-version-server
|
||||
pyright
|
||||
vtsls
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
# run some script here
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user