Skip to content

Instantly share code, notes, and snippets.

@zarelit
Created April 29, 2023 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zarelit/5daac74d4efed972d251556f1383fdcc to your computer and use it in GitHub Desktop.
Save zarelit/5daac74d4efed972d251556f1383fdcc to your computer and use it in GitHub Desktop.
load flake in repl
{
description = "A very basic flake";
inputs = {
nixgl.url = "github:guibou/nixGL";
nixpkgs.url = "nixpkgs/release-22.11";
};
outputs = { nixgl, nixpkgs, ... }:
let
glpkgs = import nixpkgs {
system = "x86_64-linux";
allowUnfree = true;
overlays = [ nixgl.overlay ];
};
in
{
packages = {
inherit glpkgs;
};
};
}
$ nix repl
Welcome to Nix 2.11.1. Type :? for help.
nix-repl> :lf .
Added 8 variables.
nix-repl> packages.glpkgs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment