gnome-recipes: 2.0.2 → 2.0.4

https://gitlab.gnome.org/GNOME/recipes/-/compare/2.0.2...2.0.4

+18 -18
+18 -18
pkgs/applications/misc/gnome-recipes/default.nix
··· 1 - { lib, stdenv 2 - , fetchurl 1 + { stdenv 2 + , lib 3 + , fetchFromGitLab 3 4 , meson 4 5 , ninja 5 6 , pkg-config 6 - , gnome 7 7 , desktop-file-utils 8 8 , gettext 9 9 , itstool ··· 17 17 , json-glib 18 18 , gnome-autoar 19 19 , gspell 20 - , libcanberra }: 20 + , libcanberra 21 + , nix-update-script 22 + }: 21 23 22 - let 24 + stdenv.mkDerivation rec { 23 25 pname = "gnome-recipes"; 24 - version = "2.0.2"; 25 - in stdenv.mkDerivation rec { 26 - name = "${pname}-${version}"; 26 + version = "2.0.4"; 27 27 28 - src = fetchurl { 29 - url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.xz"; 30 - sha256 = "1yymii3yf823d9x28fbhqdqm1wa30s40j94x0am9fjj0nzyd5s8v"; 28 + src = fetchFromGitLab { 29 + domain = "gitlab.gnome.org"; 30 + owner = "GNOME"; 31 + repo = "recipes"; 32 + rev = version; 33 + fetchSubmodules = true; 34 + sha256 = "GyFOwEYmipQdFLtTXn7+NvhDTzxBlOAghr3cZT4QpQw="; 31 35 }; 32 36 33 37 nativeBuildInputs = [ ··· 53 57 libcanberra 54 58 ]; 55 59 56 - # https://github.com/NixOS/nixpkgs/issues/36468 57 - # https://gitlab.gnome.org/GNOME/recipes/issues/76 58 - NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 59 - 60 60 postPatch = '' 61 61 chmod +x src/list_to_c.py 62 62 patchShebangs src/list_to_c.py ··· 64 64 ''; 65 65 66 66 passthru = { 67 - updateScript = gnome.updateScript { 68 - packageName = pname; 67 + updateScript = nix-update-script { 68 + attrPath = pname; 69 69 }; 70 70 }; 71 71 ··· 73 73 description = "Recipe management application for GNOME"; 74 74 homepage = "https://wiki.gnome.org/Apps/Recipes"; 75 75 maintainers = teams.gnome.members; 76 - license = licenses.gpl3; 76 + license = licenses.gpl3Plus; 77 77 platforms = platforms.unix; 78 78 }; 79 79 }