36 lines
1,008 B
Nix
36 lines
1,008 B
Nix
{
|
|
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;
|
|
};
|
|
};
|
|
}
|