packages: Add packages
- Add iptsd - Add gamemode - Add key-mapper - Add replaysorcery - Add surface-control - Add vfio-isolate
This commit is contained in:
38
packages/tools/system/surface-control/default.nix
Normal file
38
packages/tools/system/surface-control/default.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
lib
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, pkg-config, udev
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "surface-control";
|
||||
version = "0.4.1-1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "linux-surface";
|
||||
repo = "surface-control";
|
||||
rev = "v${version}";
|
||||
sha256 = "0606imcz38kcfxcjs00j3va7j7i8fzr4mcspyh5d6jrwwgl1xjxb";
|
||||
};
|
||||
|
||||
cargoSha256 = "1yqwaba1rkm3kw1py87j23q4jbdhdsx6fmqidzxgqhr7awrq763y";
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ udev ];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/lib/udev/rules.d/
|
||||
cp etc/udev/40-surface-control.rules $out/lib/udev/rules.d/40-surface-control.rules
|
||||
'';
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Control various aspects of Microsoft Surface devices on Linux from the Command-Line.";
|
||||
homepage = "https://github.com/linux-surface/surface-control";
|
||||
license = licenses.mit;
|
||||
maintainers = [];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user