| Copyright | (c) 2021 berberman |
|---|---|
| License | MIT |
| Maintainer | berberman <berberman@yandex.com> |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
NvFetcher.FetchRustGitDeps
Description
This module provides function to calculate cargoLock used in rustPlatform.buildRustPackage.
Synopsis
- data FetchRustGitDepsQ = FetchRustGitDepsQ (NixFetcher Fetched) FilePath
- fetchRustGitDepsRule :: Rules ()
- fetchRustGitDeps :: NixFetcher Fetched -> FilePath -> Action (HashMap Text Checksum)
Types
data FetchRustGitDepsQ Source #
Fetch outputHashes for git dependencies in Cargo.lock.
See https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/rust.section.md#importing-a-cargolock-file for details.
We need fetched source and the file path to Cargo.lock.
Constructors
| FetchRustGitDepsQ (NixFetcher Fetched) FilePath |
Instances
Rules
fetchRustGitDepsRule :: Rules () Source #
Rules of fetch rust git dependencies