nvfetcher-0.5.0.0: Generate nix sources expr for the latest version of packages
Copyright(c) 2021-2022 berberman
LicenseMIT
Maintainerberberman <berberman@yandex.com>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

NvFetcher.NixExpr

Description

This module contains a type class ToNixExpr and some its instances associated with either Haskell primitive types or our NvFetcher.Types.

Synopsis

Documentation

type NixExpr = Text Source #

Nix expression

class ToNixExpr a where Source #

Types can be converted into nix expr

Methods

toNixExpr :: a -> NixExpr Source #

Instances

Instances details
ToNixExpr Bool Source # 
Instance details

Defined in NvFetcher.NixExpr

ToNixExpr String Source # 
Instance details

Defined in NvFetcher.NixExpr

ToNixExpr PackageResult Source #

nix expr 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;
  };
Instance details

Defined in NvFetcher.NixExpr

ToNixExpr ExtractSrcQ Source # 
Instance details

Defined in NvFetcher.NixExpr

ToNixExpr NixExpr Source # 
Instance details

Defined in NvFetcher.NixExpr

ToNixExpr Version Source # 
Instance details

Defined in NvFetcher.NixExpr

ToNixExpr a => ToNixExpr [a] Source # 
Instance details

Defined in NvFetcher.NixExpr

Methods

toNixExpr :: [a] -> NixExpr Source #

ToNixExpr a => ToNixExpr (NonEmpty a) Source # 
Instance details

Defined in NvFetcher.NixExpr

ToNixExpr (NixFetcher 'Fresh) Source # 
Instance details

Defined in NvFetcher.NixExpr

ToNixExpr (NixFetcher 'Fetched) Source # 
Instance details

Defined in NvFetcher.NixExpr