git.iko.soy/typeable/nixpkgs
on master help sign in
gnome3.grilo: add updateScript
commit1a17154047a89e2328095be1be7cc4fe44bc1e1f authorJan Tojnar <jtojnar@gmail.com> dateSat 3 Mar 2018, 07:09 (9 years ago) parentb8e2420
1 file changed+15−6
pkgs/desktops/gnome-3/core/grilo/default.nix+15−6
pkgs/desktops/gnome-3/core/grilo/default.nix+15−6
@@ -1,13 +1,14 @@
11{ stdenv, fetchurl, pkgconfig, file, intltool, glib
22, libxml2, gnome3, gobjectIntrospection, libsoup, python3Packages }:
33
4−stdenv.mkDerivation rec {
5− major = "0.3"; # if you change this, also change ./setup-hook.sh
6− minor = "4";
7− name = "grilo-${major}.${minor}";
4+let
5+ pname = "grilo";
6+ version = "0.3.4"; # if you change minor, also change ./setup-hook.sh
7+in stdenv.mkDerivation rec {
8+ name = "${pname}-${version}";
89
910 src = fetchurl {
10− url = "mirror://gnome/sources/grilo/${major}/${name}.tar.xz";
11+ url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
1112 sha256 = "0vh67gja6yn7czh77ssmx6ncp99fl2926pbi2hplqms27c2n8sbw";
1213 };
1314
@@ -28,8 +29,16 @@ stdenv.mkDerivation rec {
2829
2930 propagatedBuildInputs = [ python3Packages.pygobject3 gobjectIntrospection ];
3031
32+ passthru = {
33+ updateScript = gnome3.updateScript {
34+ packageName = pname;
35+ attrPath = "gnome3.${pname}";
36+ versionPolicy = "none";
37+ };
38+ };
39+
3140 meta = with stdenv.lib; {
32− homepage = https://wiki.gnome.org/action/show/Projects/Grilo;
41+ homepage = https://wiki.gnome.org/Projects/Grilo;
3342 description = "Framework that provides access to various sources of multimedia content, using a pluggable system";
3443 maintainers = gnome3.maintainers;
3544 license = licenses.lgpl2;