mirror of
https://codeberg.org/icewind/lightflash.git
synced 2026-06-03 10:04:07 +02:00
21 lines
437 B
Nix
21 lines
437 B
Nix
{
|
|
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";
|
|
}
|