1
1
mirror of https://github.com/nmattia/niv.git synced 2024-09-19 11:27:40 +03:00

Merge pull request #38 from domenkozar/patch-1

Too much Nix
This commit is contained in:
Nicolas Mattia 2019-03-28 10:24:30 +01:00 committed by GitHub
commit f57c85d05e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -798,9 +798,9 @@ abortCannotAddPackageExists :: PackageName -> IO a
abortCannotAddPackageExists (PackageName n) = abort $ unlines
[ "Cannot add package " <> n <> "."
, "The package already exists. Use"
, " nix drop " <> n
, " niv drop " <> n
, "and then re-add the package. Alternatively use"
, " nix update " <> n <> " --attr foo=bar"
, " niv update " <> n <> " --attr foo=bar"
, "to update the package's attributes."
]
@ -808,7 +808,7 @@ abortCannotUpdateNoSuchPackage :: PackageName -> IO a
abortCannotUpdateNoSuchPackage (PackageName n) = abort $ unlines
[ "Cannot update package " <> n <> "."
, "The package doesn't exist. Use"
, " nix add " <> n
, " niv add " <> n
, "to add the package."
]