Add test for currentSystem and remove hacky call
This commit is contained in:
parent
e7efbb4f06
commit
aa4156c5f6
|
@ -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
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
builtins.hasContext builtins.currentSystem
|
Loading…
Reference in New Issue