blob: 7d79c66514a4f1a396863a34eeb15b5738d58cc9 (
plain)
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
|
{ stdenv, fetchgit, cmake, systemd, acpid }:
stdenv.mkDerivation rec {
pname = "libthinkpad";
version = "2.6";
src = fetchgit {
url = "https://github.com/libthinkpad/libthinkpad";
rev = version;
sha256 = "0jjnv6ipnndl5p5fni4v9dkh0m22xrrr04b16ywqdsv7c4sb771w";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ systemd acpid ];
buildPhase = ''
cmake . -DCMAKE_INSTALL_PREFIX=$out
make
'';
meta = {
homepage = "https://github.com/libthinkpad/libthinkpad";
description = "A general purpose userspace ThinkPad library";
};
}
|