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.Core

Description

 
Synopsis

Documentation

data Core Source #

The key type of nvfetcher rule. See NvFetcher.Core

Constructors

Core 

Instances

Instances details
Eq Core Source # 
Instance details

Defined in NvFetcher.Types

Methods

(==) :: Core -> Core -> Bool #

(/=) :: Core -> Core -> Bool #

Ord Core Source # 
Instance details

Defined in NvFetcher.Types

Methods

compare :: Core -> Core -> Ordering #

(<) :: Core -> Core -> Bool #

(<=) :: Core -> Core -> Bool #

(>) :: Core -> Core -> Bool #

(>=) :: Core -> Core -> Bool #

max :: Core -> Core -> Core #

min :: Core -> Core -> Core #

Show Core Source # 
Instance details

Defined in NvFetcher.Types

Methods

showsPrec :: Int -> Core -> ShowS #

show :: Core -> String #

showList :: [Core] -> ShowS #

Generic Core Source # 
Instance details

Defined in NvFetcher.Types

Associated Types

type Rep Core :: Type -> Type #

Methods

from :: Core -> Rep Core x #

to :: Rep Core x -> Core #

Hashable Core Source # 
Instance details

Defined in NvFetcher.Types

Methods

hashWithSalt :: Int -> Core -> Int #

hash :: Core -> Int #

Binary Core Source # 
Instance details

Defined in NvFetcher.Types

Methods

put :: Core -> Put #

get :: Get Core #

putList :: [Core] -> Put #

NFData Core Source # 
Instance details

Defined in NvFetcher.Types

Methods

rnf :: Core -> () #

type Rep Core Source # 
Instance details

Defined in NvFetcher.Types

type Rep Core = D1 ('MetaData "Core" "NvFetcher.Types" "nvfetcher-0.4.0.0-2zPYeAZ7I3cC6vD5RskllZ" 'False) (C1 ('MetaCons "Core" 'PrefixI 'False) (U1 :: Type -> Type))
type RuleResult Core Source # 
Instance details

Defined in NvFetcher.Types

coreRules :: Rules () Source #

The core rule of nvchecker. all rules are wired here.

generateNixSourceExpr :: PackageKey -> Action NixExpr Source #

Run the core rule. Given a PackageKey, run NvFetcher.Nvchecker, NvFetcher.NixFetcher (may also run NvFetcher.ExtractSrc or NvFetrcher.FetchRustGitDeps)

Package
{ _pname = "feeluown-core",
  _pversion = NvcheckerQ (Pypi "feeluown") def,
  _pfetcher = pypiFetcher "feeluown",
  _pextract = Nothing,
  _pcargo = Nothing,
  _ppassthru = PackagePassthru (HashMap.fromList [("a", B)])
}

resulting a nix exprs snippet like:

feeluown-core = {
    pname = "feeluown-core";
    version = "3.7.7";
    src = fetchurl {
      sha256 = "06d3j39ff9znqxkhp9ly81lcgajkhg30hyqxy2809yn23xixg3x2";
      url = "https://pypi.io/packages/source/f/feeluown/feeluown-3.7.7.tar.gz";
    };
    a = B;
  };