2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-07-07 22:49:08 +01:00
|
|
|
, fetchFromGitHub
|
2020-07-29 17:33:39 +01:00
|
|
|
, nix-update-script
|
2020-07-07 22:49:08 +01:00
|
|
|
, fetchpatch
|
|
|
|
, vala
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-17 02:09:27 +00:00
|
|
|
, pkg-config
|
2020-07-07 22:49:08 +01:00
|
|
|
, python3
|
|
|
|
, libgee
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, gnome3
|
|
|
|
, pantheon
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gtk3
|
|
|
|
, json-glib
|
|
|
|
, glib
|
|
|
|
, glib-networking
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "olifant";
|
2020-08-11 19:18:18 +01:00
|
|
|
version = "0.2.1-beta6";
|
2020-07-07 22:49:08 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cleac";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-08-11 19:18:18 +01:00
|
|
|
sha256 = "sha256-3hnEa4Q1dH0R8Jp+Ew0+dH1PEm3F+56jYwqhJ+vll4M=";
|
2020-07-07 22:49:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 02:09:27 +00:00
|
|
|
pkg-config
|
2020-07-07 22:49:08 +01:00
|
|
|
python3
|
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
glib-networking
|
|
|
|
gnome3.libsoup
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
gtk3
|
|
|
|
json-glib
|
|
|
|
libgee
|
|
|
|
pantheon.granite
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
2020-07-29 17:33:39 +01:00
|
|
|
updateScript = nix-update-script {
|
2020-07-07 22:49:08 +01:00
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-07-07 22:49:08 +01:00
|
|
|
description = "A simple Mastodon client designed for elementary OS, originally developed by @bleakgrey";
|
|
|
|
homepage = "https://github.com/cleac/olifant";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ worldofpeace ];
|
|
|
|
};
|
|
|
|
}
|