{ description = "A very basic flake"; inputs = { nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; }; outputs = { self, nixpkgs }: let systems = [ "x86_64-linux" "aarch64-linux" ]; forAllSystems = nixpkgs.lib.genAttrs systems; in { packages = forAllSystems ( system: let pkgs = import nixpkgs { inherit system; }; in { default = pkgs.callPackage ( { stdenv, meson, ninja, }: stdenv.mkDerivation { pname = "cs010b-work"; version = "unstable"; src = ./.; nativeBuildInputs = [ meson ninja ]; } ) { }; } ); devShells = forAllSystems ( system: let pkgs = import nixpkgs { inherit system; }; in { default = pkgs.mkShell { inputsFrom = [ self.packages.${system}.default ]; packages = with pkgs; [ clang-tools_19 mesonlsp ]; }; } ); }; }