{ # TODO desc description = "viz1090"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11"; flake-utils.url = "github:numtide/flake-utils"; }; outputs = { self, nixpkgs, flake-utils, }: flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs { inherit system; }; in rec { # Nix formatter, run using `$ nix fmt` formatter = pkgs.alejandra; # Exports the package # Build with `$ nix build` packages.viz1090 = pkgs.callPackage ./nix/viz1090.nix {inherit self system;}; packages.viz1090-mapdata = pkgs.callPackage ./nix/viz1090-mapdata.nix {}; packages.default = packages.viz1090; # Creates a shell with the necessary dependencies # Enter using `$ nix develop` devShell = pkgs.mkShell { buildInputs = with pkgs; [ rtl-sdr-librtlsdr SDL2 SDL2_ttf SDL2_gfx gdal python3 python312Packages.pip python312Packages.shapely python312Packages.fiona python312Packages.tqdm unzip python312Packages.requests git ]; }; }); }