Skip to content

Instantly share code, notes, and snippets.

@zarelit
Created April 29, 2023 10:31
Show Gist options
  • Select an option

  • Save zarelit/5daac74d4efed972d251556f1383fdcc to your computer and use it in GitHub Desktop.

Select an option

Save zarelit/5daac74d4efed972d251556f1383fdcc to your computer and use it in GitHub Desktop.

Revisions

  1. zarelit created this gist Apr 29, 2023.
    20 changes: 20 additions & 0 deletions flake.nix
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    {
    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;
    };
    };
    }
    7 changes: 7 additions & 0 deletions nix repl example
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    $ nix repl
    Welcome to Nix 2.11.1. Type :? for help.

    nix-repl> :lf .
    Added 8 variables.

    nix-repl> packages.glpkgs