forked from mirrors/nixpkgs
5cc18c4781
Standard library now contains stdenv.lib.versions.majorMinor, which does the same.
56 lines
1.6 KiB
Nix
56 lines
1.6 KiB
Nix
{ stdenv, fetchurl, pkgconfig, file, intltool, vala, glib, liboauth, gtk3
|
|
, gtk-doc, docbook_xsl, docbook_xml_dtd_43
|
|
, libxml2, gnome3, gobjectIntrospection, libsoup }:
|
|
|
|
let
|
|
pname = "grilo";
|
|
version = "0.3.6"; # if you change minor, also change ./setup-hook.sh
|
|
in stdenv.mkDerivation rec {
|
|
name = "${pname}-${version}";
|
|
|
|
outputs = [ "out" "dev" "man" "devdoc" ];
|
|
outputBin = "dev";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
|
sha256 = "14cwpk9jxi8rfjcmkav37zf0m52b1lqpkpkz858h80jqvn1clr8y";
|
|
};
|
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
configureFlags = [
|
|
"--enable-grl-pls"
|
|
"--enable-grl-net"
|
|
"--enable-gtk-doc"
|
|
];
|
|
|
|
preConfigure = ''
|
|
for f in src/Makefile.in libs/pls/Makefile.in libs/net/Makefile.in; do
|
|
substituteInPlace $f --replace @INTROSPECTION_GIRDIR@ "$dev/share/gir-1.0/"
|
|
substituteInPlace $f --replace @INTROSPECTION_TYPELIBDIR@ "$out/lib/girepository-1.0"
|
|
done
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
file intltool pkgconfig gobjectIntrospection vala
|
|
gtk-doc docbook_xsl docbook_xml_dtd_43
|
|
];
|
|
buildInputs = [ glib liboauth gtk3 libxml2 libsoup gnome3.totem-pl-parser ];
|
|
|
|
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;
|
|
};
|
|
}
|