about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-09-11 09:08:35 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-09-11 09:08:35 +0200
commit08791bd26b86a0f3017b6db5d4f3ad7d9b4a83a8 (patch)
tree1c326f97537b7fbaa7042642f287244f93bf760b /pkgs
parent886c700429684ecb56846314494c5d995d60b6f4 (diff)
downloadpnpkgs-08791bd26b86a0f3017b6db5d4f3ad7d9b4a83a8.tar.gz
pnpkgs-08791bd26b86a0f3017b6db5d4f3ad7d9b4a83a8.zip
Add dockd
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/dockd/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/dockd/default.nix b/pkgs/dockd/default.nix
new file mode 100644
index 0000000..6e14a89
--- /dev/null
+++ b/pkgs/dockd/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, fetchgit, callPackage, cmake, libXrandr }:
+let
+  libthinkpad = callPackage ../libthinkpad {};
+in
+
+stdenv.mkDerivation rec {
+  pname = "dockd";
+  version = "1.21";
+
+  src = fetchgit {
+    url = "https://github.com/libthinkpad/dockd";
+    rev = version;
+    sha256 = "1fr9r19b04ac92ynz62rnzgc6jfzxrf76k3m6szspgw7sx9rhjc2";
+  };
+
+  nativeBuildInputs = [ cmake ];
+  buildInputs = [ libthinkpad libXrandr ];
+
+  postPatch = ''
+    sed -i '/etc/d' CMakeLists.txt
+  '';
+
+  buildPhase = ''
+    cmake . -DCMAKE_INSTALL_PREFIX=$out
+    make
+  '';
+
+  meta = {
+    homepage = "https://github.com/libthinkpad/dockd";
+    description = "Lenovo ThinkPad Dock Management Daemon.";
+  };
+}