From bc2e4ccf64b4f648765ee36bd46d3f0c0ba8e776 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Thu, 10 Nov 2022 22:08:22 +0800 Subject: [PATCH] shells: add dependencies Most of the things added will be inputs from larger dependencies. --- shells/gnome.nix | 2 ++ shells/gnu.nix | 2 ++ shells/go.nix | 2 ++ shells/gtk.nix | 7 ++----- shells/rust.nix | 2 ++ 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/shells/gnome.nix b/shells/gnome.nix index af70bdb2..044f2115 100644 --- a/shells/gnome.nix +++ b/shells/gnome.nix @@ -68,4 +68,6 @@ mkShell { # The new Blueprint language. blueprint-compiler ]; + + inputsFrom = [ gjs gtk4 gobject-introspection ]; } diff --git a/shells/gnu.nix b/shells/gnu.nix index 2e6afe79..9294cdac 100644 --- a/shells/gnu.nix +++ b/shells/gnu.nix @@ -30,4 +30,6 @@ mkShell { texinfo pkg-config ]; + + inputsFrom = [ gcc ]; } diff --git a/shells/go.nix b/shells/go.nix index 07675274..385de58e 100644 --- a/shells/go.nix +++ b/shells/go.nix @@ -10,4 +10,6 @@ mkShell { gofumpt gopls ]; + + inputsFrom = [ go ]; } diff --git a/shells/gtk.nix b/shells/gtk.nix index 89b53de8..3ab8ec1e 100644 --- a/shells/gtk.nix +++ b/shells/gtk.nix @@ -12,12 +12,7 @@ mkShell { packages = [ - # Most of the build inputs are from `gtk` package. And since build - # environment of the following packages is brought with `nix develop`, we - # don't need to list much of the common build systems like Meson. - wrapGAppsHook gtk - glib appstream-glib desktop-file-utils @@ -27,4 +22,6 @@ mkShell { libportal libportal-gtk ]; + + inputsFrom = [ gtk ]; } diff --git a/shells/rust.nix b/shells/rust.nix index e612fad8..e90fe2bb 100644 --- a/shells/rust.nix +++ b/shells/rust.nix @@ -24,4 +24,6 @@ mkShell { ]; RUST_SRC_PATH = rustPlatform.rustLibSrc; + + inputsFrom = [ cargo rustc ]; }