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.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 NixExpr 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 Version Source # 
Instance details

Defined in NvFetcher.NixExpr

ToNixExpr String Source # 
Instance details

Defined in NvFetcher.NixExpr

ToNixExpr Bool Source # 
Instance details

Defined in NvFetcher.NixExpr

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

Defined in NvFetcher.NixExpr

ToNixExpr (NixFetcher 'Fetched) Source # 
Instance details

Defined in NvFetcher.NixExpr

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

Defined in NvFetcher.NixExpr

Methods

toNixExpr :: [a] -> NixExpr Source #

fetcherToDrv :: NixFetcher Fetched -> Text -> NixExpr Source #

Create a trivial drv that extracts the source from a fetcher TODO: Avoid using NIX_PATH