2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2020-07-07 23:49:08 +02:00
|
|
|
, fetchFromGitHub
|
2020-07-29 18:33:39 +02:00
|
|
|
, nix-update-script
|
2020-07-07 23:49:08 +02:00
|
|
|
, fetchpatch
|
|
|
|
, vala
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-17 03:09:27 +01:00
|
|
|
, pkg-config
|
2020-07-07 23:49:08 +02:00
|
|
|
, python3
|
|
|
|
, libgee
|
|
|
|
, gsettings-desktop-schemas
|
2021-05-07 23:18:14 +02:00
|
|
|
, gnome
|
2020-07-07 23:49:08 +02:00
|
|
|
, pantheon
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gtk3
|
|
|
|
, json-glib
|
|
|
|
, glib
|
|
|
|
, glib-networking
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "olifant";
|
2020-08-11 20:18:18 +02:00
|
|
|
version = "0.2.1-beta6";
|
2020-07-07 23:49:08 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cleac";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-08-11 20:18:18 +02:00
|
|
|
sha256 = "sha256-3hnEa4Q1dH0R8Jp+Ew0+dH1PEm3F+56jYwqhJ+vll4M=";
|
2020-07-07 23:49:08 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 03:09:27 +01:00
|
|
|
pkg-config
|
2020-07-07 23:49:08 +02:00
|
|
|
python3
|
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
glib-networking
|
2021-05-07 23:18:14 +02:00
|
|
|
gnome.libsoup
|
2020-07-07 23:49:08 +02:00
|
|
|
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 18:33:39 +02:00
|
|
|
updateScript = nix-update-script {
|
2020-07-07 23:49:08 +02:00
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-07-07 23:49:08 +02:00
|
|
|
description = "A simple Mastodon client designed for elementary OS, originally developed by @bleakgrey";
|
|
|
|
homepage = "https://github.com/cleac/olifant";
|
|
|
|
license = licenses.gpl3;
|
2021-05-05 11:25:45 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-07-07 23:49:08 +02:00
|
|
|
};
|
|
|
|
}
|