6 , python3Packages # for tests
8 , enableManpages ? true
9 , docutils # for manpages
12 stdenv.mkDerivation (finalAttrs: {
16 src = fetchFromGitHub {
19 rev = finalAttrs.version;
20 hash = "sha256-TQA9aVdXGX2hje7lRQ8T9QDpSTYGpB5cIDlNYsUg/dM=";
21 fetchSubmodules = true;
26 ] ++ lib.optionals enableManpages [
28 ] ++ lib.optionals finalAttrs.doCheck [
39 ] ++ lib.optionals enableManpages [
40 docutils # only for the man pages
44 python3Packages.python
50 ] ++ lib.optionals (!enableManpages) [
51 "--disable-manual-pages"
54 enableParallelBuilding = true;
56 # override this to false if you don't want to build python3
57 doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
59 # prevent the `install-data-local` Makefile rule from running;
60 # all it does is attempt to `mkdir` the `localstatedir`.
62 mkdir install-data-local
63 substituteInPlace Makefile --replace \
64 '$(MKDIR_P) -m 700 $(DESTDIR)$(daemon_storagedir)' \
69 mkdir -p $doc/share/doc
70 cp -a doc $doc/share/doc/iwd
71 cp -a README AUTHORS TODO $doc/share/doc/iwd
72 '' + lib.optionalString finalAttrs.finalPackage.doCheck ''
74 cp -a test/* $test/bin/
78 homepage = "https://github.com/illiliti/eiwd/";
79 description = "Fork of iwd (wifi daemon) which does not require dbus";
80 license = licenses.lgpl21Plus;
81 platforms = platforms.linux;