NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.89k stars 13.95k forks source link

[Packaging request] OpenDrop #146777

Closed onny closed 2 years ago

onny commented 2 years ago

Project description OpenDrop is an AirDrop compatible implementation for Linux.

Metadata

legendofmiracles commented 2 years ago

Dependency owl also would have to be packaged.

WolfangAukang commented 2 years ago

Dependency owl also would have to be packaged.

Here you go:

{ stdenv, lib, fetchFromGitHub, cmake, libev, libnl, libpcap }:

stdenv.mkDerivation rec {
  pname = "owl";
  version = "unstable-2020-12-19";

  src = fetchFromGitHub {
    owner = "seemoo-lab";
    repo = "owl";
    rev = "fb09463f6a3d175c125165b89ec39a25b33e14b1";
    sha256 = "sha256-QSwCxpqp9CyB/MPstgtYr73/STHbcljiCpozhzgzAvA=";
    fetchSubmodules = true;
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ libev libnl libpcap ];
}

This one covers the dependencies listed (libnl is Linux specific). I haven't tested it yet though (in the functionality part, using the -i flag).

WolfangAukang commented 2 years ago

Btw, fleep needs to be packaged.

WolfangAukang commented 2 years ago

I have packaged owl, fleep and opendrop here, but it seems my computer is not able to create an interface on owl to test it, so in case you want to try it, it would be much appreciated.

Plus, had to disable tests as I'm getting an unclear issue. It is described on the opendrop settings.

legendofmiracles commented 2 years ago

owl says that you need an interface capable of package injection. Most normal wifi antennas don't have that anymore...

WolfangAukang commented 2 years ago

owl says that you need an interface capable of package injection. Most normal wifi antennas don't have that anymore...

Exactly. My hardware does not have that capability.

onny commented 2 years ago

@WolfangAukang Oh cool, can you create an PR?

WolfangAukang commented 2 years ago

Yes sure, on it