Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

nix.nixFlakeDep

import { nix } from "https://garn.io/ts/v0.0.20/mod.ts"; 

const { nixFlakeDep } = nix;

Returns a NixExpression that renders as an identifier that refers to a flake input. At the same time it registers the flake input as a dependency, so that it'll be included in the inputs of the generated flake file. See renderFlakeFile for an example.

function nixFlakeDep(name: string, dep: FlakeDep): NixExpression;
§
nixFlakeDep(name: string, dep: FlakeDep): NixExpression
[src]

§Parameters

§
name: string
[src]
§
dep: FlakeDep
[src]