diff options
Diffstat (limited to 'pkgs/dockd/default.nix')
-rw-r--r-- | pkgs/dockd/default.nix | 32 |
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."; + }; +} |