diff --git a/default.nix b/default.nix index 78228de..ec2bce7 100644 --- a/default.nix +++ b/default.nix @@ -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 ]}' + ''; } diff --git a/src/ui/pkgpage.rs b/src/ui/pkgpage.rs index 25ab628..8efebcd 100644 --- a/src/ui/pkgpage.rs +++ b/src/ui/pkgpage.rs @@ -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))