Files
ChrisTitusTech_linutil/flake.nix
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

28 lines
684 B
Nix

{
description = "Distro-agnostic toolbox designed to simplify everyday Linux tasks";
inputs.nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
outputs =
{ self, nixpkgs }:
let
systems = [
"x86_64-linux"
"aarch64-linux"
];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system});
in
{
packages = forAllSystems (pkgs: {
default = pkgs.callPackage ./nix/default.nix { };
});
devShells = forAllSystems (pkgs: {
default = pkgs.callPackage ./nix/shell.nix { inherit pkgs; };
});
formatter = forAllSystems (pkgs: pkgs.nixfmt-tree);
};
}