core: DerivedPath, be explicit about dropping !

Co-Authored-By: Luigy Leon <luigy@outlook.com>
This commit is contained in:
Richard Marko 2023-11-19 07:34:54 +01:00
parent 9026abaf5c
commit cfcb37320c

View File

@ -76,7 +76,7 @@ parseDerivedPath root p =
<$> (convertError $ System.Nix.StorePath.parsePathFromText root s)
else DerivedPath_Built
<$> (convertError $ System.Nix.StorePath.parsePathFromText root s)
<*> parseOutputsSpec (Data.Text.tail r)
<*> parseOutputsSpec (Data.Text.drop (Data.Text.length "!") r)
derivedPathToText :: StoreDir -> DerivedPath -> Text
derivedPathToText root = \case