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

Build failure: chadwm #281587

Closed
erikdubois opened this issue Jan 17, 2024 · 6 comments
Closed

Build failure: chadwm #281587

erikdubois opened this issue Jan 17, 2024 · 6 comments
Labels
0.kind: question Requests for a specific question to be answered

Comments

@erikdubois
Copy link

Steps To Reproduce

Steps to reproduce the behavior:

{ config, pkgs, ... }:

{
#services.xserver.displayManager.defaultSession = "none+dwm";
services.xserver.windowManager.dwm.enable = true;
nixpkgs.overlays = [
(final: prev: {
dwm = prev.dwm.overrideAttrs (old: { src = /home/erik/.config/arco-chadwm/chadwm ;});
})
];
}

Build log

How to log?
Here is an image
image

Additional context

Add any other context about the problem here.

Arch Linux has a file called Imlib2.h
Nixos does not have that file

referring to this file will break the build
https://github.com/erikdubois/nixos-configurations/blob/b3cbdfeb169f7e1ccee9f093afff56e7a57c1c70/dotfiles/.config/arco-chadwm/chadwm/drw.c#L7

Notify maintainers

I think the maintainer is empty
https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/development/libraries/imlib2/default.nix#L76

Metadata

image


Add a 👍 reaction to issues you find important.

@erikdubois erikdubois added the 0.kind: build failure A package fails to build label Jan 17, 2024
@skver0
Copy link
Contributor

skver0 commented Jan 17, 2024

The dwm package does not have Imlib2 as a package dependency, this is not a dwm or Imlib2 package related issue.
Look into overriding to include Imlib2 as a dependency for dwm.

@erikdubois
Copy link
Author

erikdubois commented Jan 17, 2024

I do believe Imlib2 is installed but we are missing a file imlib2.h

If you download the imlib2 package from deepin sourceforge and extract it we see it is part of the scr/lib files

https://sourceforge.net/projects/enlightenment/files/imlib2-src/

image

When I try to find this file on NixOS I can not find it.

I thought I should change the path to the folder/file. But if there is no imlib2.h file.

image

Just wondering if I overlooked it or if it is just not available on NixOS.

Imlib2 is installed on the system via this way - I believe?

https://github.com/erikdubois/nixos-configurations/blob/f544e324a2e3d12941bda95f793ded7264fd97e7/riker/desktop-packages.nix#L22

@eclairevoyant
Copy link
Contributor

eclairevoyant commented Jan 20, 2024

No, that is not how you install libraries, you must override the package itself that needs it.

Also you do not need an overlay, just use something like https://wiki.nixos.org/wiki/Dwm

@erikdubois
Copy link
Author

and the fact that imlib2 is missing a file is not the issue?

@eclairevoyant
Copy link
Contributor

eclairevoyant commented Jan 20, 2024

Nothing would be missing if the package was correctly overridden, Imlib2.h is present in the .dev output, which is correctly picked when you add imlib2 to the buildInputs of the package.

(NB grep is also case-sensitive, but that's not the main concern here.)

@eclairevoyant eclairevoyant added 0.kind: question Requests for a specific question to be answered and removed 0.kind: build failure A package fails to build labels Jan 20, 2024
@erikdubois
Copy link
Author

I think I know what you mean.
Since this is too difficult for me I have requested this package.
#282239
I will close this issue for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: question Requests for a specific question to be answered
Projects
None yet
Development

No branches or pull requests

3 participants