about summary refs log tree commit diff
path: root/pkgs/by-name/co/connman_dmenu
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2023-10-08 19:21:31 -0300
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-10-09 17:49:02 -0300
commit24cbd84d52b49122ef7304c3c5374778d5ea2702 (patch)
treeec4fe987fe51117975421f5c795fcd4b3ece7cf6 /pkgs/by-name/co/connman_dmenu
parent52058530ce12218dc7beb39db8240d87b081485a (diff)
treewide: move connmanPackages to by-name
Diffstat (limited to 'pkgs/by-name/co/connman_dmenu')
-rw-r--r--pkgs/by-name/co/connman_dmenu/package.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/by-name/co/connman_dmenu/package.nix b/pkgs/by-name/co/connman_dmenu/package.nix
new file mode 100644
index 0000000000000..86e5a62fb8dec
--- /dev/null
+++ b/pkgs/by-name/co/connman_dmenu/package.nix
@@ -0,0 +1,35 @@
+{ lib, stdenv, fetchFromGitHub, connman, dmenu }:
+
+stdenv.mkDerivation {
+  pname = "connman_dmenu";
+  version = "unstable-2015-09-29";
+
+  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 = lib.licenses.free;
+    maintainers = [ lib.maintainers.magnetophon ];
+    platforms = lib.platforms.all;
+  };
+}