nixpkgs/pkgs/servers/neard/default.nix

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

82 lines
1.5 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, fetchFromGitHub
, autoreconfHook
, autoconf-archive
, gobject-introspection
, pkg-config
, wrapGAppsHook3
, glib
, dbus
, libnl
, python3Packages
}:
2015-09-29 14:24:20 +00:00
stdenv.mkDerivation {
pname = "neard";
version = "0.19-unstable-2024-07-02";
outputs = [ "out" "dev" ];
2015-09-29 14:24:20 +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
};
postPatch = ''
patchShebangs test/*
'';
nativeBuildInputs = [
autoreconfHook
autoconf-archive
gobject-introspection
pkg-config
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"
];
buildInputs = [
dbus
glib
libnl
];
strictDeps = true;
2015-09-29 14:24:20 +00:00
enableParallelBuilding = true;
pythonPath = with python3Packages; [
pygobject3
dbus-python
];
2015-09-29 14:24:20 +00:00
doCheck = true;
2015-09-30 14:08:32 +00:00
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
wrapPythonProgramsIn "$out/lib/neard" "$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 = [ ];
platforms = platforms.unix;
2015-09-29 14:24:20 +00:00
};
}