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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: programs.git.difftastic.enable doesn't install diffstatic #5393

Open
2 tasks done
lebensterben opened this issue May 11, 2024 · 1 comment
Open
2 tasks done

bug: programs.git.difftastic.enable doesn't install diffstatic #5393

lebensterben opened this issue May 11, 2024 · 1 comment
Assignees
Labels
bug triage Issues or feature request that have not been triaged yet

Comments

@lebensterben
Copy link

Are you following the right branch?

  • My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • I have searched the existing issues

Issue description

I have added

programs.git.difftastic.enable = true;

to my NixOS configuration, but somehow difft is not installed.

In fact if I run git diff ... it tells me exactly that:

error: cannot run difft: No such file or directory

That is to say, programs.git.difftastic.enable correctly configures difftastic as the external diff tool for git, but the binary is not correctly installed.

Maintainer CC

@rycee

System information

- system: `"x86_64-linux"`
 - host os: `Linux 6.6.30, NixOS, 24.05 (Uakari), 24.05.20240509.f1010e0`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/nix/store/asymc3nsl739p1wwr0w6xbjnqs3qb94p-source`
@lebensterben lebensterben added bug triage Issues or feature request that have not been triaged yet labels May 11, 2024
@4lxs
Copy link

4lxs commented Jun 6, 2024

i'm unable to replicate. nor can i find a reason why the binary wouldn't be installed

furthermore, afaik, the error seen is inconsistent with what would be expected if you had enabled the option. the binary should be a path into the nix store. that is, expected would be

fatal: cannot exec '/nix/store/something/bin/difft': No such file or directory

instead of

error: cannot run difft: No such file or directory

it seems to me that you modified the git config file yourself. though this should still work as difftastic is added as a package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Issues or feature request that have not been triaged yet
Projects
None yet
Development

No branches or pull requests

5 participants