2024-10-19 21:05:52 +02:00
|
|
|
{
|
|
|
|
|
description = "Description for the project";
|
|
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
|
devenv-root = {
|
|
|
|
|
url = "file+file:///dev/null";
|
|
|
|
|
flake = false;
|
|
|
|
|
};
|
2025-12-23 16:30:04 +01:00
|
|
|
nixpkgs.url = "github:cachix/devenv-nixpkgs/rolling";
|
2024-10-19 21:05:52 +02:00
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
2025-12-23 16:30:04 +01:00
|
|
|
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
|
2024-10-19 21:05:52 +02:00
|
|
|
devenv.url = "github:cachix/devenv";
|
|
|
|
|
nix2container.url = "github:nlewo/nix2container";
|
|
|
|
|
nix2container.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
mk-shell-bin.url = "github:rrbutani/nix-mk-shell-bin";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
nixConfig = {
|
|
|
|
|
extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=";
|
|
|
|
|
extra-substituters = "https://devenv.cachix.org";
|
|
|
|
|
};
|
|
|
|
|
|
2025-12-23 16:30:04 +01:00
|
|
|
outputs =
|
|
|
|
|
inputs@{ flake-parts, devenv-root, ... }:
|
|
|
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
2024-10-19 21:05:52 +02:00
|
|
|
imports = [
|
|
|
|
|
inputs.devenv.flakeModule
|
|
|
|
|
];
|
2025-12-23 16:30:04 +01:00
|
|
|
systems = [
|
|
|
|
|
"x86_64-linux"
|
|
|
|
|
"i686-linux"
|
|
|
|
|
"x86_64-darwin"
|
|
|
|
|
"aarch64-linux"
|
|
|
|
|
"aarch64-darwin"
|
|
|
|
|
];
|
2024-10-19 21:05:52 +02:00
|
|
|
|
2025-12-23 16:30:04 +01:00
|
|
|
perSystem =
|
|
|
|
|
{
|
|
|
|
|
config,
|
|
|
|
|
self',
|
|
|
|
|
inputs',
|
|
|
|
|
pkgs,
|
|
|
|
|
system,
|
|
|
|
|
...
|
|
|
|
|
}:
|
|
|
|
|
{
|
|
|
|
|
devenv.shells.default = {
|
|
|
|
|
name = "my-project";
|
|
|
|
|
imports = [ ];
|
|
|
|
|
|
|
|
|
|
languages.javascript = {
|
|
|
|
|
enable = true;
|
|
|
|
|
bun.enable = true;
|
|
|
|
|
};
|
2024-10-19 21:05:52 +02:00
|
|
|
};
|
|
|
|
|
};
|
2025-12-23 16:30:04 +01:00
|
|
|
flake = { };
|
2024-10-19 21:05:52 +02:00
|
|
|
};
|
|
|
|
|
}
|