mirror of
https://code.dumpstack.io/tools/appvm.git
synced 2024-11-05 03:43:00 +00:00
Do not install apps to nix user profile
This commit is contained in:
parent
13226a6a79
commit
02dda8bcf9
@ -35,11 +35,7 @@ in {
|
||||
`
|
||||
|
||||
func isPackageExists(name string) bool {
|
||||
cmd := exec.Command("nix-env", "-iA", name)
|
||||
cmd.Stdout = os.Stdout
|
||||
cmd.Stderr = os.Stderr
|
||||
err := cmd.Run()
|
||||
return err == nil
|
||||
return nil == exec.Command("nix-env", "-iA", "--dry-run", name).Run()
|
||||
}
|
||||
|
||||
func nixPath(name string) (path string, err error) {
|
||||
|
Loading…
Reference in New Issue
Block a user