mirror of
https://codeberg.org/icewind/taspromto.git
synced 2026-06-03 16:44:11 +02:00
20 lines
430 B
Nix
20 lines
430 B
Nix
{
|
|
stdenv,
|
|
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 = "taspromto";
|
|
|
|
inherit src version;
|
|
|
|
cargoLock = {
|
|
lockFile = ../Cargo.lock;
|
|
};
|
|
meta.mainProgram = "taspromto";
|
|
}
|