2021-09-26 10:44:56 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, glib, vala, libcanberra, gobject-introspection, libtool, gnome, meson, ninja }:
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2018-12-25 22:47:20 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-03 08:03:38 +00:00
|
|
|
pname = "gsound";
|
2021-09-26 10:44:56 +00:00
|
|
|
version = "1.0.3";
|
2016-09-18 19:35:23 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2021-09-26 10:44:56 +00:00
|
|
|
sha256 = "06l80xgykj7x1kqkjvcq06pwj2rmca458zvs053qc55x3sg06bfa";
|
2016-09-18 19:35:23 +00:00
|
|
|
};
|
|
|
|
|
2021-12-22 19:10:06 +00:00
|
|
|
strictDeps = true;
|
|
|
|
depsBuildBuild = [ pkg-config ];
|
2021-09-26 10:44:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config meson ninja gobject-introspection libtool vala ];
|
2017-12-17 01:56:31 +00:00
|
|
|
buildInputs = [ glib libcanberra ];
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2021-12-22 19:10:06 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dintrospection=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
|
|
|
|
"-Denable_vala=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
|
|
|
|
];
|
|
|
|
|
2018-03-03 08:03:38 +00:00
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2018-03-03 08:03:38 +00:00
|
|
|
packageName = pname;
|
2021-03-20 23:57:24 +00:00
|
|
|
versionPolicy = "odd-unstable";
|
2018-03-03 08:03:38 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Projects/GSound";
|
2016-09-18 19:35:23 +00:00
|
|
|
description = "Small library for playing system sounds";
|
2020-04-01 12:40:51 +00:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 19:35:23 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|