9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
29 lines
877 B
Nix
29 lines
877 B
Nix
{ lib, stdenv, fetchurl, pkg-config, openobex, bluez, cmake }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "obexftp-0.24.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/openobex/${name}-Source.tar.gz";
|
|
sha256 = "18w9r78z78ri5qc8fjym4nk1jfbrkyr789sq7rxrkshf1a7b83yl";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
|
|
|
buildInputs = [ bluez ];
|
|
|
|
propagatedBuildInputs = [ openobex ];
|
|
|
|
# There's no such thing like "bluetooth" library; possibly they meant "bluez" but it links correctly without this.
|
|
postFixup = ''
|
|
sed -i 's,^Requires: bluetooth,Requires:,' $out/lib/pkgconfig/obexftp.pc
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "http://dev.zuckschwerdt.org/openobex/wiki/ObexFtp";
|
|
description = "A library and tool to access files on OBEX-based devices (such as Bluetooth phones)";
|
|
platforms = platforms.linux;
|
|
license = licenses.lgpl2Plus;
|
|
};
|
|
}
|