Skip to content

Commit

Permalink
Merge pull request NixOS#192686 from bobby285271/elementary-iconbrowser
Browse files Browse the repository at this point in the history
pantheon.elementary-iconbrowser: init at 2.0.0
  • Loading branch information
bobby285271 authored Oct 5, 2022
2 parents 728ebb5 + 42793ab commit ee673af
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 0 deletions.
75 changes: 75 additions & 0 deletions pkgs/desktops/pantheon/apps/elementary-iconbrowser/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{ lib
, stdenv
, fetchFromGitHub
, nix-update-script
, meson
, ninja
, pkg-config
, python3
, vala
, wrapGAppsHook4
, elementary-gtk-theme
, elementary-icon-theme
, glib
, granite7
, gtk4
, gtksourceview5
}:

stdenv.mkDerivation rec {
pname = "elementary-iconbrowser";
version = "2.0.0";

src = fetchFromGitHub {
owner = "elementary";
repo = "iconbrowser";
rev = version;
sha256 = "sha256-aXFgL5l9jnOZJJgMOYwiE7W//1sq23CbLEDmhYFJT38=";
};

nativeBuildInputs = [
meson
ninja
pkg-config
python3
vala
wrapGAppsHook4
];

buildInputs = [
elementary-icon-theme
glib
granite7
gtk4
gtksourceview5
];

postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';

preFixup = ''
gappsWrapperArgs+=(
# The GTK theme is hardcoded.
--prefix XDG_DATA_DIRS : "${elementary-gtk-theme}/share"
# The icon theme is hardcoded.
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS"
)
'';

passthru = {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};

meta = with lib; {
homepage = "https://github.com/elementary/iconbrowser";
description = "Browse and find system icons";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = teams.pantheon.members;
mainProgram = "io.elementary.iconbrowser";
};
}
2 changes: 2 additions & 0 deletions pkgs/desktops/pantheon/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ lib.makeScope pkgs.newScope (self: with self; {

elementary-feedback = callPackage ./apps/elementary-feedback { };

elementary-iconbrowser = callPackage ./apps/elementary-iconbrowser { };

elementary-mail = callPackage ./apps/elementary-mail { };

elementary-music = callPackage ./apps/elementary-music { };
Expand Down

0 comments on commit ee673af

Please sign in to comment.