nixpkgs/pkgs/applications/networking/weather/meteo/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

72 lines
1.2 KiB
Nix
Raw Normal View History

2021-10-31 04:54:41 +01:00
{ lib
, stdenv
, fetchFromGitLab
, nix-update-script
, appstream
, desktop-file-utils
, meson
, ninja
, pkg-config
, python3
, vala
, wrapGAppsHook
, glib
, gtk3
, json-glib
, libappindicator
, libsoup
, webkitgtk
}:
2018-09-08 11:53:48 +02:00
stdenv.mkDerivation rec {
pname = "meteo";
2021-11-02 10:26:56 +01:00
version = "0.9.9.1";
2018-09-08 11:53:48 +02:00
src = fetchFromGitLab {
owner = "bitseater";
repo = pname;
rev = version;
2021-11-02 10:26:56 +01:00
sha256 = "sha256-kkUVTxh5svk61oDp/dpe3ILGyexYe3UaS+LgWsy+Z9s=";
2018-09-08 11:53:48 +02:00
};
nativeBuildInputs = [
appstream
desktop-file-utils
meson
ninja
pkg-config
2018-09-08 11:53:48 +02:00
python3
vala
wrapGAppsHook
];
buildInputs = [
2021-10-31 04:54:41 +01:00
glib
2018-09-08 11:53:48 +02:00
gtk3
json-glib
libappindicator
libsoup
webkitgtk
];
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';
passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};
meta = with lib; {
2018-09-08 11:53:48 +02:00
description = "Know the forecast of the next hours & days";
homepage = "https://gitlab.com/bitseater/meteo";
2019-11-20 11:29:03 +01:00
license = licenses.gpl3Plus;
2021-10-31 04:54:41 +01:00
maintainers = with maintainers; [ bobby285271 ];
2019-11-20 11:29:03 +01:00
platforms = platforms.linux;
2021-10-31 04:54:41 +01:00
mainProgram = "com.gitlab.bitseater.meteo";
2018-09-08 11:53:48 +02:00
};
}