summary refs log tree commit diff
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2016-02-12 22:45:14 +0300
committerNikolay Amiantov <ab@fmap.me>2016-02-12 22:47:51 +0300
commit4a00e1f70b62e406a0c9cc27f6e25477b1884764 (patch)
tree958638cd454e659f6009207a14ca5d5b42a41101
parentbd4b54557dcceb7d7d1a77009a717abb7b96883f (diff)
downloadnixpkgs-4a00e1f70b62e406a0c9cc27f6e25477b1884764.tar
nixpkgs-4a00e1f70b62e406a0c9cc27f6e25477b1884764.tar.gz
nixpkgs-4a00e1f70b62e406a0c9cc27f6e25477b1884764.tar.bz2
nixpkgs-4a00e1f70b62e406a0c9cc27f6e25477b1884764.tar.lz
nixpkgs-4a00e1f70b62e406a0c9cc27f6e25477b1884764.tar.xz
nixpkgs-4a00e1f70b62e406a0c9cc27f6e25477b1884764.tar.zst
nixpkgs-4a00e1f70b62e406a0c9cc27f6e25477b1884764.zip
obexftp: fix pkgconfig file, add license
-rw-r--r--pkgs/tools/bluetooth/obexftp/default.nix18
1 files changed, 13 insertions, 5 deletions
diff --git a/pkgs/tools/bluetooth/obexftp/default.nix b/pkgs/tools/bluetooth/obexftp/default.nix
index 4a40b4393c3..12b021d5d3b 100644
--- a/pkgs/tools/bluetooth/obexftp/default.nix
+++ b/pkgs/tools/bluetooth/obexftp/default.nix
@@ -1,4 +1,4 @@
-{stdenv, fetchurl, pkgconfig, openobex, bluez, cmake}:
+{ stdenv, fetchurl, pkgconfig, openobex, bluez, cmake }:
    
 stdenv.mkDerivation rec {
   name = "obexftp-0.24";
@@ -8,13 +8,21 @@ stdenv.mkDerivation rec {
     sha256 = "0szy7p3y75bd5h4af0j5kf0fpzx2w560fpy4kg3603mz11b9c1xr";
   };
 
-  buildInputs = [pkgconfig bluez cmake];
+  nativeBuildInputs = [ pkgconfig cmake ];
 
-  propagatedBuildInputs = [openobex];
+  buildInputs = [ bluez ];
 
-  meta = {
+  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 stdenv.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 = stdenv.lib.platforms.linux;
+    platforms = platforms.linux;
+    license = licenses.lgpl2Plus;
   };
 }