Fix udev rule building
This commit is contained in:
parent
f84671520b
commit
595cef5aa7
2 changed files with 5 additions and 3 deletions
|
@ -39,9 +39,11 @@
|
||||||
inherit (cargoToml.package) name version;
|
inherit (cargoToml.package) name version;
|
||||||
src = ./.;
|
src = ./.;
|
||||||
cargoLock.lockFile = ./Cargo.lock;
|
cargoLock.lockFile = ./Cargo.lock;
|
||||||
|
buildInputs = nonRustDeps;
|
||||||
|
nativeBuildInputs = nonRustDeps;
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/etc/udev/rules.d/
|
mkdir -p $out/etc/udev/rules.d
|
||||||
echo ${udev-rule} > $out/etc/udev/rules.d/70-heliox.rules
|
echo "${udev-rule}" > $out/etc/udev/rules.d/70-heliox.rules
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ struct Args {
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let args = Args::parse();
|
let args = Args::parse();
|
||||||
let mut port = serialport::new("/dev/ttyUSB0", 115_200)
|
let mut port = serialport::new("/dev/heliox", 115_200)
|
||||||
.timeout(Duration::from_millis(10))
|
.timeout(Duration::from_millis(10))
|
||||||
.open()
|
.open()
|
||||||
.expect("Failed to open port");
|
.expect("Failed to open port");
|
||||||
|
|
Loading…
Reference in a new issue