diff --git a/.gitignore b/.gitignore index c03ca78..d141508 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /target dist /docs +res/test/docs/slides/revealjs diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..7577d8d --- /dev/null +++ b/flake.lock @@ -0,0 +1,43 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1760934318, + "narHash": "sha256-/oUYsC0lUCBory65VK+UHqCCsCspbL1Vgfcf1KUYqVw=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "87848bf0cc4f87717fc813a4575f07330c3e743c", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs", + "systems": "systems" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..c2ec3d6 --- /dev/null +++ b/flake.nix @@ -0,0 +1,35 @@ +{ + description = "Asist Development Flake"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + systems.url = "github:nix-systems/default"; + }; + + outputs = + { nixpkgs, systems, ... }: + let + eachSystem = f: nixpkgs.lib.genAttrs (import systems) (system: f nixpkgs.legacyPackages.${system}); + in + { + devShells = eachSystem (pkgs: { + default = pkgs.mkShell { + name = "asist"; + buildInputs = with pkgs; [ + gcc + openssl.dev + pkg-config + libiconv + rustc + cargo + (ruby.withPackages ( + p: with p; [ + asciidoctor + bundler + ] + )) + ]; + }; + }); + }; +}