2024-11-21 08:59:08 +04:00
|
|
|
{
|
|
|
|
description = "nitrous";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
|
|
systems.url = "github:nix-systems/default-linux";
|
|
|
|
};
|
|
|
|
|
2024-11-21 17:41:18 +04:00
|
|
|
outputs = { self, nixpkgs, systems}:
|
2024-11-21 08:59:08 +04:00
|
|
|
let
|
|
|
|
inherit (nixpkgs) lib;
|
2024-11-21 17:41:18 +04:00
|
|
|
inherit (lib) attrValues;
|
2024-11-21 08:59:08 +04:00
|
|
|
eachSystem = lib.genAttrs (import systems);
|
|
|
|
pkgs = eachSystem (system:
|
|
|
|
import nixpkgs {
|
|
|
|
localSystem = system;
|
|
|
|
});
|
|
|
|
in {
|
2024-11-21 15:46:01 +04:00
|
|
|
|
2024-11-21 17:41:18 +04:00
|
|
|
# packages = eachSystem (system: {
|
|
|
|
# default = pkgs.hello;
|
|
|
|
# });
|
2024-11-21 15:46:01 +04:00
|
|
|
|
2024-11-21 08:59:08 +04:00
|
|
|
devShells = eachSystem (system: {
|
|
|
|
default = pkgs.${system}.mkShell {
|
2024-11-21 17:41:18 +04:00
|
|
|
name = "voidway-shell";
|
|
|
|
packages = attrValues { inherit (pkgs.${system}) cargo rustc rust-analyzer rustfmt pkg-config sqlite-interactive;};
|
2024-11-21 08:59:08 +04:00
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
}
|