forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / by-name / fl / flare-signal / package.nix
blob85882107887f518f7122ef38eb2dfb44099439d6
1 { lib
2 , stdenv
3 , fetchFromGitLab
4 , cargo
5 , meson
6 , ninja
7 , pkg-config
8 , gst_all_1
9 , protobuf
10 , libspelling
11 , libsecret
12 , libadwaita
13 , gtksourceview5
14 , rustPlatform
15 , rustc
16 , appstream-glib
17 , blueprint-compiler
18 , desktop-file-utils
19 , wrapGAppsHook4
22 stdenv.mkDerivation rec {
23   pname = "flare";
24   version = "0.15.2";
26   src = fetchFromGitLab {
27     domain = "gitlab.com";
28     owner = "schmiddi-on-mobile";
29     repo = "flare";
30     rev = version;
31     hash = "sha256-w8H6EYnVYJ6gDhdeZwyxRquem4ayZ4cgLaJMKqcetuI=";
32   };
34   cargoDeps = rustPlatform.importCargoLock {
35     lockFile = ./Cargo.lock;
36     outputHashes = {
37       "blurhash-0.2.3" = "sha256-s1777+2O0D/VyKwlPUA53gho5sOP8pN610KqxEjugz0=";
38       "curve25519-dalek-4.1.3" = "sha256-bPh7eEgcZnq9C3wmSnnYv0C4aAP+7pnwk9Io29GrI4A=";
39       "libsignal-core-0.1.0" = "sha256-AdN8UHu0khgsog1btE++0J4BmdUC6wMpZzL7HPzhALQ=";
40       "libsignal-service-0.1.0" = "sha256-bnbbbnoBaHUdobBywOAUQojoMYkOlgI2O1RG2DoyvUc=";
41       "presage-0.6.2" = "sha256-AB4ttolC6MPp3foT66DG5RArqX+c1wf2w3lIZ0u0LCM=";
42     };
43   };
45   nativeBuildInputs = [
46     appstream-glib # for appstream-util
47     blueprint-compiler
48     desktop-file-utils # for update-desktop-database
49     meson
50     ninja
51     pkg-config
52     wrapGAppsHook4
53     rustPlatform.cargoSetupHook
54     cargo
55     rustc
56   ];
58   buildInputs = [
59     gtksourceview5
60     libadwaita
61     libsecret
62     libspelling
63     protobuf
65     # To reproduce audio messages
66     gst_all_1.gstreamer
67     gst_all_1.gst-plugins-base
68     gst_all_1.gst-plugins-good
69     gst_all_1.gst-plugins-bad
70   ];
72   meta = {
73     changelog = "https://gitlab.com/schmiddi-on-mobile/flare/-/blob/${src.rev}/CHANGELOG.md";
74     description = "Unofficial Signal GTK client";
75     mainProgram = "flare";
76     homepage = "https://gitlab.com/schmiddi-on-mobile/flare";
77     license = lib.licenses.agpl3Plus;
78     maintainers = with lib.maintainers; [ dotlambda ];
79     platforms = lib.platforms.linux;
80   };