Add test for currentSystem and remove hacky call

This commit is contained in:
Doug Beardsley 2019-03-08 23:22:43 -05:00
parent e7efbb4f06
commit aa4156c5f6
2 changed files with 2 additions and 1 deletions

View File

@ -1113,7 +1113,7 @@ currentSystem :: MonadNix e m => m (NValue m)
currentSystem = do
os <- getCurrentSystemOS
arch <- getCurrentSystemArch
return $ nvStr $ hackyMakeNixStringWithoutContext (arch <> "-" <> os)
return $ nvStr $ principledMakeNixStringWithoutContext (arch <> "-" <> os)
currentTime_ :: MonadNix e m => m (NValue m)
currentTime_ = do

View File

@ -0,0 +1 @@
builtins.hasContext builtins.currentSystem