Files
adam b6ca0dc45d feat(nix): create a flake (#1154)
turns out i use nixos now so this will make the development process
wayyyy easier for me

you can now build linutil for nix with `nix build`, enter the dev
environment with `nix develop`, and format nix code with `nix fmt`

and if some crazy person was to use linutil on nixos, now they can with
`nix run github:ChrisTitusTech/linutil` or by adding linutil to their
flake
2025-10-23 13:47:54 -05:00

32 lines
608 B
Nix

{ pkgs }:
let
mainPkg = if builtins.pathExists ./default.nix then pkgs.callPackage ./default.nix { } else { };
pkgInputs =
with pkgs;
[
clippy
rustfmt
rust-analyzer
bash-language-server
checkbashisms
shellcheck
typos
vhs
]
++ (mainPkg.nativeBuildInputs or [ ])
++ (mainPkg.buildInputs or [ ]);
in
pkgs.mkShell {
packages = pkgInputs;
shellHook = ''
echo -ne "-----------------------------------\n "
echo -n "${toString (map (pkg: " ${pkg.name}\n") pkgInputs)}"
echo "-----------------------------------"
'';
}