{ description = "A TUI for the Canvas LMS."; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; flake-utils.url = "github:numtide/flake-utils"; rust-overlay.url = "github:oxalica/rust-overlay"; }; outputs = { nixpkgs, flake-utils, rust-overlay, ... }: flake-utils.lib.eachDefaultSystem ( system: let overlays = [ (import rust-overlay) ]; pkgs = import nixpkgs { inherit system overlays; }; in { devShells.default = pkgs.mkShell { nativeBuildInputs = with pkgs; [ pkg-config rust-bin.stable.latest.default ]; buildInputs = with pkgs; [ rust-analyzer openssl ]; }; packages.default = pkgs.rustPlatform.buildRustPackage { pname = "cartographer"; version = "0.1.0"; src = ./.; cargoHash = "sha256-BgU2ka7Cqzw+gqbjtS3Tw/McKj79iJpUl9ZItLStB+M="; nativeBuildInputs = with pkgs; [ pkg-config ]; buildInputs = with pkgs; [ openssl ]; }; } ); }