nixpkgs/pkgs/servers/neard/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

79 lines
1.6 KiB
Nix
Raw Permalink Normal View History

{ stdenv
, lib
, fetchurl
, autoreconfHook
, autoconf-archive
, pkg-config
, systemd
, glib
, dbus
, libnl
, python2Packages
}:
2015-09-29 14:24:20 +00:00
stdenv.mkDerivation rec {
pname = "neard";
version = "0.18";
outputs = [ "out" "dev" ];
2015-09-29 14:24:20 +00:00
2017-12-05 22:05:21 +00:00
src = fetchurl {
url = "https://git.kernel.org/pub/scm/network/nfc/neard.git/snapshot/neard-${version}.tar.gz";
sha256 = "wBPjEVMV4uEdFrXw8cjOmvvNuiaACq2RJF/ZtKXck4s=";
2015-09-29 14:24:20 +00:00
};
nativeBuildInputs = [
autoreconfHook
autoconf-archive
pkg-config
python2Packages.wrapPython
];
buildInputs = [
systemd
glib
dbus
libnl
] ++ (with python2Packages; [
python
]);
pythonPath = with python2Packages; [
pygobject2
dbus-python
pygtk
];
strictDeps = true;
2015-09-29 14:24:20 +00:00
enableParallelBuilding = true;
configureFlags = [
"--disable-debug"
"--enable-tools"
"--enable-ese"
"--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
];
2015-09-29 14:24:20 +00:00
postInstall = ''
2015-09-30 14:08:32 +00:00
install -m 0755 tools/snep-send $out/bin/
2015-09-29 14:24:20 +00:00
install -D -m644 src/main.conf $out/etc/neard/main.conf
2015-09-30 14:08:32 +00:00
# INFO: the config option "--enable-test" would copy the apps to $out/lib/neard/test/ instead
2015-09-30 14:08:32 +00:00
install -d $out/lib/neard
install -m 0755 test/* $out/lib/neard/
wrapPythonProgramsIn $out/lib/neard "$out $pythonPath"
2015-09-29 14:24:20 +00:00
'';
meta = with lib; {
2015-09-29 14:24:20 +00:00
description = "Near Field Communication manager";
homepage = "https://01.org/linux-nfc";
license = licenses.gpl2Only;
maintainers = with maintainers; [ ];
platforms = platforms.unix;
2024-03-17 14:41:44 +00:00
# error: wcwidth-0.2.13 not supported for interpreter python2.7
broken = true; # Added 2024-03-17
2015-09-29 14:24:20 +00:00
};
}