initial commit

This commit is contained in:
EatThePooh 2025-12-18 11:40:05 +07:00
commit 8222743519
9 changed files with 314 additions and 0 deletions

36
flake.nix Normal file
View file

@ -0,0 +1,36 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
deno-with-packages.url = "github:voleum-org/deno-with-packages";
flake-root.url = "github:srid/flake-root";
};
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.flake-root.flakeModule
inputs.deno-with-packages.flakeModule
];
systems = [ "x86_64-linux" ];
perSystem = { pkgs, config, ... }:
let
# rename me
name = "deno-cli-package";
package = import ./package.nix { inherit pkgs config name; };
in {
deno-with-packages = {
lockfiles = [ ./src/deno.lock ];
dir = "$FLAKE_ROOT/.deno_cache";
};
devShells.default = pkgs.mkShell {
inputsFrom = [ config.flake-root.devShell ];
packages = [ package config.deno-with-packages.package ];
};
packages.default = package;
};
};
}