nix-files/pkgs/additional/lemoa/default.nix

65 lines
1.1 KiB
Nix
Raw Normal View History

2023-12-19 18:08:16 +00:00
{ lib, stdenv
, cargo
, desktop-file-utils
2023-06-26 00:06:11 +00:00
, fetchFromGitHub
, gdk-pixbuf
2023-09-24 13:02:57 +00:00
, gitUpdater
2023-06-26 00:06:11 +00:00
, glib
, graphene
, gtk4
, libadwaita
2023-12-19 18:08:16 +00:00
, meson
, ninja
2023-06-26 00:06:11 +00:00
, openssl
, pango
, pkg-config
2023-12-19 18:08:16 +00:00
, rustc
2023-06-26 00:06:11 +00:00
, rustPlatform
2023-12-19 18:08:16 +00:00
, wrapGAppsHook4
2023-06-26 00:06:11 +00:00
}:
2023-12-19 18:08:16 +00:00
stdenv.mkDerivation rec {
2023-06-26 00:06:11 +00:00
pname = "lemoa";
2023-12-19 18:08:16 +00:00
version = "0.5.0";
2023-06-26 00:06:11 +00:00
src = fetchFromGitHub {
owner = "lemmy-gtk";
repo = pname;
2023-06-27 06:36:45 +00:00
rev = "v${version}";
2023-12-19 18:08:16 +00:00
hash = "sha256-kVyVU6GYxx4axype1VNfU8gh7ZoxJqkxwX9gCGQLPE8=";
2023-06-26 00:06:11 +00:00
};
2023-12-19 18:08:16 +00:00
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-efUFa77fIsGcvH0n82ITT4cgCkbowxZ/Y5rrIz0F3yQ=";
2023-06-26 00:06:11 +00:00
};
2023-12-19 18:08:16 +00:00
nativeBuildInputs = [
cargo
desktop-file-utils
meson
ninja
pkg-config
rustc
rustPlatform.cargoSetupHook
wrapGAppsHook4
];
2023-06-26 00:06:11 +00:00
buildInputs = [
gtk4
libadwaita
openssl
];
2023-09-24 13:02:57 +00:00
passthru.updateScript = gitUpdater {
rev-prefix = "v";
};
2023-06-26 00:06:11 +00:00
meta = with lib; {
description = "Native Gtk client for Lemmy";
homepage = "https://github.com/lemmy-gtk/lemoa";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ colinsane ];
};
}