NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.2k stars 13.48k forks source link

Package adw-gtk3, a port of Gnome's GTK4 libadwaita GTK theme to GTK3 #162432

Closed berbiche closed 1 year ago

berbiche commented 2 years ago

Project description

adw-gtk3 is a port of Gnome's GTK4 libadwaita GTK theme to GTK3.

Metadata

bobby285271 commented 2 years ago

:thinking: I think this :arrow_down: should work as this theme is GTK3 only and also does not run other stuff like glib-compile-resources.

Feel free to make a pull request for this (sorry I cannot maintain this).

{ stdenvNoCC
, lib
, fetchFromGitHub
, nix-update-script
, meson
, ninja
, sassc
}:

stdenvNoCC.mkDerivation rec {
  pname = "adw-gtk3";
  version = "1.3";

  src = fetchFromGitHub {
    owner = "lassekongo83";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-JTqonPpzKTpJUNxp4IPe6BRf/OmiBFwRqGqrjz1gyI4=";
  };

  nativeBuildInputs = [
    meson
    ninja
    sassc
  ];

  postPatch = ''
    chmod +x gtk/src/adw-gtk3-dark/gtk-3.0/install-dark-theme.sh
    patchShebangs gtk/src/adw-gtk3-dark/gtk-3.0/install-dark-theme.sh
  '';

  passthru = {
    updateScript = nix-update-script {
      attrPath = pname;
    };
  };

  meta = with lib; {
    description = "The theme from libadwaita ported to GTK-3";
    homepage = "https://github.com/lassekongo83/adw-gtk3";
    license = licenses.lgpl21Only;
    platforms = platforms.linux;
    maintainers = with maintainers; [ /* TODO */ ];
  };
}
berbiche commented 2 years ago

Thanks for the derivation!

bobby285271 commented 1 year ago

Done in #191117