From 8fa1fb492064c18f7591845ac845e1b4d0e8e2f1 Mon Sep 17 00:00:00 2001 From: Bart Brouns Date: Sun, 28 Feb 2016 04:51:07 +0100 Subject: [PATCH] connman-dmenu: init at git-29-9-2015 fix indentation --- .../networking/connman_dmenu/default.nix | 34 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/tools/networking/connman_dmenu/default.nix diff --git a/pkgs/tools/networking/connman_dmenu/default.nix b/pkgs/tools/networking/connman_dmenu/default.nix new file mode 100644 index 00000000000..42ef7f4f4da --- /dev/null +++ b/pkgs/tools/networking/connman_dmenu/default.nix @@ -0,0 +1,34 @@ +{ stdenv, fetchFromGitHub, connman, dmenu }: +stdenv.mkDerivation rec { + name = "connman_dmenu-${version}"; + version = "git-29-9-2015"; + + src = fetchFromGitHub { + owner = "march-linux"; + repo = "connman_dmenu"; + rev = "cc89fec40b574b0d234afeb70ea3c94626ca3f5c"; + sha256 = "061fi83pai4n19l9d7wq6wwj2d7cixwkhkh742c5ibmw1wb274yk"; + }; + + buildInputs = [ connman dmenu ]; + + phases = "unpackPhase patchPhase installPhase fixupPhase"; + + # remove root requirement, see: https://github.com/march-linux/connman_dmenu/issues/3 + patchPhase = '' + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7491eb99b51..0fdd1dbf451 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1134,6 +1134,8 @@ let connmanui = callPackage ../tools/networking/connmanui { }; + connman_dmenu = callPackage ../tools/networking/connman_dmenu { }; + convertlit = callPackage ../tools/text/convertlit { }; collectd = callPackage ../tools/system/collectd {