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

Module request: haiku-icon-theme #367777

Open
dominic-espo opened this issue Dec 24, 2024 · 3 comments
Open

Module request: haiku-icon-theme #367777

dominic-espo opened this issue Dec 24, 2024 · 3 comments
Labels
9.needs: module (new) This needs a module to be created

Comments

@dominic-espo
Copy link

Description

An icon theme I've been seeing around new desktops is the Haiku theme from HaikuOS. They're low-poly and isometric, giving them a unique look. I think they would be a valuable addition to the nix repository.

Someone here has already exported the icons to SVG, PNG, and HVIF. Though the repository hasn't been updated since 8 months ago.

@dominic-espo dominic-espo added the 9.needs: module (new) This needs a module to be created label Dec 24, 2024
@luftmensch-luftmensch
Copy link
Contributor

I'm currently using another one (the one also used by the AUR). I've packaged on my own repository like this:

{
  lib,
  stdenvNoCC,
  fetchFromGitHub,
  gtk3,
  adwaita-icon-theme,
  breeze-icons,
  hicolor-icon-theme,
}:
let
  pname = "haiku-icon-theme";
  version = "0-unstable-2024-12-24";
in
stdenvNoCC.mkDerivation {
  inherit pname version;

  src = fetchFromGitHub {
    owner = "tallero";
    repo = "haiku-icon-theme";
    rev = "7577be42c717faace2c5a4db5cc92850d76df42b";
    hash = "sha256-3CRz0zRwDtZF1MgPG1+xyiimxG4RLZshW92hjk+TjRA=";
  };

  nativeBuildInputs = [
    gtk3
  ];

  propagatedBuildInputs = [
    adwaita-icon-theme
    breeze-icons
    hicolor-icon-theme
  ];

  dontDropIconThemeCache = true;

  installPhase = ''
    runHook preInstall

    mkdir -p $out/share/icons
    cp -a Haiku $out/share/icons/

    for theme in $out/share/icons/*; do
      gtk-update-icon-cache -f $theme
    done

    runHook postInstall
  '';

  meta = {
    description = "Haiku icon theme";
    homepage = "https://github.com/tallero/haiku-icon-theme";
    license = lib.licenses.mit;
    platforms = lib.platforms.linux;
    maintainers = [ lib.maintainers.luftmensch-luftmensch ];
  };
}

I could make a PR later if you want

@dominic-espo
Copy link
Author

I got them working with your configuration, but the icons don't always scale well. Here's a screenshot from my file picker.

scrot_2024-12-24_10:08:41_AM

Is this something on my end?

@luftmensch-luftmensch
Copy link
Contributor

I got them working with your configuration, but the icons don't always scale well. Here's a screenshot from my file picker.

scrot_2024-12-24_10:08:41_AM

Is this something on my end?

Never had this problem in my configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
9.needs: module (new) This needs a module to be created
Projects
None yet
Development

No branches or pull requests

2 participants