2023-03-25 12:43:23 +02:00
|
|
|
{
|
|
|
|
inputs = {
|
2023-03-25 12:48:37 +02:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11-small";
|
2023-03-25 12:43:23 +02:00
|
|
|
flake-compat = {
|
|
|
|
url = "github:edolstra/flake-compat";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
};
|
|
|
|
outputs = { nixpkgs, flake-utils, ... }:
|
|
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
2023-03-26 22:40:53 +03:00
|
|
|
devDeps = with pkgs; [ bash hugo zopfli brotli parallel ];
|
2023-03-25 12:43:23 +02:00
|
|
|
in
|
|
|
|
{
|
2023-03-26 22:40:53 +03:00
|
|
|
devShells.default = pkgs.mkShell {
|
2023-03-25 12:43:23 +02:00
|
|
|
name = "rules_nixpkgs_shell";
|
2023-03-26 22:40:53 +03:00
|
|
|
packages = devDeps;
|
2023-03-25 12:43:23 +02:00
|
|
|
};
|
2023-03-26 22:40:53 +03:00
|
|
|
|
|
|
|
# TODO how to run scripts/build as a result of `nix run .`?
|
|
|
|
#packages = flake-utils.lib.mkApp {
|
|
|
|
# name = "build
|
|
|
|
#};
|
2023-03-25 12:43:23 +02:00
|
|
|
});
|
|
|
|
}
|