Skip to content

[BUG] Nixos ffmpeg error #184

Closed
Closed

Description

@tuncaydinler

Step 1. Before you submit

  • I have read the above instructions and am sure that this is supposed to be posted here.
  • I've successfully updated to the latest versions following the updating guide.
  • I've successfully updated the system packages to the latest.
  • I've ticked the checkboxes without reading their contents

Step 2. Version info

Packages: not on Arch

Dots: not installed

Shell: version helper not available

Quickshell: not in PATH

Step 3. Describe the issue

NixOS build fails: undefined ffmpeg and missing dirtyRev

Environment

OS: NixOS 26.05
Architecture: x86_64-linux
Installation: Nix flake
Repository: https://github.com/caelestia-dots/cli

Description

While updating my NixOS configuration and running nh os switch, the Caelestia CLI flake failed to evaluate.

The first error was:

error: undefined variable 'ffmpeg'
at caelestia-dots/cli/default.nix:54

The default.nix function references ffmpeg in propagatedBuildInputs, but ffmpeg is missing from the function arguments.

After addressing that issue locally, I encountered another error:

error: attribute 'dirtyRev' missing
at flake.nix:29
rev = self.rev or self.dirtyRev;

My local workaround was to change the expression to:

rev = self.rev or "local";

After this change, nixos-rebuild dry-build --flake /etc/nixos#nixos completed successfully.

Expected behavior

The flake should evaluate successfully when used in a NixOS configuration, including when the source is a local flake without Git revision metadata.

Could these issues be fixed in the upstream repository?

Reminder

  • I agree that it's usually impossible for others to help me without my logs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions