mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 07:00:43 +00:00
a61af52bae
It seems pointless to build a notification app on platforms where connman itself is not supported.
41 lines
1,008 B
Nix
41 lines
1,008 B
Nix
{ stdenv, fetchFromGitHub, pythonPackages, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "connman-notify-${version}";
|
|
version = "2014-06-23";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wavexx";
|
|
repo = "connman-notify";
|
|
rev = "0ed9b5e4a0e1f03c83c4589cabf410cac66cd11d";
|
|
sha256 = "0lhk417fdg3qxs1marpqp277bdxhwnbyrld9xj224bfk5v7xi4bg";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [
|
|
pythonPackages.python
|
|
pythonPackages.dbus-python
|
|
pythonPackages.pygobject2
|
|
pythonPackages.pygtk
|
|
pythonPackages.notify
|
|
];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp -vai connman-notify $out/bin/
|
|
'';
|
|
|
|
preFixup = ''
|
|
wrapProgram $out/bin/connman-notify --prefix PYTHONPATH : "$PYTHONPATH"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Desktop notification integration for connman";
|
|
homepage = https://github.com/wavexx/connman-notify;
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.romildo ];
|
|
};
|
|
}
|