From 05a564d48c120a1b7f9b8e958f8ca055fa2a2b53 Mon Sep 17 00:00:00 2001 From: "(cdep)illabout" Date: Sat, 22 Feb 2020 11:18:41 +0900 Subject: [PATCH] nix-query-tree-viewer: init at 0.2.0 --- .../nix/nix-query-tree-viewer/default.nix | 32 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/tools/nix/nix-query-tree-viewer/default.nix 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 000000000000..de0b88378a48 --- /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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 025c6a4631cc..4fba286384e3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -25217,6 +25217,8 @@ in nix-prefetch-svn nix-prefetch-scripts; + nix-query-tree-viewer = callPackage ../tools/nix/nix-query-tree-viewer { }; + nix-update-source = callPackage ../tools/package-management/nix-update-source {}; nix-script = callPackage ../tools/nix/nix-script {};