| Copyright | (c) 2021-2025 berberman |
|---|---|
| License | MIT |
| Maintainer | berberman <[email protected]> |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
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
- type NixExpr = Text
- class ToNixExpr a where
- fetcherToDrv :: NixFetcher 'Fetched -> Text -> NixExpr
Documentation
class ToNixExpr a where Source #
Types can be converted into nix expr
Instances
| ToNixExpr NixExpr Source # | |
| 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;
};
|
Defined in NvFetcher.NixExpr Methods toNixExpr :: PackageResult -> NixExpr Source # | |
| ToNixExpr Version Source # | |
| ToNixExpr String Source # | |
| ToNixExpr Bool Source # | |
| ToNixExpr a => ToNixExpr (NonEmpty a) Source # | |
| ToNixExpr (NixFetcher 'Fetched) Source # | |
Defined in NvFetcher.NixExpr | |
| ToNixExpr a => ToNixExpr [a] Source # | |
Defined in NvFetcher.NixExpr | |
fetcherToDrv :: NixFetcher 'Fetched -> Text -> NixExpr Source #
Create a trivial drv that extracts the source from a fetcher
TODO: Avoid using NIX_PATH