mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
bamf: 0.5.3 -> 2018-02-07, fix build
Technically this is 0.5.4 but it's unreleased
This commit is contained in:
parent
2380f6a4fa
commit
3358e256b1
1 changed files with 30 additions and 18 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue