{ description = "A very basic flake"; inputs = { flake-utils.url = "github:numtide/flake-utils"; }; outputs = { self, nixpkgs, flake-utils }: { overlays.default = final: prev: { rizin-unwrapped = prev.rizin; rizin = self.packages.${prev.system}.rizin; rizinPlugins = self.packages.${prev.system}.rizinPlugins; }; } // flake-utils.lib.eachSystem [ "aarch64-linux" "i686-linux" "x86_64-linux" ] (system: let pkgs = import nixpkgs { inherit system; overlays = [ self.overlays.default ]; }; in rec { packages = flake-utils.lib.flattenTree { rizin = pkgs.callPackage ./rizin-with-plugin-support.nix { }; rizinPlugins = { rz-ghidra = pkgs.callPackage ./rz-ghidra.nix { }; jsdec = pkgs.callPackage ./jsdec.nix { }; }; }; defaultPackage = packages.rizin; } ); }