bamf: 0.5.3 -> 2018-02-07, fix build

Technically this is 0.5.4 but it's unreleased
This commit is contained in:
worldofpeace 2018-10-30 10:58:24 -04:00
parent 2380f6a4fa
commit 3358e256b1

View File

@ -1,54 +1,66 @@
{ stdenv, fetchurl, libgtop, libwnck3, glib, vala, pkgconfig { stdenv, autoconf, automake, libtool, gnome3, which, fetchgit, libgtop, libwnck3, glib, vala, pkgconfig
, libstartup_notification, gobjectIntrospection, gtk-doc , libstartup_notification, gobjectIntrospection, gtk-doc, docbook_xsl
, xorgserver, dbus, python2 }: , xorgserver, dbus, python2 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "bamf"; name = "bamf-2018-02-07";
version = "0.5.3";
name = "${pname}-${version}";
outputs = [ "out" "dev" "devdoc" ]; outputs = [ "out" "dev" "devdoc" ];
src = fetchurl { src = fetchgit {
url = "https://launchpad.net/${pname}/0.5/${version}/+download/${name}.tar.gz"; url = https://git.launchpad.net/~unity-team/bamf;
sha256 = "051vib8ndp09ph5bfwkgmzda94varzjafwxf6lqx7z1s8rd7n39l"; rev = "0.5.3+18.04.20180207.2-0ubuntu1";
sha256 = "0hvbgzi0mzzzvcamd9mi1ykbk2l6zxffspyk5fpik8bij56nhzym";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
pkgconfig autoconf
gtk-doc automake
docbook_xsl
gnome3.gnome-common
gobjectIntrospection gobjectIntrospection
gtk-doc
libtool
pkgconfig
vala vala
which
# Tests # Tests
xorgserver python2
python2.pkgs.libxslt
python2.pkgs.libxml2
dbus dbus
(python2.withPackages (pkgs: with pkgs; [ libxslt libxml2 ])) xorgserver
]; ];
buildInputs = [ buildInputs = [
libgtop
libwnck3
libstartup_notification
glib glib
libgtop
libstartup_notification
libwnck3
]; ];
# Fix hard-coded path # Fix hard-coded path
# https://bugs.launchpad.net/bamf/+bug/1780557 # https://bugs.launchpad.net/bamf/+bug/1780557
postPatch = '' postPatch = ''
substituteInPlace data/Makefile.in \ substituteInPlace data/Makefile.am \
--replace '/usr/lib/systemd/user' '@prefix@/lib/systemd/user' --replace '/usr/lib/systemd/user' '@prefix@/lib/systemd/user'
''; '';
configureFlags = [ configureFlags = [
"--enable-headless-tests" "--enable-headless-tests"
"--enable-gtk-doc"
]; ];
# fix paths # fix paths
makeFlags = [ makeFlags = [
"INTROSPECTION_GIRDIR=$(dev)/share/gir-1.0/" "INTROSPECTION_GIRDIR=${placeholder ''dev''}/share/gir-1.0/"
"INTROSPECTION_TYPELIBDIR=$(out)/lib/girepository-1.0" "INTROSPECTION_TYPELIBDIR=${placeholder ''out''}/lib/girepository-1.0"
]; ];
preConfigure = ''
./autogen.sh
'';
# TODO: Requires /etc/machine-id # TODO: Requires /etc/machine-id
doCheck = false; doCheck = false;