mirror of
https://code.dumpstack.io/tools/appvm.git
synced 2024-11-23 16:41:29 +00:00
Revert "Do not install apps to nix user profile"
This reverts commit 02dda8bcf9
.
This commit is contained in:
parent
57e15fa0a0
commit
e037770c38
|
@ -35,7 +35,11 @@ in {
|
||||||
`
|
`
|
||||||
|
|
||||||
func isPackageExists(name string) bool {
|
func isPackageExists(name string) bool {
|
||||||
return nil == exec.Command("nix-env", "-iA", "--dry-run", name).Run()
|
cmd := exec.Command("nix-env", "-iA", name)
|
||||||
|
cmd.Stdout = os.Stdout
|
||||||
|
cmd.Stderr = os.Stderr
|
||||||
|
err := cmd.Run()
|
||||||
|
return err == nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func nixPath(name string) (path string, err error) {
|
func nixPath(name string) (path string, err error) {
|
||||||
|
|
Loading…
Reference in a new issue