01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
75 lines
1.4 KiB
Nix
75 lines
1.4 KiB
Nix
{ 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.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elementary";
|
|
repo = "iconbrowser";
|
|
rev = version;
|
|
sha256 = "sha256-xooZfQmeB4rvlO8zKWnUuXPCFQNCTdjd7C53/j9EoHg=";
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|