summary refs log blame commit diff
path: root/flake.nix
blob: a8665e6ebf6a9c99fa4c19516e62d57ef4e8c7d1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11




                                                          
                                             




             
        









                                                                
                                           









                                                           
{
  description = "Renfe flake";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
    zig.url = "github:mitchellh/zig-overlay";
  };

  outputs = {
    self,
    nixpkgs,
    zig,
  }: let
    systems = ["x86_64-darwin" "aarch64-darwin" "x86_64-linux"];
    createDevShell = system: let
      pkgs = import nixpkgs {
        system = "${system}";
        config.allowUnfree = true;
      };
    in
      pkgs.mkShell {
        buildInputs = with pkgs; [
            zig.packages."${system}".master
            gcc
            gnumake
            valgrind
            gdb
        ];
      };
  in {
    devShell = nixpkgs.lib.genAttrs systems createDevShell;
  };
}