Add gnome-console dependency

This commit is contained in:
Victor Fuentes 2022-09-30 01:59:14 -04:00
parent 630a718bac
commit 5532c19944
No known key found for this signature in database
GPG Key ID: 0A88B68D6A9ACAE0
2 changed files with 6 additions and 0 deletions

View File

@ -66,4 +66,8 @@ pkgs.stdenv.mkDerivation rec {
substituteInPlace ./src/lib.rs \
--replace "/usr/share/app-info" "${nixos-appstream-data}/share/app-info"
'';
postInstall = ''
wrapProgram $out/bin/nix-software-center --prefix PATH : '${lib.makeBinPath [ pkgs.gnome-console ]}'
'';
}

View File

@ -1475,6 +1475,7 @@ impl Component for PkgModel {
Launch::GtkApp(x) => {
match self.userpkgtype {
UserPkgs::Env => {
debug!("Launching {} with nix-shell", x);
let _ = Command::new("nix-shell")
.arg("-p")
.arg(&self.pkg)
@ -1483,6 +1484,7 @@ impl Component for PkgModel {
.spawn();
}
UserPkgs::Profile => {
debug!("Launching {} with nix shell", x);
let _ = Command::new("nix")
.arg("shell")
.arg(&format!("nixpkgs#{}", self.pkg))