diff options
Diffstat (limited to '')
-rw-r--r-- | rust/qmk-hid-com/package.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/rust/qmk-hid-com/package.nix b/rust/qmk-hid-com/package.nix new file mode 100644 index 0000000..157e92e --- /dev/null +++ b/rust/qmk-hid-com/package.nix @@ -0,0 +1,25 @@ +{ + rustPlatform, + lib, +}: +rustPlatform.buildRustPackage { + pname = "qmk-hid-com"; + version = "1.0.0"; + + src = lib.cleanSourceWith { + src = lib.cleanSource ./.; + filter = name: type: + (type == "directory") + || (builtins.elem (builtins.baseNameOf name) [ + "Cargo.toml" + "Cargo.lock" + ]) + || (lib.strings.hasSuffix ".rs" (builtins.baseNameOf name)); + }; + + doCheck = true; + + cargoLock = { + lockFile = ./Cargo.lock; + }; +} |