b6ca0dc45d
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
32 lines
608 B
Nix
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 "-----------------------------------"
|
|
'';
|
|
}
|