Added FHS compliant Nix devshell to test install to /usr/local/bin

This commit is contained in:
Emile Clark-Boman 2025-07-25 21:33:34 +10:00
parent c16de369f2
commit fc51351a7b
2 changed files with 52 additions and 0 deletions

25
flake.nix Normal file
View file

@ -0,0 +1,25 @@
# NOTE: this devshell exists because I'm scared of my
{
description = "FHS compliant devshell for Billie Hilton's g CLI";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
};
outputs = {
self,
nixpkgs,
}: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
fhs = pkgs.buildFHSEnv {
name = "g-fhs-shell";
targetPkgs = pkgs:
with pkgs; [
shellcheck
];
};
in {
devShells.${system}.default = fhs.env;
};
}