forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / by-name / ic / icon-library / package.nix
blob2b2c3e19825ab5311ff466661d49bbdda312d4ec
1 { lib
2 , stdenv
3 , fetchurl
4 , wrapGAppsHook4
5 , buildPackages
6 , cargo
7 , desktop-file-utils
8 , meson
9 , ninja
10 , pkg-config
11 , rustc
12 , gettext
13 , gdk-pixbuf
14 , glib
15 , gtk4
16 , gtksourceview5
17 , libadwaita
18 , darwin
21 stdenv.mkDerivation rec {
22   pname = "icon-library";
23   version = "0.0.19";
25   src = fetchurl {
26     url = "https://gitlab.gnome.org/World/design/icon-library/uploads/7725604ce39be278abe7c47288085919/icon-library-${version}.tar.xz";
27     hash = "sha256-nWGTYoSa0/fxnD0Mb2132LkeB1oa/gj/oIXBbI+FDw8=";
28   };
30   env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
31     # Set the location to gettext to ensure the nixpkgs one on Darwin instead of the vendored one.
32     # The vendored gettext does not build with clang 16.
33     GETTEXT_BIN_DIR = "${lib.getBin buildPackages.gettext}/bin";
34     GETTEXT_INCLUDE_DIR = "${lib.getDev gettext}/include";
35     GETTEXT_LIB_DIR = "${lib.getLib gettext}/lib";
36   };
38   nativeBuildInputs = [
39     cargo
40     desktop-file-utils
41     meson
42     ninja
43     pkg-config
44     rustc
45     wrapGAppsHook4
46   ];
47   buildInputs = [
48     gdk-pixbuf
49     glib
50     gtk4
51     gtksourceview5
52     libadwaita
53   ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
54     darwin.apple_sdk.frameworks.Foundation
55   ];
57   meta = with lib; {
58     homepage = "https://gitlab.gnome.org/World/design/icon-library";
59     description = "Symbolic icons for your apps";
60     mainProgram = "icon-library";
61     maintainers = with maintainers; [ qyliss ];
62     license = licenses.gpl3Plus;
63     platforms = platforms.unix;
64   };