nixpkgs/pkgs/applications/misc/gnome-recipes/default.nix

80 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, fetchFromGitLab
2018-03-22 13:24:44 +01:00
, meson
, ninja
, pkg-config
2018-03-22 13:24:44 +01:00
, desktop-file-utils
, gettext
, itstool
, python3
, wrapGAppsHook
, gtk3
, glib
, libsoup
, gnome-online-accounts
2019-02-13 22:47:50 +01:00
, librest
2018-03-22 13:24:44 +01:00
, json-glib
, gnome-autoar
, gspell
, libcanberra
, nix-update-script
}:
2018-03-22 13:24:44 +01:00
stdenv.mkDerivation rec {
2018-03-22 13:24:44 +01:00
pname = "gnome-recipes";
version = "2.0.4";
2018-03-22 13:24:44 +01:00
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = "recipes";
rev = version;
fetchSubmodules = true;
sha256 = "GyFOwEYmipQdFLtTXn7+NvhDTzxBlOAghr3cZT4QpQw=";
2018-03-22 13:24:44 +01:00
};
nativeBuildInputs = [
meson
ninja
pkg-config
2018-03-22 13:24:44 +01:00
desktop-file-utils
gettext
itstool
python3
wrapGAppsHook
];
buildInputs = [
gtk3
glib
libsoup
gnome-online-accounts
2019-02-13 22:47:50 +01:00
librest
2018-03-22 13:24:44 +01:00
json-glib
gnome-autoar
gspell
libcanberra
];
postPatch = ''
chmod +x src/list_to_c.py
patchShebangs src/list_to_c.py
patchShebangs meson_post_install.py
'';
passthru = {
updateScript = nix-update-script {
attrPath = pname;
2018-03-22 13:24:44 +01:00
};
};
meta = with lib; {
2018-03-22 13:24:44 +01:00
description = "Recipe management application for GNOME";
homepage = "https://wiki.gnome.org/Apps/Recipes";
maintainers = teams.gnome.members;
license = licenses.gpl3Plus;
2018-03-22 13:24:44 +01:00
platforms = platforms.unix;
};
}