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

48 lines
811 B
Nix
Raw Normal View History

2023-06-26 00:06:11 +00:00
{ lib
, fetchFromGitHub
, gdk-pixbuf
2023-09-24 13:02:57 +00:00
, gitUpdater
2023-06-26 00:06:11 +00:00
, glib
, graphene
, gtk4
, libadwaita
, openssl
, pango
, pkg-config
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "lemoa";
2023-08-30 05:34:04 +00:00
version = "0.4.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-08-30 05:34:04 +00:00
hash = "sha256-0xMdshQ12mV93r5UwxRLgYsIj97GgxmDDMEisam29HI=";
2023-06-26 00:06:11 +00:00
};
cargoLock = {
lockFile = ./Cargo.lock;
};
nativeBuildInputs = [ pkg-config ];
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 ];
};
}