Adding flake for Nix users

This commit is contained in:
Jean Viscogliosi-Pate 2024-12-18 21:17:07 -08:00
parent a2867d0778
commit df5a612f96
1 changed files with 22 additions and 0 deletions

22
flake.nix Normal file
View File

@ -0,0 +1,22 @@
{
inputs = {
# nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
systems.url = "github:nix-systems/default";
};
outputs =
{ systems, nixpkgs, ... }@inputs:
let
eachSystem = f: nixpkgs.lib.genAttrs (import systems) (system: f nixpkgs.legacyPackages.${system});
in
{
devShells = eachSystem (pkgs: {
default = pkgs.mkShell {
buildInputs = [
pkgs.gnumake
pkgs.zip
];
};
});
};
}