diff options
Diffstat (limited to 'pkgs/tools/nix/nix-query-tree-viewer/default.nix')
-rw-r--r-- | pkgs/tools/nix/nix-query-tree-viewer/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/nix/nix-query-tree-viewer/default.nix b/pkgs/tools/nix/nix-query-tree-viewer/default.nix new file mode 100644 index 00000000000..de0b88378a4 --- /dev/null +++ b/pkgs/tools/nix/nix-query-tree-viewer/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchFromGitHub, rustPlatform, glib, gtk3, wrapGAppsHook }: + +rustPlatform.buildRustPackage rec { + pname = "nix-query-tree-viewer"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "cdepillabout"; + repo = "nix-query-tree-viewer"; + rev = "v${version}"; + sha256 = "0vjcllhgq64n7mwxvyhmbqd6fpa9lwrpsnggc1kdlgd14ggq6jj6"; + }; + + nativeBuildInputs = [ + wrapGAppsHook + ]; + + buildInputs = [ + glib + gtk3 + ]; + + cargoSha256 = "1pbyi7knqmqxbpi3jhl492is9zkaxdpdnmbm11nqwc1nvvbjblzc"; + + meta = with stdenv.lib; { + description = "GTK viewer for the output of `nix store --query --tree`"; + homepage = "https://github.com/cdepillabout/nix-query-tree-viewer"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ cdepillabout ]; + platforms = platforms.unix; + }; +} |