Files
diskonaut/flake.nix

54 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2025-11-01 09:55:56 -07:00
{
description = "Terminal disk space navigator";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
2025-11-01 10:06:39 -07:00
cargoToml = builtins.fromTOML (builtins.readFile ./Cargo.toml);
2025-11-01 09:55:56 -07:00
in
{
packages = {
default = pkgs.rustPlatform.buildRustPackage {
2025-11-01 10:06:39 -07:00
pname = cargoToml.package.name;
version = cargoToml.package.version;
2025-11-01 09:55:56 -07:00
src = ./.;
2025-11-26 23:22:54 -08:00
cargoHash = "sha256-C2pGyTef8IgF2FSBXRlLJCW3IgJ1d+2uxF6nelYF6AM=";
2025-11-01 09:55:56 -07:00
# 1 passed; 44 failed on Darwin
doCheck = !pkgs.stdenv.hostPlatform.isDarwin;
meta = with pkgs.lib; {
description = "Terminal disk space navigator";
#homepage = "https://github.com/imsnif/diskonaut";
license = licenses.mit;
# maintainers = with maintainers; [
# evanjs
# figsoda
# ];
mainProgram = "diskonaut";
};
};
};
# Development shell
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
cargo
rustc
rust-analyzer
clippy
rustfmt
];
};
}
);
}