added flake for development

This commit is contained in:
2025-10-20 12:33:25 +02:00
parent ae692de910
commit 8bddf4d610
3 changed files with 79 additions and 0 deletions

35
flake.nix Normal file
View File

@@ -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
]
))
];
};
});
};
}