1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 nix-update-script,
6 vala,
7 pkg-config,
8 python3,
9 glib,
10 gtk3,
11 meson,
12 ninja,
13 libgee,
14 pantheon,
15 desktop-file-utils,
16 xorg,
17 wrapGAppsHook3,
18}:
19
20stdenv.mkDerivation rec {
21 pname = "ideogram";
22 version = "1.3.3";
23
24 src = fetchFromGitHub {
25 owner = "cassidyjames";
26 repo = "ideogram";
27 rev = version;
28 sha256 = "1zkr7x022khn5g3sq2dkxzy1hiiz66vl81s3i5sb9qr88znh79p1";
29 };
30
31 nativeBuildInputs = [
32 desktop-file-utils
33 meson
34 ninja
35 vala
36 pkg-config
37 python3
38 wrapGAppsHook3
39 ];
40
41 buildInputs = [
42 glib
43 gtk3
44 libgee
45 pantheon.granite
46 xorg.libX11
47 xorg.libXtst
48 ];
49
50 postPatch = ''
51 chmod +x meson/post_install.py
52 patchShebangs meson/post_install.py
53 '';
54
55 passthru = {
56 updateScript = nix-update-script { };
57 };
58
59 meta = with lib; {
60 description = "Insert emoji anywhere, even in non-native apps - designed for elementary OS";
61 homepage = "https://github.com/cassidyjames/ideogram";
62 license = licenses.gpl2Plus;
63 teams = [ teams.pantheon ];
64 platforms = platforms.linux;
65 mainProgram = "com.github.cassidyjames.ideogram";
66 };
67
68}