@@ -1,18 +1,26 @@
11{ stdenv, fetchurl, pkgconfig, glib, libcanberra, gobjectIntrospection, libtool, gnome3 }:
22
33let
4− majVer = "1.0";
4+ pname = "gsound";
5+ version = "1.0.2";
56in stdenv.mkDerivation rec {
6− name = "gsound-${majVer}.2";
7+ name = "${pname}-${version}";
78
89 src = fetchurl {
9− url = "mirror://gnome/sources/gsound/${majVer}/${name}.tar.xz";
10+ url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
1011 sha256 = "bba8ff30eea815037e53bee727bbd5f0b6a2e74d452a7711b819a7c444e78e53";
1112 };
1213
1314 nativeBuildInputs = [ pkgconfig gobjectIntrospection libtool gnome3.vala ];
1415 buildInputs = [ glib libcanberra ];
1516
17+ passthru = {
18+ updateScript = gnome3.updateScript {
19+ packageName = pname;
20+ attrPath = "gnome3.${pname}";
21+ };
22+ };
23+
1624 meta = with stdenv.lib; {
1725 homepage = https://wiki.gnome.org/Projects/GSound;
1826 description = "Small library for playing system sounds";