47 lines
1.5 KiB
Nix
47 lines
1.5 KiB
Nix
{ stdenv, fetchurl, pkgconfig, file, intltool, glib
|
|
, libxml2, gnome3, gobjectIntrospection, libsoup, python3Packages }:
|
|
|
|
let
|
|
pname = "grilo";
|
|
version = "0.3.4"; # if you change minor, also change ./setup-hook.sh
|
|
in stdenv.mkDerivation rec {
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
|
|
sha256 = "0vh67gja6yn7czh77ssmx6ncp99fl2926pbi2hplqms27c2n8sbw";
|
|
};
|
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
configureFlags = [ "--enable-grl-pls" "--enable-grl-net" ];
|
|
|
|
preConfigure = ''
|
|
for f in src/Makefile.in libs/pls/Makefile.in libs/net/Makefile.in; do
|
|
substituteInPlace $f --replace @INTROSPECTION_GIRDIR@ "$out/share/gir-1.0/"
|
|
substituteInPlace $f --replace @INTROSPECTION_TYPELIBDIR@ "$out/lib/girepository-1.0"
|
|
done
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ file intltool glib libxml2 libsoup
|
|
gnome3.totem-pl-parser ];
|
|
|
|
propagatedBuildInputs = [ python3Packages.pygobject3 gobjectIntrospection ];
|
|
|
|
passthru = {
|
|
updateScript = gnome3.updateScript {
|
|
packageName = pname;
|
|
attrPath = "gnome3.${pname}";
|
|
versionPolicy = "none";
|
|
};
|
|
};
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://wiki.gnome.org/Projects/Grilo;
|
|
description = "Framework that provides access to various sources of multimedia content, using a pluggable system";
|
|
maintainers = gnome3.maintainers;
|
|
license = licenses.lgpl2;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|