1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 gettext,
6 libxml2,
7 pkg-config,
8 gtk3,
9 cmake,
10 ninja,
11 vala,
12 nixosTests,
13 wrapGAppsHook3,
14}:
15
16stdenv.mkDerivation rec {
17 pname = "plotinus";
18 version = "0.2.0";
19
20 src = fetchFromGitHub {
21 owner = "p-e-w";
22 repo = "plotinus";
23 rev = "v${version}";
24 sha256 = "19k6f6ivg4ab57m62g6fkg85q9sv049snmzq1fyqnqijggwshxfz";
25 };
26
27 nativeBuildInputs = [
28 pkg-config
29 wrapGAppsHook3
30 vala
31 cmake
32 ninja
33 gettext
34 libxml2
35 ];
36 buildInputs = [
37 gtk3
38 ];
39
40 passthru.tests = { inherit (nixosTests) plotinus; };
41
42 meta = with lib; {
43 description = "Searchable command palette in every modern GTK application";
44 homepage = "https://github.com/p-e-w/plotinus";
45 maintainers = with maintainers; [ samdroid-apps ];
46 platforms = platforms.linux;
47 # No COPYING file, but headers in the source code
48 license = licenses.gpl3;
49 };
50}