1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 nix-update-script,
6 meson,
7 ninja,
8 vala,
9 pkg-config,
10 pantheon,
11 python3,
12 gettext,
13 glib,
14 gtk3,
15 libgee,
16 wrapGAppsHook3,
17}:
18
19stdenv.mkDerivation rec {
20 pname = "cipher";
21 version = "2.5.0";
22
23 src = fetchFromGitHub {
24 owner = "arshubham";
25 repo = "cipher";
26 rev = version;
27 sha256 = "00azc5ck17zkdypfza6x1viknwhimd9fqgk2ybff3mx6aphmla7a";
28 };
29
30 nativeBuildInputs = [
31 gettext
32 meson
33 ninja
34 vala
35 pkg-config
36 python3
37 wrapGAppsHook3
38 ];
39
40 buildInputs = [
41 glib
42 gtk3
43 pantheon.granite
44 libgee
45 ];
46
47 postPatch = ''
48 substituteInPlace data/com.github.arshubham.cipher.desktop.in \
49 --replace "gio" "${glib.bin}/bin/gio"
50 chmod +x meson/post_install.py
51 patchShebangs meson/post_install.py
52 '';
53
54 passthru = {
55 updateScript = nix-update-script { };
56 };
57
58 meta = with lib; {
59 description = "Simple application for encoding and decoding text, designed for elementary OS";
60 homepage = "https://github.com/arshubham/cipher";
61 maintainers = with maintainers; [ xiorcale ];
62 teams = [ teams.pantheon ];
63 platforms = platforms.linux;
64 license = licenses.gpl3Plus;
65 mainProgram = "com.github.arshubham.cipher";
66 };
67}