mirror of
https://github.com/vlinkz/nix-software-center.git
synced 2024-09-11 13:35:27 +03:00
Add gnome-console dependency
This commit is contained in:
parent
630a718bac
commit
5532c19944
@ -66,4 +66,8 @@ pkgs.stdenv.mkDerivation rec {
|
|||||||
substituteInPlace ./src/lib.rs \
|
substituteInPlace ./src/lib.rs \
|
||||||
--replace "/usr/share/app-info" "${nixos-appstream-data}/share/app-info"
|
--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 ]}'
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
@ -1475,6 +1475,7 @@ impl Component for PkgModel {
|
|||||||
Launch::GtkApp(x) => {
|
Launch::GtkApp(x) => {
|
||||||
match self.userpkgtype {
|
match self.userpkgtype {
|
||||||
UserPkgs::Env => {
|
UserPkgs::Env => {
|
||||||
|
debug!("Launching {} with nix-shell", x);
|
||||||
let _ = Command::new("nix-shell")
|
let _ = Command::new("nix-shell")
|
||||||
.arg("-p")
|
.arg("-p")
|
||||||
.arg(&self.pkg)
|
.arg(&self.pkg)
|
||||||
@ -1483,6 +1484,7 @@ impl Component for PkgModel {
|
|||||||
.spawn();
|
.spawn();
|
||||||
}
|
}
|
||||||
UserPkgs::Profile => {
|
UserPkgs::Profile => {
|
||||||
|
debug!("Launching {} with nix shell", x);
|
||||||
let _ = Command::new("nix")
|
let _ = Command::new("nix")
|
||||||
.arg("shell")
|
.arg("shell")
|
||||||
.arg(&format!("nixpkgs#{}", self.pkg))
|
.arg(&format!("nixpkgs#{}", self.pkg))
|
||||||
|
Loading…
Reference in New Issue
Block a user