diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2018-03-22 13:24:44 +0100 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2018-11-30 21:35:19 +0100 |
commit | 14a1a4be31977e84babebfc0e602d1248605dc3a (patch) | |
tree | 354b564525f2caa4a1bdc9e3a096e952e97031eb /pkgs | |
parent | f28ff4cf7faa1279c4ed7e9e6795489774b1a086 (diff) | |
download | nixlib-14a1a4be31977e84babebfc0e602d1248605dc3a.tar nixlib-14a1a4be31977e84babebfc0e602d1248605dc3a.tar.gz nixlib-14a1a4be31977e84babebfc0e602d1248605dc3a.tar.bz2 nixlib-14a1a4be31977e84babebfc0e602d1248605dc3a.tar.lz nixlib-14a1a4be31977e84babebfc0e602d1248605dc3a.tar.xz nixlib-14a1a4be31977e84babebfc0e602d1248605dc3a.tar.zst nixlib-14a1a4be31977e84babebfc0e602d1248605dc3a.zip |
gnome-recipes: init at 2.0.2
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/misc/gnome-recipes/default.nix | 79 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 4 |
2 files changed, 83 insertions, 0 deletions
diff --git a/pkgs/applications/misc/gnome-recipes/default.nix b/pkgs/applications/misc/gnome-recipes/default.nix new file mode 100644 index 000000000000..154af4efc9b7 --- /dev/null +++ b/pkgs/applications/misc/gnome-recipes/default.nix @@ -0,0 +1,79 @@ +{ stdenv +, fetchurl +, meson +, ninja +, pkgconfig +, gnome3 +, desktop-file-utils +, gettext +, itstool +, python3 +, wrapGAppsHook +, gtk3 +, glib +, libsoup +, gnome-online-accounts +, rest +, json-glib +, gnome-autoar +, gspell +, libcanberra }: + +let + pname = "gnome-recipes"; + version = "2.0.2"; +in stdenv.mkDerivation rec { + name = "${pname}-${version}"; + + src = fetchurl { + url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz"; + sha256 = "1yymii3yf823d9x28fbhqdqm1wa30s40j94x0am9fjj0nzyd5s8v"; + }; + + nativeBuildInputs = [ + meson + ninja + pkgconfig + desktop-file-utils + gettext + itstool + python3 + wrapGAppsHook + ]; + + buildInputs = [ + gtk3 + glib + libsoup + gnome-online-accounts + rest + json-glib + gnome-autoar + gspell + libcanberra + ]; + + # https://github.com/NixOS/nixpkgs/issues/36468 + # https://gitlab.gnome.org/GNOME/recipes/issues/76 + NIX_CFLAGS_COMPILE = "-I${gnome3.glib.dev}/include/gio-unix-2.0"; + + 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; + }; + }; + + meta = with stdenv.lib; { + description = "Recipe management application for GNOME"; + homepage = https://wiki.gnome.org/Apps/Recipes; + maintainers = gnome3.maintainers; + license = licenses.gpl3; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2a9fad2a3e2e..aee064f742b0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17210,6 +17210,10 @@ with pkgs; gnome-mpv = callPackage ../applications/video/gnome-mpv { }; + gnome-recipes = callPackage ../applications/misc/gnome-recipes { + inherit (gnome3) gnome-online-accounts rest gnome-autoar gspell; + }; + gollum = callPackage ../applications/misc/gollum { }; googleearth = callPackage ../applications/misc/googleearth { }; |