{ description = "install-system package and shell environment"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05"; }; outputs = { self, nixpkgs, ... }: let pkgs = nixpkgs.legacyPackages.x86_64-linux.pkgs; name = builtins.baseNameOf (builtins.toString ./.); shellApplication = pkgs.writeShellApplication { inherit name; text = builtins.readFile ./${name}.sh; runtimeInputs = with pkgs; [ coreutils gnused unixtools.column ]; }; in { packages.x86_64-linux.default = shellApplication; devShells.x86_64-linux.default = pkgs.mkShell { packages = [ shellApplication ]; }; }; }