3
0
Fork 0
forked from mirrors/nixpkgs

gnome3.gsound: add updateScript

This commit is contained in:
Jan Tojnar 2018-03-03 09:03:38 +01:00
parent 2245555a3e
commit ed2e497286
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -1,18 +1,26 @@
{ stdenv, fetchurl, pkgconfig, glib, libcanberra, gobjectIntrospection, libtool, gnome3 }:
let
majVer = "1.0";
pname = "gsound";
version = "1.0.2";
in stdenv.mkDerivation rec {
name = "gsound-${majVer}.2";
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/gsound/${majVer}/${name}.tar.xz";
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
sha256 = "bba8ff30eea815037e53bee727bbd5f0b6a2e74d452a7711b819a7c444e78e53";
};
nativeBuildInputs = [ pkgconfig gobjectIntrospection libtool gnome3.vala ];
buildInputs = [ glib libcanberra ];
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
attrPath = "gnome3.${pname}";
};
};
meta = with stdenv.lib; {
homepage = https://wiki.gnome.org/Projects/GSound;
description = "Small library for playing system sounds";