initial version

This commit is contained in:
Robin Appelman 2025-10-21 23:20:19 +02:00
commit 4254707d82
13 changed files with 1829 additions and 0 deletions

21
nix/package.nix Normal file
View file

@ -0,0 +1,21 @@
{
rustPlatform,
pkg-config,
lib,
}: let
inherit (lib.sources) sourceByRegex;
inherit (builtins) fromTOML readFile;
src = sourceByRegex ../. ["Cargo.*" "(src)(/.*)?"];
version = (fromTOML (readFile ../Cargo.toml)).package.version;
in
rustPlatform.buildRustPackage rec {
pname = "lightflash";
inherit src version;
cargoLock = {
lockFile = ../Cargo.lock;
};
meta.mainProgram = "lightflash";
}