mirror of
https://codeberg.org/icewind/galton.git
synced 2026-06-03 18:34:08 +02:00
20 lines
415 B
Nix
20 lines
415 B
Nix
{
|
|
rustPlatform,
|
|
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 = "galton";
|
|
|
|
inherit src version;
|
|
|
|
cargoLock = {
|
|
lockFile = ../Cargo.lock;
|
|
};
|
|
|
|
meta.mainProgram = "galton";
|
|
}
|