mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
69 lines
1.1 KiB
Nix
69 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitLab
|
|
, nix-update-script
|
|
, appstream
|
|
, desktop-file-utils
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, python3
|
|
, vala
|
|
, wrapGAppsHook
|
|
, glib
|
|
, gtk3
|
|
, json-glib
|
|
, libappindicator
|
|
, libsoup
|
|
, webkitgtk
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "meteo";
|
|
version = "0.9.9.2";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "bitseater";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-9+FNpLjiX0zdsUnbBnNSLt/Ma/cqtclP25tl+faPlpU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
appstream
|
|
desktop-file-utils
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
python3
|
|
vala
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
gtk3
|
|
json-glib
|
|
libappindicator
|
|
libsoup
|
|
webkitgtk
|
|
];
|
|
|
|
postPatch = ''
|
|
chmod +x meson/post_install.py
|
|
patchShebangs meson/post_install.py
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Know the forecast of the next hours & days";
|
|
homepage = "https://gitlab.com/bitseater/meteo";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ bobby285271 ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "com.gitlab.bitseater.meteo";
|
|
};
|
|
}
|