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

26 lines
481 B
Nix

{
lib,
rustPlatform,
}:
let
p = (lib.importTOML ../Cargo.toml).workspace.package;
pTUI = (lib.importTOML ../tui/Cargo.toml).package;
in
rustPlatform.buildRustPackage {
pname = "linutil";
inherit (p) version;
src = ../.;
cargoLock.lockFile = ../Cargo.lock;
meta = {
inherit (pTUI) description;
homepage = pTUI.documentation;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ adamperkowski ];
mainProgram = "linutil";
};
}