depot/third_party/nixpkgs/pkgs/tools/nix/nix-query-tree-viewer/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

33 lines
848 B
Nix

{ lib, fetchFromGitHub, rustPlatform, glib, gtk3, wrapGAppsHook3 }:
rustPlatform.buildRustPackage rec {
pname = "nix-query-tree-viewer";
version = "0.2.1";
src = fetchFromGitHub {
owner = "cdepillabout";
repo = pname;
rev = "v${version}";
sha256 = "sha256-Lc9hfjybnRrkd7PZMa2ojxOM04bP4GJyagkZUX2nVwY=";
};
nativeBuildInputs = [
wrapGAppsHook3
];
buildInputs = [
glib
gtk3
];
cargoHash = "sha256-NSLBIvgo5EdCvZq52d+UbAa7K4uOST++2zbhO9DW38E=";
meta = with lib; {
description = "GTK viewer for the output of `nix store --query --tree`";
mainProgram = "nix-query-tree-viewer";
homepage = "https://github.com/cdepillabout/nix-query-tree-viewer";
license = with licenses; [ mit ];
maintainers = with maintainers; [ cdepillabout ];
platforms = platforms.unix;
};
}