Skip to content

Providing nixGL command via flake #90

Open
@jacg

Description

@jacg

Halcyon Days of Old

Many moons ago I used

nixGL = pkgs.callPackage "${builtins.fetchTarball {
    url = https://github.com/guibou/nixGL/archive/7d6bc1b21316bab6cf4a6520c2639a11c25a220e.tar.gz;
    #sha256 = pkgs.lib.fakeSha256;
    sha256 = "02y38zmdplk7a9ihsxvnrzhhv7324mmf5g8hmxqizaid5k5ydpr3";
}}/nixGL.nix" {};

and buildInputs = [ nixGL.nixGLDefault ];

to provide the nixGL command which automatically picked the correct implementation for whatever hardware I happened to be running.

Harsh and Cruel Present

Now I'm trying to provide nixGL in a flake, roughly like this

  inputs = { nixgl.url = "github:guibou/nixGL"; };

  ...

     overlays = [ nixgl.overlay ];

  ...

   devShell = pkgs.mkShell {
     buildInputs = [
       pkgs.nixgl.nixGLIntel         # Works
       pkgs.nixgl.nixGLDefault       # error: attribute 'nixGLDefault' missing 
       pkgs.nixgl.auto.nixGLDefault  # error: attribute 'currentTime' missing at /nix/store/8gs76jqmi2s8gqv68bakyyk3dx4a83db-source/nixGL.nix:202:18: 
     ];
   };

and I get the errors shown in the comments.

How should I go about providing nixGL in a devShell?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions