Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悶 encountered an issue when using the flake configuration provided in the README #10

Open
pmpaulino opened this issue Dec 22, 2023 · 2 comments

Comments

@pmpaulino
Copy link

What is the issue?

Description

I encountered an issue when using the flake configuration provided in the README of this repository. The configuration resulted in an error when trying to include Dagger as a package in a Nix development environment. Specifically, the error was: "attribute 'dagger' missing".

Steps to Reproduce

I used the flake configuration as given in the README, which is as follows:

{
  inputs = {
    nixpkgs.url = "nixpkgs/nixos-unstable";
    flake-utils.url = "github:numtide/flake-utils";
    dagger.url = "github:dagger/nix";
    dagger.inputs.nixpkgs.follows = "nixpkgs";
  };

  outputs = { self, nixpkgs, flake-utils, dagger, ... }:
    flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = nixpkgs.legacyPackages.${system};
      in {
        devShell = pkgs.mkShell {
          buildInputs = [ dagger.packages.dagger ];
        };
      });
}

Running nix develop with this configuration led to an error.

Suggested Fix

The issue was resolved by modifying the line in the devShell to reference the Dagger package for each system architecture specifically:

buildInputs = [ dagger.packages.${system}.dagger ];

Dagger version

dagger v0.9.4 (registry.dagger.io/engine) darwin/arm64

Steps to reproduce

No response

Log output

No response

@gerhard
Copy link
Member

gerhard commented Mar 12, 2024

WDYT @sagikazarmark ?

@sagikazarmark
Copy link
Contributor

Seems fair. Let me submit a PR to improve the PR in general.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants