2021-11-22 14:14:24 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2024-08-26 18:13:04 +00:00
|
|
|
, fetchFromGitHub
|
2021-11-22 14:14:24 +00:00
|
|
|
, autoreconfHook
|
|
|
|
, autoconf-archive
|
2024-08-26 18:13:04 +00:00
|
|
|
, gobject-introspection
|
2021-11-22 14:14:24 +00:00
|
|
|
, pkg-config
|
2024-08-26 18:13:04 +00:00
|
|
|
, wrapGAppsHook3
|
2021-11-22 14:14:24 +00:00
|
|
|
, glib
|
|
|
|
, dbus
|
|
|
|
, libnl
|
2024-08-26 18:13:04 +00:00
|
|
|
, python3Packages
|
2021-11-22 14:14:24 +00:00
|
|
|
}:
|
2015-09-29 14:24:20 +00:00
|
|
|
|
2024-08-26 18:13:04 +00:00
|
|
|
stdenv.mkDerivation {
|
2021-07-25 21:53:02 +00:00
|
|
|
pname = "neard";
|
2024-08-26 18:13:04 +00:00
|
|
|
version = "0.19-unstable-2024-07-02";
|
2021-11-22 14:14:24 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
2015-09-29 14:24:20 +00:00
|
|
|
|
2024-08-26 18:13:04 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linux-nfc";
|
|
|
|
repo = "neard";
|
|
|
|
rev = "a0a7d4d677800a39346f0c89d93d0fe43a95efad";
|
|
|
|
hash = "sha256-6BgX7cJwxX+1RX3wU+HY/PIBgzomzOKemnl0SDLJNro=";
|
2015-09-29 14:24:20 +00:00
|
|
|
};
|
|
|
|
|
2024-08-26 18:13:04 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs test/*
|
|
|
|
'';
|
|
|
|
|
2021-11-22 14:14:24 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
autoconf-archive
|
2024-08-26 18:13:04 +00:00
|
|
|
gobject-introspection
|
2021-11-22 14:14:24 +00:00
|
|
|
pkg-config
|
2024-08-26 18:13:04 +00:00
|
|
|
python3Packages.wrapPython
|
|
|
|
wrapGAppsHook3
|
|
|
|
];
|
|
|
|
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-pie"
|
|
|
|
"--enable-test"
|
|
|
|
"--enable-tools"
|
|
|
|
"--with-sysconfdir=/etc"
|
|
|
|
"--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
|
|
|
|
"--with-systemduserunitdir=${placeholder "out"}/lib/systemd/user"
|
2021-11-22 14:14:24 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dbus
|
2024-08-26 18:13:04 +00:00
|
|
|
glib
|
2021-11-22 14:14:24 +00:00
|
|
|
libnl
|
|
|
|
];
|
2021-07-27 18:20:18 +00:00
|
|
|
|
|
|
|
strictDeps = true;
|
2015-09-29 14:24:20 +00:00
|
|
|
|
2021-11-22 14:14:24 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2024-08-26 18:13:04 +00:00
|
|
|
pythonPath = with python3Packages; [
|
|
|
|
pygobject3
|
|
|
|
dbus-python
|
2021-11-22 14:14:24 +00:00
|
|
|
];
|
2015-09-29 14:24:20 +00:00
|
|
|
|
2024-08-26 18:13:04 +00:00
|
|
|
doCheck = true;
|
2015-09-30 14:08:32 +00:00
|
|
|
|
2024-08-26 18:13:04 +00:00
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
wrapPythonProgramsIn "$out/lib/neard" "$pythonPath"
|
2015-09-29 14:24:20 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-09-29 14:24:20 +00:00
|
|
|
description = "Near Field Communication manager";
|
2021-11-22 14:14:24 +00:00
|
|
|
homepage = "https://01.org/linux-nfc";
|
|
|
|
license = licenses.gpl2Only;
|
2024-07-28 14:44:11 +00:00
|
|
|
maintainers = [ ];
|
2021-11-22 14:14:24 +00:00
|
|
|
platforms = platforms.unix;
|
2015-09-29 14:24:20 +00:00
|
|
|
};
|
|
|
|
}
|