-
Notifications
You must be signed in to change notification settings - Fork 0
/
derivation.nix
40 lines (31 loc) · 1.13 KB
/
derivation.nix
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ stdenv, lib, rustPlatform, fetchFromGitHub
, pkg-config, libevdev, openssl, llvmPackages, linuxHeaders
}:
rustPlatform.buildRustPackage rec {
pname = "evkvm";
version = "dev";
# src = fetchFromGitHub {
# owner = "htrefil";
# repo = "rkvm";
# rev = "ec404c69b38f7feff5103f898612734ee8d7ee95";
# sha256 = "sha256-YZXHbZ71EsSyAtTenQ4rgp1fJbatkk7BW4Cmr/RpyXc=";
# };
src = ./.;
# cargoSha256 = "sha256-/VNnqKSPqAYXS312GaTtpl5j0uOHLfUX8u7LuEDhUTg=";
cargoLock = {
lockFile = ./Cargo.lock;
};
nativeBuildInputs = [ llvmPackages.clang pkg-config openssl ];
buildInputs = [ libevdev openssl linuxHeaders ];
BINDGEN_EXTRA_CLANG_ARGS = "-I${lib.getDev libevdev}/include/libevdev-1.0";
LIBCLANG_PATH = "${lib.getLib llvmPackages.libclang}/lib";
# The libevdev bindings preserve comments from libev, some of which
# contain indentation which Cargo tries to interpret as doc tests.
doCheck = false;
meta = with lib; {
description = "Virtual KVM switch for Linux machines";
homepage = "https://github.com/evan-goode/evkvm";
license = licenses.mit;
maintainers = [ maintainers.evangoode ];
};
}