| Copyright | (c) 2021-2025 berberman |
|---|---|
| License | MIT |
| Maintainer | berberman <[email protected]> |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
NvFetcher.ExtractSrc
Description
This module provides function that extracts files contents from package sources.
Because we use nix-instantiate to build drv, so nixpkgs (NIX_PATH) is required.
Synopsis
- data ExtractSrcQ = ExtractSrcQ (NixFetcher 'Fetched) (NonEmpty Glob)
- newtype Glob = Glob FilePath
- extractSrcRule :: Rules ()
- extractSrc :: NixFetcher 'Fetched -> Glob -> Action (HashMap FilePath FilePath)
- extractSrcs :: NixFetcher 'Fetched -> NonEmpty Glob -> Action (HashMap FilePath FilePath)
Types
data ExtractSrcQ Source #
Extract file contents from package source Matched files will be copied to build dir. All matched directories are ignored. Only files will be processed.
Constructors
| ExtractSrcQ (NixFetcher 'Fetched) (NonEmpty Glob) |
Instances
Zsh style glob pattern
Notably, recursive wildcards like **/ are supported.
Instances
| IsString Glob Source # | |||||
Defined in NvFetcher.Types Methods fromString :: String -> Glob # | |||||
| Generic Glob Source # | |||||
Defined in NvFetcher.Types Associated Types
| |||||
| Show Glob Source # | |||||
| Binary Glob Source # | |||||
| NFData Glob Source # | |||||
Defined in NvFetcher.Types | |||||
| Eq Glob Source # | |||||
| Ord Glob Source # | |||||
| Hashable Glob Source # | |||||
Defined in NvFetcher.Types | |||||
| Pretty Glob Source # | |||||
Defined in NvFetcher.Types | |||||
| type Rep Glob Source # | |||||
Defined in NvFetcher.Types | |||||
Rules
extractSrcRule :: Rules () Source #
Rules of extract source