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

NvFetcher.FetchRustGitDeps

Contents

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
Eq FetchRustGitDepsQ Source # 
Instance details

Defined in NvFetcher.Types

Ord FetchRustGitDepsQ Source # 
Instance details

Defined in NvFetcher.Types

Show FetchRustGitDepsQ Source # 
Instance details

Defined in NvFetcher.Types

Generic FetchRustGitDepsQ Source # 
Instance details

Defined in NvFetcher.Types

Associated Types

type Rep FetchRustGitDepsQ :: Type -> Type #

Hashable 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 -> () #

type Rep FetchRustGitDepsQ Source # 
Instance details

Defined in NvFetcher.Types

type Rep FetchRustGitDepsQ = D1 ('MetaData "FetchRustGitDepsQ" "NvFetcher.Types" "nvfetcher-0.4.0.0-2zPYeAZ7I3cC6vD5RskllZ" '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

fetchRustGitDeps Source #

Arguments

:: NixFetcher Fetched

prefetched source

-> FilePath

relative file path of Cargo.lock

-> Action (HashMap Text Checksum) 

Run fetch rust git dependencies