summary refs log tree commit diff
path: root/pkgs/tools/networking/connman/connman_dmenu/default.nix
blob: 8bc1b47e19815361c263f3c97efba12336a71cbf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ stdenv, fetchFromGitHub, connman, dmenu }:

stdenv.mkDerivation {
  pname = "connman_dmenu";
  version = "git-29-9-2015";

  src = fetchFromGitHub {
    owner = "march-linux";
    repo = "connman_dmenu";
    rev = "cc89fec40b574b0d234afeb70ea3c94626ca3f5c";
    sha256 = "061fi83pai4n19l9d7wq6wwj2d7cixwkhkh742c5ibmw1wb274yk";
  };

  buildInputs = [ connman dmenu ];

  dontBuild = true;

  # remove root requirement, see: https://github.com/march-linux/connman_dmenu/issues/3
  postPatch = ''
    sed -i '89,92d' connman_dmenu
  '';

  installPhase = ''
    mkdir -p $out/bin
    cp connman_dmenu $out/bin/
  '';

  meta = {
    description  = "A dmenu wrapper for connmann";
    homepage     = "https://github.com/march-linux/connman_dmenu";
    license      = stdenv.lib.licenses.free;
    maintainers  = [ stdenv.lib.maintainers.magnetophon ];
    platforms    = stdenv.lib.platforms.all;
  };
}