2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2018-03-22 12:24:44 +00:00
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkgconfig
|
|
|
|
, gnome3
|
|
|
|
, desktop-file-utils
|
|
|
|
, gettext
|
|
|
|
, itstool
|
|
|
|
, python3
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, libsoup
|
|
|
|
, gnome-online-accounts
|
2019-02-13 21:47:50 +00:00
|
|
|
, librest
|
2018-03-22 12:24:44 +00:00
|
|
|
, json-glib
|
|
|
|
, gnome-autoar
|
|
|
|
, gspell
|
|
|
|
, libcanberra }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "gnome-recipes";
|
|
|
|
version = "2.0.2";
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 05:42:41 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.xz";
|
2018-03-22 12:24:44 +00:00
|
|
|
sha256 = "1yymii3yf823d9x28fbhqdqm1wa30s40j94x0am9fjj0nzyd5s8v";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
python3
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
glib
|
|
|
|
libsoup
|
|
|
|
gnome-online-accounts
|
2019-02-13 21:47:50 +00:00
|
|
|
librest
|
2018-03-22 12:24:44 +00:00
|
|
|
json-glib
|
|
|
|
gnome-autoar
|
|
|
|
gspell
|
|
|
|
libcanberra
|
|
|
|
];
|
|
|
|
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/36468
|
|
|
|
# https://gitlab.gnome.org/GNOME/recipes/issues/76
|
2019-04-19 11:14:39 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
|
2018-03-22 12:24:44 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x src/list_to_c.py
|
|
|
|
patchShebangs src/list_to_c.py
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-03-22 12:24:44 +00:00
|
|
|
description = "Recipe management application for GNOME";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Recipes";
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = teams.gnome.members;
|
2018-03-22 12:24:44 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|