nixpkgs/pkgs/development/libraries/gsound/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
1.1 KiB
Nix
Raw Normal View History

2021-09-26 10:44:56 +00:00
{ lib, stdenv, fetchurl, pkg-config, glib, vala, libcanberra, gobject-introspection, libtool, gnome, meson, ninja }:
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";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2021-09-26 10:44:56 +00:00
sha256 = "06l80xgykj7x1kqkjvcq06pwj2rmca458zvs053qc55x3sg06bfa";
};
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 ];
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 = {
updateScript = gnome.updateScript {
2018-03-03 08:03:38 +00:00
packageName = pname;
versionPolicy = "odd-unstable";
2018-03-03 08:03:38 +00:00
};
};
meta = with lib; {
homepage = "https://wiki.gnome.org/Projects/GSound";
description = "Small library for playing system sounds";
maintainers = teams.gnome.members;
license = licenses.gpl2;
platforms = platforms.linux;
};
}