diff options
author | ciferkey <ciferkey@gmail.com> | 2022-09-13 22:59:41 -0400 |
---|---|---|
committer | Bobby Rong <rjl931189261@126.com> | 2022-09-14 11:22:42 +0800 |
commit | 79a0dd5f4885795cf202cd5f18fd9874e3da1f9a (patch) | |
tree | 570773bb7d449d9bd3e7066f7e241128a1d377f0 /pkgs/data/themes | |
parent | 32f848003acbd3d901d40dab08daf187c88da27e (diff) |
adw-gtk3: init at 3.7
Diffstat (limited to 'pkgs/data/themes')
-rw-r--r-- | pkgs/data/themes/adw-gtk3/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/data/themes/adw-gtk3/default.nix b/pkgs/data/themes/adw-gtk3/default.nix new file mode 100644 index 0000000000000..f88c11388c790 --- /dev/null +++ b/pkgs/data/themes/adw-gtk3/default.nix @@ -0,0 +1,45 @@ +{ stdenvNoCC +, lib +, fetchFromGitHub +, nix-update-script +, meson +, ninja +, sassc +}: + +stdenvNoCC.mkDerivation rec { + pname = "adw-gtk3"; + version = "3.7"; + + src = fetchFromGitHub { + owner = "lassekongo83"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-hHmNRPUJOXa//aKgAYhGBVX6usRsObWbzcfOa1uwbqM="; + }; + + 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; [ ciferkey ]; + }; +} |