2023-02-05 20:11:45 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
2023-05-12 14:17:16 +00:00
|
|
|
, cargo
|
2023-02-05 20:11:45 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
2023-07-21 11:53:28 +00:00
|
|
|
, gst_all_1
|
2023-02-05 20:11:45 +00:00
|
|
|
, protobuf
|
|
|
|
, libsecret
|
|
|
|
, libadwaita
|
|
|
|
, rustPlatform
|
2023-05-12 14:17:16 +00:00
|
|
|
, rustc
|
2023-07-21 11:53:28 +00:00
|
|
|
, appstream-glib
|
|
|
|
, blueprint-compiler
|
2023-02-05 20:11:45 +00:00
|
|
|
, desktop-file-utils
|
|
|
|
, wrapGAppsHook4
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "flare";
|
2023-07-21 11:53:28 +00:00
|
|
|
version = "0.9.0";
|
2023-02-05 20:11:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.com";
|
|
|
|
owner = "Schmiddiii";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-07-21 11:53:28 +00:00
|
|
|
hash = "sha256-6p9uuK71fJvJs0U14jJEVb2mfpZWrCZZFE3eoZe9eVo=";
|
2023-02-05 20:11:45 +00:00
|
|
|
};
|
|
|
|
|
2023-03-25 23:16:46 +00:00
|
|
|
cargoDeps = rustPlatform.importCargoLock {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
2023-04-01 01:36:49 +00:00
|
|
|
"curve25519-dalek-3.2.1" = "sha256-0hFRhn920tLBpo6ZNCl6DYtTMHMXY/EiDvuhOPVjvC0=";
|
|
|
|
"libsignal-protocol-0.1.0" = "sha256-IBhmd3WzkICiADO24WLjDJ8pFILGwWNUHLXKpt+Y0IY=";
|
2023-07-21 11:53:28 +00:00
|
|
|
"libsignal-service-0.1.0" = "sha256-WSRqBNq9jbe6PSeExfmehNZwjlB70GLlHkrDlw59O5c=";
|
|
|
|
"presage-0.6.0-dev" = "sha256-oNDfFLir3XL2UOGrWR/IFO7XTeJKX+vjdrd3qbIomtw=";
|
2023-03-25 23:16:46 +00:00
|
|
|
};
|
2023-02-05 20:11:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-07-21 11:53:28 +00:00
|
|
|
appstream-glib # for appstream-util
|
|
|
|
blueprint-compiler
|
2023-02-05 20:11:45 +00:00
|
|
|
desktop-file-utils # for update-desktop-database
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook4
|
2023-05-12 14:17:16 +00:00
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
cargo
|
|
|
|
rustc
|
|
|
|
];
|
2023-02-05 20:11:45 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libadwaita
|
|
|
|
libsecret
|
|
|
|
protobuf
|
2023-07-21 11:53:28 +00:00
|
|
|
|
|
|
|
# To reproduce audio messages
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
gst_all_1.gst-plugins-good
|
|
|
|
gst_all_1.gst-plugins-bad
|
2023-02-05 20:11:45 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
changelog = "https://gitlab.com/Schmiddiii/flare/-/blob/${src.rev}/CHANGELOG.md";
|
|
|
|
description = "An unofficial Signal GTK client";
|
|
|
|
homepage = "https://gitlab.com/Schmiddiii/flare";
|
|
|
|
license = lib.licenses.agpl3Plus;
|
2023-07-23 02:21:28 +00:00
|
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
2023-02-05 20:11:45 +00:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|