Copyright | (c) 2021-2022 berberman |
---|---|
License | MIT |
Maintainer | berberman <[email protected]> |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
.
Instances
Rules
fetchRustGitDepsRule :: Rules () Source #
Rules of fetch rust git dependencies