dotnet: improve language coverage of passthru.tests for dotnet sdks (#370789)
[NixPkgs.git] / pkgs / by-name / gn / gnome-inform7 / package.nix
blob0c2aacc1a5bb1fa64c48ce581a7d64cfac06675e
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   meson,
6   ninja,
7   pkg-config,
8   python3,
9   perl,
10   bison,
11   texinfo,
12   desktop-file-utils,
13   wrapGAppsHook3,
14   docbook2x,
15   docbook-xsl-nons,
16   inform7,
17   gettext,
18   libossp_uuid,
19   gtk3,
20   gobject-introspection,
21   vala,
22   gtk-doc,
23   webkitgtk_4_0,
24   gtksourceview3,
25   gspell,
26   libxml2,
27   goocanvas2,
28   libplist,
29   glib,
30   gst_all_1,
33 # Neither gnome-inform7 nor its dependencies ratify and chimara have tagged releases in the GTK3 branch yet.
35 let
36   ratify = (
37     stdenv.mkDerivation {
38       pname = "ratify";
39       version = "unstable-2021-02-21";
40       src = fetchFromGitHub {
41         owner = "ptomato";
42         repo = "ratify";
43         rev = "f4d2d60ec73d5588e953650b3879e69a727f30ca";
44         sha256 = "eRh/9pYvdfbdbdJQ7pYMLq5p91I+rtyb/AqEGfakjKs=";
45       };
46       nativeBuildInputs = [
47         meson
48         ninja
49         pkg-config
50         docbook2x
51         docbook-xsl-nons
52         wrapGAppsHook3
53         gobject-introspection
54       ];
55       buildInputs = [
56         gtk3
57         vala
58         gtk-doc
59       ];
60     }
61   );
63   chimara = (
64     stdenv.mkDerivation {
65       pname = "chimara";
66       version = "unstable-2021-04-06";
67       src = fetchFromGitHub {
68         owner = "chimara";
69         repo = "Chimara";
70         rev = "9934b142af508c75c0f1eed597990f39495b1af4";
71         sha256 = "aRz1XX8XaSLTBIrMIIMS3QNMm6Msi+slrZ6+KYlyRMo=";
72       };
73       nativeBuildInputs = [
74         meson
75         ninja
76         pkg-config
77         perl
78         bison
79         texinfo
80         python3
81         glib
82         wrapGAppsHook3
83         gobject-introspection
84       ];
85       buildInputs = [
86         gtk3
87         vala
88         gtk-doc
89         gst_all_1.gstreamer
90         gst_all_1.gst-plugins-base
91         gst_all_1.gst-plugins-good
92         gst_all_1.gst-plugins-bad
93         glib
94       ];
95       preConfigure = ''
96         patchShebangs build-aux/meson_post_install.py
97       '';
98     }
99   );
102 stdenv.mkDerivation {
103   pname = "gnome-inform7";
104   version = "unstable-2021-04-06";
105   src = fetchFromGitHub {
106     owner = "ptomato";
107     repo = "gnome-inform7";
108     # build from revision in the GTK3 branch as mainline requires webkit-1.0
109     rev = "c37e045c159692aae2e4e79b917e5f96cfefa66a";
110     sha256 = "Q4xoITs3AYXhvpWaABRAvJaUWTtUl8lYQ1k9zX7FrNw=";
111   };
112   nativeBuildInputs = [
113     meson
114     ninja
115     pkg-config
116     inform7
117     python3
118     desktop-file-utils
119     wrapGAppsHook3
120   ];
121   buildInputs = [
122     gettext
123     libossp_uuid
124     gtk3
125     gtksourceview3
126     gspell
127     webkitgtk_4_0
128     libxml2
129     goocanvas2
130     libplist
131     ratify
132     chimara
133   ];
134   preConfigure = ''
135     cp ${inform7}/libexec/ni ./src/ni
136     patchShebangs build-aux/* src/generate-resource-xml.{py,sh}
137   '';
139   meta = with lib; {
140     description = "Inform 7 for the Gnome platform";
141     longDescription = ''
142       This version of Inform 7 for the Gnome platform was created by Philip Chimento, based on a design by Graham Nelson and Andrew Hunter.
143     '';
144     homepage = "https://github.com/ptomato/gnome-inform7";
145     license = licenses.gpl3Only;
146     maintainers = [ maintainers.fitzgibbon ];
147     platforms = platforms.linux;
148     mainProgram = "gnome-inform7";
149   };