nvfetcher-0.7.0.0: Generate nix sources expr for the latest version of packages
Copyright(c) 2021-2022 berberman
LicenseMIT
Maintainerberberman <[email protected]>
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

NvFetcher.FetchRustGitDeps

Description

This module provides function to calculate cargoLock used in rustPlatform.buildRustPackage.

Synopsis

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

Instances details
Generic FetchRustGitDepsQ Source # 
Instance details

Defined in NvFetcher.Types

Associated Types

type Rep FetchRustGitDepsQ :: Type -> Type #

Show FetchRustGitDepsQ Source # 
Instance details

Defined in NvFetcher.Types

Binary FetchRustGitDepsQ Source # 
Instance details

Defined in NvFetcher.Types

NFData FetchRustGitDepsQ Source # 
Instance details

Defined in NvFetcher.Types

Methods

rnf :: FetchRustGitDepsQ -> () #

Eq FetchRustGitDepsQ Source # 
Instance details

Defined in NvFetcher.Types

Ord FetchRustGitDepsQ Source # 
Instance details

Defined in NvFetcher.Types

Hashable FetchRustGitDepsQ Source # 
Instance details

Defined in NvFetcher.Types

Pretty FetchRustGitDepsQ Source # 
Instance details

Defined in NvFetcher.Types

type Rep FetchRustGitDepsQ Source # 
Instance details

Defined in NvFetcher.Types

type Rep FetchRustGitDepsQ = D1 ('MetaData "FetchRustGitDepsQ" "NvFetcher.Types" "nvfetcher-0.7.0.0-E76LQsRhWAxEniEZnhJWIT" 'False) (C1 ('MetaCons "FetchRustGitDepsQ" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NixFetcher 'Fetched)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath)))
type RuleResult FetchRustGitDepsQ Source #

outputHashes, a mapping from nameVer -> output hash

Instance details

Defined in NvFetcher.Types

Rules

fetchRustGitDepsRule :: Rules () Source #

Rules of fetch rust git dependencies

Functions

fetchRustGitDeps Source #

Arguments

:: NixFetcher Fetched

prefetched source

-> FilePath

relative file path of Cargo.lock

-> Action (HashMap Text Checksum) 

Run fetch rust git dependencies