nix: init tooling

This commit is contained in:
raf 2025-05-01 05:04:43 +03:00
commit e4d397ac9c
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
5 changed files with 115 additions and 0 deletions

21
flake.nix Normal file
View file

@ -0,0 +1,21 @@
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
outputs = {
self,
nixpkgs,
}: let
systems = ["x86_64-linux"];
forEachSystem = nixpkgs.lib.genAttrs systems;
pkgsForEach = nixpkgs.legacyPackages;
in {
packages = forEachSystem (system: {
eris = pkgsForEach.${system}.callPackage ./nix/package.nix {};
default = self.packages.${system}.eris;
});
devShells = forEachSystem (system: {
default = pkgsForEach.${system}.callPackage ./nix/shell.nix {};
});
};
}