devshells.nix
1 # SPDX-FileCopyrightText: 2024-2025 sntx <sntx@sntx.space> 2 # SPDX-License-Identifier: AGPL-3.0-or-later 3 4 { cell, inputs }: 5 let 6 inherit (inputs) nixpkgs; 7 in 8 { 9 default = nixpkgs.mkShell { 10 shellHook = '' 11 cat "${./welcome.txt}" 12 ''; 13 14 buildInputs = [ 15 nixpkgs.deploy-rs 16 nixpkgs.reuse 17 (nixpkgs.writeShellScriptBin "build" ./build.sh) 18 (nixpkgs.writeShellScriptBin "init" ./install.sh) 19 (nixpkgs.writeShellScriptBin "menu" "cat ${./welcome.txt} | tail -n +23") 20 (nixpkgs.writeShellScriptBin "push" "${./push.sh} \"$@\"") # TODO: add argument parsing from writeShellScriptBin to push.sh 21 22 # formatter 23 nixpkgs.nixfmt-rfc-style 24 nixpkgs.nodePackages.prettier 25 nixpkgs.shfmt 26 nixpkgs.taplo 27 nixpkgs.treefmt 28 ]; 29 }; 30 }