tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
libevdevc: init at 2.0.1
Calvin Kim
6 years ago
ae8c8f82
feed1030
+29
1 changed file
expand all
collapse all
unified
split
pkgs
os-specific
linux
libevdevc
default.nix
+29
pkgs/os-specific/linux/libevdevc/default.nix
···
1
1
+
{ stdenv, fetchFromGitHub, coreutils, pkgconfig, glib, jsoncpp }:
2
2
+
3
3
+
stdenv.mkDerivation rec {
4
4
+
name = "libevdevc";
5
5
+
version = "2.0.1";
6
6
+
src = fetchFromGitHub {
7
7
+
owner = "hugegreenbug";
8
8
+
repo = "libevdevc";
9
9
+
rev = "v${version}";
10
10
+
sha256 = "0ry30krfizh87yckmmv8n082ad91mqhhbbynx1lfidqzb6gdy2dd";
11
11
+
};
12
12
+
13
13
+
postPatch = ''
14
14
+
substituteInPlace common.mk \
15
15
+
--replace /bin/echo ${coreutils}/bin/echo
16
16
+
substituteInPlace include/module.mk \
17
17
+
--replace /usr/include /include
18
18
+
'';
19
19
+
20
20
+
makeFlags = [ "DESTDIR=$(out)" "LIBDIR=/lib" ];
21
21
+
22
22
+
meta = with stdenv.lib; {
23
23
+
description = "ChromiumOS libevdev. Renamed to avoid conflicts with the standard libevdev found in Linux distros.";
24
24
+
license = licenses.bsd3;
25
25
+
platforms = platforms.linux;
26
26
+
homepage = "https://chromium.googlesource.com/chromiumos/platform/libevdev/";
27
27
+
maintainers = with maintainers; [ kcalvinalvin ];
28
28
+
};
29
29
+
}