{ description = "steam-tui flake to manage projects + builds"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/master"; }; outputs = { self, nixpkgs, ... }@inputs: let forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.platforms.unix; nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; config = { allowUnfreePredicate = pkg: builtins.elem (nixpkgs.lib.getName pkg) [ "steam" "steamcmd" "steam-original" "steam-run" ]; }; }); in { packages = forAllSystems (system: let pkgs = nixpkgsFor.${system}; in { steam-tui = with pkgs; rustPlatform.buildRustPackage rec { name = "steam-tui-dev"; pname = "steam-tui"; src = ./.; nativeBuildInputs = [ openssl pkgconfig ]; buildInputs = [ steamcmd ]; # NOTE: Copied from pkgs. preFixup = '' mv $out/bin/steam-tui $out/bin/.steam-tui-unwrapped cat > $out/bin/steam-tui <