voidway/flake.nix
2024-11-23 23:18:32 +04:00

31 lines
787 B
Nix

{
description = "nitrous";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
systems.url = "github:nix-systems/default-linux";
};
outputs = { self, nixpkgs, systems}:
let
inherit (nixpkgs) lib;
inherit (lib) attrValues;
eachSystem = lib.genAttrs (import systems);
pkgs = eachSystem (system:
import nixpkgs {
localSystem = system;
});
in {
# packages = eachSystem (system: {
# default = pkgs.hello;
# });
devShells = eachSystem (system: {
default = pkgs.${system}.mkShell {
name = "voidway-shell";
packages = attrValues { inherit (pkgs.${system}) cargo rustc rust-analyzer rustfmt pkg-config sqlite-interactive;};
};
});
};
}