@@ -0,0 +1,32 @@
1+{ stdenv, fetchFromGitHub, rustPlatform, glib, gtk3, wrapGAppsHook }:
2+
3+rustPlatform.buildRustPackage rec {
4+ pname = "nix-query-tree-viewer";
5+ version = "0.2.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "cdepillabout";
9+ repo = "nix-query-tree-viewer";
10+ rev = "v${version}";
11+ sha256 = "0vjcllhgq64n7mwxvyhmbqd6fpa9lwrpsnggc1kdlgd14ggq6jj6";
12+ };
13+
14+ nativeBuildInputs = [
15+ wrapGAppsHook
16+ ];
17+
18+ buildInputs = [
19+ glib
20+ gtk3
21+ ];
22+
23+ cargoSha256 = "1pbyi7knqmqxbpi3jhl492is9zkaxdpdnmbm11nqwc1nvvbjblzc";
24+
25+ meta = with stdenv.lib; {
26+ description = "GTK viewer for the output of `nix store --query --tree`";
27+ homepage = "https://github.com/cdepillabout/nix-query-tree-viewer";
28+ license = with licenses; [ mit ];
29+ maintainers = with maintainers; [ cdepillabout ];
30+ platforms = platforms.unix;
31+ };
32+}