This commit is contained in:
Mikhail Klementev 2020-01-03 23:01:23 +00:00
parent 355fb314a1
commit 49b8790032
No known key found for this signature in database
GPG Key ID: BE44DA8C062D87DC
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,9 @@ in {
`
func isPackageExists(name string) bool {
// TODO use something like a
// nix-build '<channel>' -A name
// to avoid installation to user profile
cmd := exec.Command("nix-env", "-iA", name)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr