Commit 0dfefe19 authored by Valentin Reis's avatar Valentin Reis

target logic fix.

parent e06af2ca
Pipeline #5852 passed with stage
in 23 seconds
......@@ -106,6 +106,7 @@ data Grafting = Libnrm | NoGraft deriving (Show, Eq)
data NixStaticInOut = Both Text
| Src Text
| SimpleTarget Text
| Target Text deriving (Eq)
data NixCommand = NixBuild | NixShell
......@@ -140,6 +141,7 @@ targets :: [Text]
targets = mapMaybe toTarget nixStatic
where
toTarget (Target t) = Just t
toTarget (SimpleTarget t) = Just t
toTarget (Both t) = Just t
toTarget _ = Nothing
......@@ -154,7 +156,7 @@ isTarget :: Text -> Bool
isTarget x = Target x `elem` nixStatic
nixStatic :: [NixStaticInOut]
nixStatic = src <> both <> target
nixStatic = src <> both <> simpletarget <> target
where
src = [Src "experiments"]
both =
......@@ -162,6 +164,7 @@ nixStatic = src <> both <> target
<$> [ "aml"
, "libnrm"
, "numabench"
, "excit"
, "nrm"
, "containers"
, "argotk"
......@@ -172,6 +175,7 @@ nixStatic = src <> both <> target
, "openmc"
, "argonix"
]
simpletarget = SimpleTarget <$> ["numabench-check" , "excit-check"]
target =
Target
<$> [ "powerexpe"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment